×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    15

    CONFIG += mobility & MOBILITY = ...

    Hi,

    I haven't found in documentation (qmake docs, qtmobility docs or other Qt docs) anything that explains the usage of the following two lines in one of the qtmobility examples .pro file:

    CONFIG += mobility
    MOBILITY = location

    This is pretty clear stuff to understand, but where is it documented ? One of the reasons I need that is because I'd like to know what libraries, etc. does "MOBILITY = ..." declaration attach to an executable.

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: CONFIG += mobility & MOBILITY = ...

    you might want to check general qt docs .http://doc.trolltech.com/4.3/qmake-project-files.html

  3. #3
    Nokia Developer Expert
    Join Date
    Dec 2009
    Posts
    31

    Re: CONFIG += mobility & MOBILITY = ...

    Quote Originally Posted by viktor.burka View Post
    CONFIG += mobility
    MOBILITY = location

    This is pretty clear stuff to understand, but where is it documented ? One of the reasons I need that is because I'd like to know what libraries, etc. does "MOBILITY = ..." declaration attach to an executable.
    Unfortunately prf files are not very well documented. Essentially to resolve the mapping qmake checks $QTDIR/mkspecs/features for mobility.prf and loads it when processing the project file. The MOBILITY variable is part of mobility.prf and is used to select the correct library to link against.

    The possible MOBILITY mappings are stated in step3 of the QtMoblity quick start guide: http://doc.qt.nokia.com/qtmobility-1...uickstart.html

    The mobility.prf file is generated when configure runs and is based on the template in $MOBILITY_DIR/features/mobility.prf.template. Later it is copied into $QTDIR/mkspecs/features (during configure time on Symbian and during make install time on all other platforms)
    Last edited by AlexBl; 2009-12-23 at 00:22.

  4. #4
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: CONFIG += mobility & MOBILITY = ...

    It might not be documented in preview release(MOBILITY variable). I assume it would be documented in final release.

    @Jack Torrance:
    Please make note of it..

  5. #5
    Nokia Developer Expert
    Join Date
    Dec 2009
    Posts
    31

    Re: CONFIG += mobility & MOBILITY = ...

    Quote Originally Posted by savaj View Post
    It might not be documented in preview release(MOBILITY variable). I assume it would be documented in final release.
    As stated in my previous post the MOBILITY variable and its possible values are documented in the official preview release documentation already:

    http://doc.qt.nokia.com/qtmobility-1...uickstart.html

  6. #6
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: CONFIG += mobility & MOBILITY = ...

    Already gone through that step 3, but its not that much informative.

  7. #7
    Nokia Developer Expert
    Join Date
    Dec 2009
    Posts
    31

    Re: CONFIG += mobility & MOBILITY = ...

    Could you elaborate on the type of additional info you are after? Isn't the mapping all you need?

    Maybe I might be missing the obvious thing or suffer from blindness towards our own code....

  8. #8
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: CONFIG += mobility & MOBILITY = ...

    Yes, it states possible domain names and corresponding values that can be assigned to MOBILITY variable, but what i expect is little bit description about what each variable is doing. May be i am expecting much more.

  9. #9
    Registered User
    Join Date
    Oct 2009
    Posts
    15

    Re: CONFIG += mobility & MOBILITY = ...

    Quote Originally Posted by AlexBl View Post
    Unfortunately prf files are not very well documented. Essentially to resolve the mapping qmake checks $QTDIR/mkspecs/features for mobility.prf and loads it when processing the project file. The MOBILITY variable is part of mobility.prf and is used to select the correct library to link against.

    The possible MOBILITY mappings are stated in step3 of the QtMoblity quick start guide: http://doc.qt.nokia.com/qtmobility-1...uickstart.html

    The mobility.prf file is generated when configure runs and is based on the template in $MOBILITY_DIR/features/mobility.prf.template. Later it is copied into $QTDIR/mkspecs/features (during configure time on Symbian and during make install time on all other platforms)
    Thanks for the explanation ! It clarifies for me how it works !

Similar Threads

  1. Problem with Qt Mobility
    By picachu.nioto in forum [Archived] Qt Mobility Project
    Replies: 7
    Last Post: 2010-04-06, 05:28
  2. Not able to add Mobility APIs
    By nameispriya in forum [Archived] Qt Mobility Project
    Replies: 17
    Last Post: 2010-01-19, 20:05
  3. Welcome to Qt Mobility forum
    By Jack Torrance in forum [Archived] Qt Mobility Project
    Replies: 0
    Last Post: 2009-12-02, 19:34
  4. Network config differences S40 / S60
    By ipxlittle in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2008-01-15, 22:38

Posting Permissions

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