×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    25

    Unhappy how can I find all compile macros in Nokia Qt SDK 1.0 beta?

    before we can use some macros such as __WINSCW__ in code to differ simulator and real device code, I am using new sdk (Nokia Qt SDK 1.0 beta) now, and how can I do that as before? Is there any new macros to do that?

    example:

    #ifdef somemarco
    ....... //some code only can work in real device compilation.
    #endif

    Thank you ~

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: how can I find all compile macros in Nokia Qt SDK 1.0 beta?

    Quote Originally Posted by marslee_suc View Post
    before we can use some macros such as __WINSCW__ in code to differ simulator and real device code, I am using new sdk (Nokia Qt SDK 1.0 beta) now, and how can I do that as before? Is there any new macros to do that?

    example:

    #ifdef somemarco
    ....... //some code only can work in real device compilation.
    #endif

    Thank you ~
    see the similar thread here: http://discussion.forum.nokia.com/fo...d.php?t=187052

    Best regards,

  3. #3
    Registered User
    Join Date
    Sep 2008
    Posts
    25

    Re: how can I find all compile macros in Nokia Qt SDK 1.0 beta?

    Quote Originally Posted by rahulvala View Post
    see the similar thread here: http://discussion.forum.nokia.com/fo...d.php?t=187052

    Best regards,
    Thank you for your replay , but I think that thread discusses other things.
    I want to find a Macro in source code (cpp files ) to distinguish simulator and real device code as before using __WINSCW__ macro.

  4. #4
    Registered User
    Join Date
    Aug 2003
    Location
    Oulu, Finland
    Posts
    1,122

    Re: how can I find all compile macros in Nokia Qt SDK 1.0 beta?

    Qt Simulator and device builds are using different versions of the toolchain, with different settings. In particular, Simulator uses win32-g++ config and Symbian device builds use symbian-abld. You can look at the qmake.conf QMAKE_COMPILER_DEFINES in the corresponding mkspec files to see what flags are enabled for each build. In this case you may be interested in the information that the win32-g++ build has the WIN32 flag and symbian-abld has SYMBIAN.

  5. #5
    Registered User
    Join Date
    Sep 2008
    Posts
    25

    Re: how can I find all compile macros in Nokia Qt SDK 1.0 beta?

    Quote Originally Posted by laa-laa View Post
    Qt Simulator and device builds are using different versions of the toolchain, with different settings. In particular, Simulator uses win32-g++ config and Symbian device builds use symbian-abld. You can look at the qmake.conf QMAKE_COMPILER_DEFINES in the corresponding mkspec files to see what flags are enabled for each build. In this case you may be interested in the information that the win32-g++ build has the WIN32 flag and symbian-abld has SYMBIAN.
    Thank you so much~

  6. #6
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: how can I find all compile macros in Nokia Qt SDK 1.0 beta?

    I'll add that if you can narrow your issue down to a testable value in the PRO file, you can set compiler defines with the DEFINES directive:
    Code:
    MY_MAKE_FLAG {
        DEFINES += MY_COMPILER_FLAG
    }

Similar Threads

  1. QT Nokia sdk installation and QT Creator config problem
    By kapiluiet in forum [Archived] Qt SDKs and Tools
    Replies: 1
    Last Post: 2010-06-02, 13:49
  2. GPS access in Nokia Qt Beta SDK
    By geolives in forum [Archived] Qt SDKs and Tools
    Replies: 11
    Last Post: 2010-05-20, 11:31
  3. which phones for laptop
    By dvdljns in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2006-02-14, 12:58
  4. Infra-red capability
    By Symbian_Challenge_0412 in forum General Development Questions
    Replies: 1
    Last Post: 2005-08-16, 18:24

Posting Permissions

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