×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    remy_david
    Guest

    Qt Mobility API not working with Nokia Qt SDK + incomplete docs

    Hello,

    I am trying to use Mobility APIs in Nokia Qt SDK Emulator. After several days, I am still stuck. My config: Symbian S60 5th edition SDK + Nokia Qt SDK + Windows Vista

    I followed the Nokia SDK Qt Mobility Project Reference Documentation -> Installation Guide.
    The doc is not clear at all but I think what I need is "Building For Symbian On Windows", so as the doc says I downloaded and unpacked "qt-mobility-symbian-opensource-1.1.0". Then the doc says : "See the symbian\install.txt file on how to deploy". Ok nice, so I go in this .txt and found this: "Please refer to installation.html under doc/html.". So, I go there, and launch the HTML.... which is exactly the same doc that says "See the symbian\install.txt file on how to deploy these". Nice joke Nokia, you just invented an infinite documentation loop

    Well, the doc also says: "If you wish to build QtMobility yourself, run configure in the package directory"
    I did just that and get a "Project ERROR: Must have a Symbian sensor backend available configure failed", don't know what this means since I have several Symbian SDK installed.

    After some research the Nokia Qt SDK documentation also says the SDK comes with Mobility APIs installed, and that I only need to add in my .pro:
    CONFIG += mobility
    MOBILITY = sysinfo (or whatever)
    to get it to work (I followed the Creating a Mobile Application with Nokia Qt SDK article).
    But the Mobility headers never gets recognized in my code (error: QSystemDeviceInfo: No such file or directory). I re installed Nokia Qt SDK several time without more luck.

    I am totally lost on this. Can somebody clearly say me what I need to do to use Mobility API with Nokia Qt SDK ?

    Thanks you very much.
    Last edited by remy_david; 2010-12-08 at 16:25.

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

    Re: Qt Mobility API not working with Nokia Qt SDK + incomplete docs

    Well, on each Qt environment there is no strict concept, that how to call each Qt environment on its environment.
    But maybe, that those Symbian and Qt people's own concepts as they call Qt, is little bit wrong understood by
    the 3rd parties (=developers) at the present time.

    Alone Nokia Qt SDK (for Windows and i am talking Windows based Nokia development tools now) is able to produce apps on the
    the simulator and on the target device which is Nokia phone.

    As you said : "Mobility APIs in Nokia Qt SDK Emulator.", there is no
    emulator on Nokia Qt SDK, but there is simulator, which is not the
    same as emulator, that you will have, if you download S60 SDK.

    There are at least two different Qt environments, that are able to produce
    builds for target device :

    1
    Nokia Qt SDK -> builds on Windows based simulator and on the target device
    and Qt Mobility is embedded into this SDK. Note that, Nokia Qt SDK is not
    able to produce apps on the Windows desktop environment.

    2 (all these tools together and downloaded and installed one after one)
    Carbide.C++
    Nokia S60 SDK or Nokia SDK for S^3 device
    Ot for Symbian
    Qt Mobility
    Qt for Windows

    In case 2, you are able to produce apps on the Windows based emulator,
    on the Windows based simulator, on WIndows desktop, and on the target
    device with native Symbian C++, Qt C++ and even mixed applications written
    with Symbian C++ and Qt C++.

    I think that is better to stay in case 1, and wait what happens in
    near future within the case of Nokia Qt SDK.


    OK Story continues.

    But if you have installed 1) and 2) cases, then you are able to work with 2 pieces Qt IDEs (=2 QtCretors) and with 1 Carbide IDE.
    But still, you are not able to build some features, if you do not change your building environment to
    the other, that is not contained within Nokia Qt SDK.

    Just choose from your Qt's IDE project settings (not from carbide but from qt ides), that which environment you are willing to compile.

    OK Story continues.

    But if you have sample application written for Qt that contains only .pro file, how to produce from the
    sample application the version, that you can run under the emulator too.

    Go to your command line instruction from your windows start menu, and choose this command :
    C:\Windows\System32\cmd.exe /K C:\Qt\4.7.1-symbian\bin\qtenv.bat

    Go to your applications home folder, and write :

    qmake
    make wincw-udeb (do i remember the command correct)

    and after these commands, yuo have pro file (as was before command
    line command) for Qt environment and other project files for your Carbide environment.


    Now your Qt environment is established to understand all configurations, that
    all those Qt installations + Carbide environments understands.

    So, Good luck on your experimental on the Qt's world.


    But story continues.

    But if your device is installed by Qt 4.6.3 components, there is no help,
    if Windows based development environment is established with other
    version than Qt 4.6.3. You cannot deploy on your phone application,
    that is compiled with other Qt version, than 4.6.3. Well, maybe,
    that Qt 4.6.2 is deployable on the phone's environment that
    contains 4.6.3 environment.
    Last edited by teknikko; 2010-12-08 at 21:28.

  3. #3
    Super Contributor
    Join Date
    Mar 2008
    Posts
    1,481

    Re: Qt Mobility API not working with Nokia Qt SDK + incomplete docs

    Hi,
    Let's keep the story short by following these steps.
    #1 Download Qt SDK from this link http://qt.nokia.com/downloads/
    #2 install TRK (You can select from your PC's menu system where you installed the SDK)
    #3 Send the qt.sis to your devices
    #4 Send the qtmobility.sis to your devices
    Now just run the Sysinfo example and see that it is running in your phone. If the qt mobility does not work, try to run plain Qt app also and see if all installation are OK.
    If there is problem ask again here and provide as much information as possible.

  4. #4
    remy_david
    Guest

    Re: Qt Mobility API not working with Nokia Qt SDK + incomplete docs

    Thanks for your replies.

    mahbub_s60: Like I said in my post, I am not trying to run my app on device (at least, not yet). I want to compile and run it for the Qt Simulator. Is this possible ?

    Teknikko: I don't want to make windows apps, I am only targetting Symbian devices, so according to what you said I should only need Nokia Qt SDK. When I choose "Simulator Qt for MinGW 4.4 (Nokia Qt SDK)" in my Qt Creator project build settings, the compilator does not recognise Mobility headers and namespace (same happens if I import one of the Mobility sample projects in my workspace).

    By the way I installed Nokia Qt SDK on a fresh Windows install without installing or touching anything else, just clean&fresh install.
    The sysinfo quickstart example created with the Qt Creator mobile application wizard is not compiling for Qt Simulator for the same reasons than before (QSystemDeviceInfo: No such file or directory).
    If I compile for Symbian device I get :
    "qsysteminfo.h:177:error: 'QNetworkInterface' does not name a type.

    My conclusion is that Nokia Qt SDK does not include Mobility APIs out of the box whatever the docs says. We need to install or configure something in addition to Nokia Qt SDK, but I don"t know what and how.

    Thanks again for helping
    Last edited by remy_david; 2010-12-09 at 16:02.

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

    Re: Qt Mobility API not working with Nokia Qt SDK + incomplete docs

    You do not have to configure nothing in case of Nokia Qt SDK - if you have managed to install it ok.
    Try compile example application that uses QtMobility from your Nokia Qt SDK :
    (default installation folder in my case. I have Nokia Qt SDK that contains 4.6.3 )

    C:\NokiaQtSDK\Examples

    Be sure, that you compile the those apps, that uses Nokia Qt SDK components and versions.
    I think these examples from qt-mobility-symbian-opensource-1.1.0 are not for Nokia QT SDK compatible.
    But i am not sure.

  6. #6
    remy_david
    Guest

    Re: Qt Mobility API not working with Nokia Qt SDK + incomplete docs

    Correct me if I am wrong but none of the C:\NokiaQtSDK\Examples project are using QtMobility APIs. They all compile and run fine on both Qt Simulator and device for me.
    However none of the qt-mobility-symbian-opensource-1.1.0\examples are compiling for me with the same setup.

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

    Re: Qt Mobility API not working with Nokia Qt SDK + incomplete docs

    #
    My conclusion is that Nokia Qt SDK does not include Mobility APIs out of the box whatever the docs says.
    #

    NokiaQtSDK > QtCreator > Help > Start Updater
    shows in my case this :

    http://img528.imageshack.us/img528/1...bilityapis.jpg

    My original NokiaQtSDK v1.0, so actually i do not know
    your case, if you have newer version of NokiaQtSDK.

  8. #8
    Super Contributor
    Join Date
    Mar 2008
    Posts
    1,481

    Re: Qt Mobility API not working with Nokia Qt SDK + incomplete docs

    Mobility examples are not included in Nokia QtSDK (but binaries are included).
    With simulator (we can't test for example making a phone call but some might work for example contact API). So it depends on what we are doing.

    To be familiar with or working with Qt mobility just you can download the examples and send it to devices.

  9. #9
    remy_david
    Guest

    Re: Qt Mobility API not working with Nokia Qt SDK + incomplete docs

    Quote Originally Posted by teknikko View Post
    #
    My conclusion is that Nokia Qt SDK does not include Mobility APIs out of the box whatever the docs says.
    #

    NokiaQtSDK > QtCreator > Help > Start Updater
    shows in my case this :

    http://img528.imageshack.us/img528/1...bilityapis.jpg

    My original NokiaQtSDK v1.0, so actually i do not know
    your case, if you have newer version of NokiaQtSDK.
    I have the same, they are supposed to be included but you cannot do anything with them on simulator.

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

    Re: Qt Mobility API not working with Nokia Qt SDK + incomplete docs

    Yes, i was wrong when i wrote, that "try examples that are using QtMobility" from C:\nokiaqtsdk...\examples.

    Actually there is one example that is quite near QtMobility example (at least its name) that afterwards is published
    as "QtMobility" example :

    C:\NokiaQtSDK\Examples\4.6\network\bearercloud

    But that version of bearercloud is not using real "QtMobility" namespace.
    I am sorry for my wrong information on the QtMobility case.

    But this version of bearercloud works on the simulator.

  11. #11
    Registered User
    Join Date
    Dec 2010
    Posts
    4

    Re: Qt Mobility API not working with Nokia Qt SDK + incomplete docs

    I have tried to configure QtMobility for Symbian on Linux and have the same error: Must have a Symbian sensor backend available

    I have intalled debian packages described in http://labs.qt.nokia.com/2010/12/17/...#comment-18926
    I have updated enviroment variables:
    export PATH=/usr/share/qt4/qt-symbian/bin:$PATH
    export LD_LIBRARY_PATH=/usr/share/qt4/lib
    export QTDIR=/usr/share/qt4/
    export EPOCROOT=/usr/s60-sdk/
    export PATH=$EPOCROOT/epoc32/tools:$PATH

    Is it possible to solve mentioned problem somehow?

    Nokia Qt SDK for Linux does not include Symbian development possibility.
    Thanks!

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

    Re: Qt Mobility API not working with Nokia Qt SDK + incomplete docs

    Quote Originally Posted by AlexVershynin View Post
    Nokia Qt SDK for Linux does not include Symbian development possibility.
    You can use remote compiler.

  13. #13
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Location
    Finland
    Posts
    327

    Re: Qt Mobility API not working with Nokia Qt SDK + incomplete docs

    The best bet under Linux is the remote compiler, but, as of recently, enterprising souls can also check out http://labs.qt.nokia.com/2010/12/17/...ment-on-linux/ - completely unsupported and highly experimental, but hardcore linux devs wouldn't have it any other way

  14. #14
    Registered User
    Join Date
    Dec 2010
    Posts
    7

    Re: Qt Mobility API not working with Nokia Qt SDK + incomplete docs

    Quote Originally Posted by remy_david View Post

    My conclusion is that Nokia Qt SDK does not include Mobility APIs out of the box whatever the docs says. We need to install or configure something in addition to Nokia Qt SDK, but I don"t know what and how.
    in my opinion,nokia qt sdk 1.0.2 has Mobility API 1.0.2, and it has less modules . The newest is 1.1.0 ,and some new APIs have been added in . So you can't run the examples .

  15. #15
    Registered User
    Join Date
    Jan 2011
    Posts
    1

    Re: Qt Mobility API not working with Nokia Qt SDK + incomplete docs

    Hi,
    I had the same problem for a few days.
    I solve it by doing this -
    in your source file you include - #include <QSystemInfo>

    Try include this - #include <QtSystemInfo/QSystemInfo>

Similar Threads

  1. Nokia Qt SDK and Qt Mobility - Installation Problems
    By napstar in forum [Archived] Qt SDKs and Tools
    Replies: 8
    Last Post: 2011-06-07, 13:40
  2. Replies: 1
    Last Post: 2011-01-05, 15:28
  3. Replies: 35
    Last Post: 2010-09-13, 12:05
  4. Replies: 3
    Last Post: 2010-06-30, 01:17
  5. Nokia Qt SDK missing QT Mobility - messaging
    By Zeddeh in forum [Archived] Qt SDKs and Tools
    Replies: 5
    Last Post: 2010-06-07, 08:46

Posting Permissions

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