Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    43

    Installing Qt Mobility 1.1 on Ubuntu 10.04 and using it with Qt Creator

    Hi

    I would like to develop apps to Nokia phones but is not made easy... I'm getting desperate and almost ready to switch to Android.

    I didn't find any good documentation on how to use Qt Mobility with Qt Creator. I have done that is is said in the instruction and compiled the source. But I don't know how to get the Qt Creator to use these classes. When I try to compile one of the examples, Qt Creator says that for example Map-apis are not found. How do I "tell" the Qt Creator to use the Mobility Api's?

  2. #2
    Registered User
    Join Date
    Aug 2009
    Posts
    173

    Re: Installing Qt Mobility 1.1 on Ubuntu 10.04 and using it with Qt Creator

    I am not expert on QtMobility, but seems that there are couple of "joins" with
    your application's header/.cpp files and application's *.pro file.

    Trying to explaine header and *.pro file "joining" in case of QtMobility's
    namespace concerning QSystemInfo API as example :

    write into header file rows:

    #include <QSystemInfo>
    QTM_USE_NAMESPACE

    write into pro file corresponding decalaration rows as
    as header file requires (or vice versa):

    CONFIG += mobility
    MOBILITY += systeminfo

    Seems that, CONFIG += mobility has to be declared always,
    when you are going to use QtMobility APIs.


    Seems that QTM_USE_NAMESPACE has to be declared always,
    when you are going to use QtMobility APIs.


    Then #include <Qblaapblaap> and MOBILITY += blaapblaap
    has to be pairs.

    And sometimes it is better to read maemo documents :
    http://maemoide.nokia.com/fremantle/...uickstart.html
    Last edited by teknikko; 2010-12-11 at 21:02.

  3. #3
    Registered User
    Join Date
    Nov 2010
    Posts
    43

    Re: Installing Qt Mobility 1.1 on Ubuntu 10.04 and using it with Qt Creator

    I've used example project where all things you mentioned have been done. But still I get cannot compile the project because QtCreator says that Qt Mobility classes are missing... Could someone who has done something with Qt Mobility and Qt Creator (in Ubuntu operating system) write me instructions so that I could check have I done everything correctly?

    Thanks

  4. #4
    Nokia Developer Expert
    Join Date
    May 2010
    Posts
    65

    Re: Installing Qt Mobility 1.1 on Ubuntu 10.04 and using it with Qt Creator

    Hi,

    Are you using the Nokia Qt SDK or just Qt Creator? The Nokia Qt SDK includes Qt, Mobility, device SDKs, and Qt Creator (plus some other things) to make development for devices simple. However, at this point in time it comes with Qt Mobility 1.0.2 not 1.1.0 afaik.

    In terms of getting Qt Creator to recognise the Qt Mobility libraries, I'd suggest trying to compile your project from the command line at first (ie, run qmake/make manually, and see what the output is). It's likely that you haven't put something in your .pro file which is needed (specifying the path to the libs with LIBS += -Lwherever, specifying include paths where the mobility development headers reside with INCLUDEPATH += wherever, and so forth). Once you've got it building from the command line, try opening the project in Creator and see if syntax highlighting and autocompletion works then. But the first step is reading up on qmake and the .pro file format, and how to specify dependencies and includes.

    If your application builds on the command line, but not in Qt Creator, then your build settings in Qt Creator need to be changed. Have a look at the Project tab in Qt Creator and see if anything (toolchain / paths etc) looks wrong.

    Cheers,
    Chris.

Similar Threads

  1. Qt Creator code completion not working with Qt Mobility for Symbian
    By ceefour in forum [Archived] Qt Mobility Project
    Replies: 4
    Last Post: 2011-09-10, 05:02
  2. Replies: 1
    Last Post: 2011-01-05, 16:28
  3. Replies: 21
    Last Post: 2010-11-17, 05:44
  4. Qt Mobility with Qt Creator - QTSDK-98 doesn't fix it for me
    By pzman in forum [Archived] Qt SDKs and Tools
    Replies: 2
    Last Post: 2010-09-10, 09:52
  5. Remote compiler not selectable in Qt Creator (Ubuntu 10.04)
    By josefr in forum [Archived] Qt SDKs and Tools
    Replies: 4
    Last Post: 2010-07-26, 19:42

Posting Permissions

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