×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    Jul 2010
    Posts
    66

    Can't include header files from SDK

    Hi

    First of all a disclaimer. I'm totally new to Symbian/Qt development, and as such my question might be placed wrong - but this seems to be the most appropriate place for what I think is wrong.

    I have created a Qt Mobile Project, and it compiles just fine.

    As soon as I add an include to e.g. msvapi.h it breaks. It can't locate the msvapi header file.

    Adding
    #include <msvapi.h>
    Gives the following build error:
    msvapi.h: No such file or directory.

    If I on the otherhand adds a full path to the msvapi.h file like this:
    #include <C:\NokiaQtSDK\Symbian\SDK\epoc32\include\msvapi.h>

    It gets past the msvapi.h not found, but fails on a number of other files from the SDK.

    It seems obvious that I am missing something in my setup, since Qt Creator/my project/make can't find the SDK header files.

    The problem for me is to figure out what is wrong with my machine.

    Can anyone help me based on this - or do you need more output? Screenshots from Qt Creator Options dialog, output from qmake or anything else, then please let me know.

    Hopefully someone can help me get on with this.

    best regards
    /Anders

    (UPDATE)
    I have tried adding C:\NokiaQtSDK\Symbian\SDK\epoc32\include as INCLUDEPATH += C:\NokiaQtSDK\Symbian\SDK\epoc32\include in my project file.

    This does make the project able find the msvapi.h file in my include statement, but gives me 3737 build errors instead. All errors found in e32* and f32* files.

    After the build QtCreator crashes.

    So again, I must be missing something vital for the environment to work - but can't figure out what.
    Last edited by ankhansen; 2010-07-14 at 12:20. Reason: Update with further information

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Can't include header files from SDK

    Yes, this thread may have a better place in the Qt boards - I will move it there in a couple minutes.

    I do not know how Qt Creator works, but generally #include <something> means that something is a "system" include. In Symbian SDK-s it has a separate keyword "SYSTEMINCLUDE" (while #include "something"-s are specified with USERINCLUDE keyword), so it may happen that you have a separate variable for it in the Qt project file. Other Symbian-specific thing is that drive letters are not welcome, at least if Qt SDK also uses Perl scripts for building (':' is interpreted as a separator character in a sequence), and specifying \epoc32\include may be enough in fact (that is the standard SYSTEMINCLUDE-line in Symbian projects - the tools interpret \epoc32\ as the path of the SDK).

  3. #3
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Can't include header files from SDK

    It would be useful to see your project file.

  4. #4
    Regular Contributor
    Join Date
    Jul 2010
    Posts
    66

    Re: Can't include header files from SDK

    Hi

    I'm off to summer holidays now, but will follow up on this as I get back 9th of August.

    My final attempts actually seemed to build when target was a Symbian Device, and not the simulator.

    Have a nice summer.

    /Anders

  5. #5
    Nokia Developer Champion
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Can't include header files from SDK

    As I understand it (haven't actually used the product) you can't build Symbian-specific code for the "Qt Simulator" -- it's not a Symbian simulator. If you want to use a Symbian simulator you should use epoc (and Carbide).

  6. #6
    Nokia Developer Expert
    Join Date
    Apr 2010
    Posts
    3

    Re: Can't include header files from SDK

    There is no way to make device specific code work in the Simulator as it is not an Emulator. You can just use Qt and Qt Mobility code inside the Simulator. This should cover most of the functionalities needed in the current or upcoming release (more mobility modules are to come).

    In order to get Message related events use Qt Mobility messaging ( http://doc.qt.nokia.com/qtmobility-1.0/messaging.html ). Using this API you make sure that the application does not only run on Symbian but also Maemo devices.

    BR
    Olli

  7. #7
    Regular Contributor
    Join Date
    Jul 2010
    Posts
    66

    Re: Can't include header files from SDK

    Thanks for the info.

    I will do with the actual device for now. The project I am working on is a "legacy" project i have inherited. It was originally developed using Carbide, but now i wanted to go for a clean install with Nokia Qt SDK and try and move that way.

    As I understand your post, I will need to create a project in Carbide to run in a simulator there.

    But thanks for clarifying the difference between the Qt Creator simulator and the actual device.

    /Anders

  8. #8
    Regular Contributor
    Join Date
    Jul 2010
    Posts
    66

    Re: Can't include header files from SDK

    Thanks to you as well owolff.

    Actually one of my tasks will be to make the project go more in the direction of Qt, and not use all the symbian specific APIs.

    Thanks for helping me out here.

    /Anders

Similar Threads

  1. missing header files from FP1 SDK & Plug-ins.
    By ruchirvasavada in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2008-09-08, 20:54
  2. Not able to include header files when import the .mmp file from the symbian example
    By amitjigupta in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2006-09-11, 13:08
  3. include header files
    By mprix in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2004-01-10, 14:27
  4. Series60 SDK v0.9 missing header files
    By thomassos in forum Symbian
    Replies: 0
    Last Post: 2002-07-28, 13:51
  5. Missing header files in Series-60 SDK
    By Nokia_Archive in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2002-05-31, 14:59

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •