×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    43

    Program won't start when using Qt-Mobility

    Hi,

    I have a small program that uses QtMobility::SystemInfo. The program will not start on the device when using Qt-Mobility but runs fine on the S60 Emulator.

    The application doesn't start after being installed on the S60 device. This only happens when it's using Qt-Mobility.

    I'm working on a Nokia N97, I believe it's an Arm11.

    I'm using Qt-Mobility, Qt for Symbian 4.6.2 and S60 5th Edition with Carbide 2.4

    I built the Qt-Mobility library and the build configurations work fine in Carbide.


    Thanks,
    Jim

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

    Re: Program won't start when using Qt-Mobility

    Did you install Qt Mobility on your N97?

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

    Re: Program won't start when using Qt-Mobility

    I downloaded the zipped files and installed the .sis file located in the folder called install_to_device. First I installed Qt and it's dependencies.


    Jim

  4. #4
    Registered User
    Join Date
    Jan 2010
    Posts
    43

    Re: Program won't start when using Qt-Mobility

    I used App TRk to load the program before it was linked to Qt-Mobility but now AppTrk can't load it.

    Could this be a shared library problem?


    Jim

  5. #5
    Regular Contributor
    Join Date
    Oct 2008
    Location
    Oslo, Norway
    Posts
    329

    Re: Program won't start when using Qt-Mobility

    Hi,

    Quote Originally Posted by jmclaurin11 View Post
    I built the Qt-Mobility library and the build configurations work fine in Carbide.
    I downloaded the zipped files and installed the .sis file located in the folder called install_to_device. First I installed Qt and it's dependencies.
    So.. are you saying you built the QtSystemInfo library yourself? There's no need to do that - in the same package you found the sis file, there's qt-mobility-1.0.0-beta1-libraries5.0.zip that you can extract to your SDK. Then, you only need to copy mobility.prf file to your <QtDIR>/mkspecs/features directory, and you're good to go.

  6. #6
    Registered User
    Join Date
    Jan 2010
    Posts
    43

    Re: Program won't start when using Qt-Mobility

    I built the libs myself using the instructions from the download site. Could this be a problem on the phone?

    The program works fine on the emulator, the phone uses the .sis install file. I didn't create that binary.

    I'll try using the packaged binaries instead.


    Jim

  7. #7
    Registered User
    Join Date
    Jan 2010
    Posts
    43

    Re: Program won't start when using Qt-Mobility

    If I already built Qt-Mobility myself what should I do to replace the libs with the packaged binaries in the zip file?


    Jim

  8. #8
    Regular Contributor
    Join Date
    Oct 2008
    Location
    Oslo, Norway
    Posts
    329

    Re: Program won't start when using Qt-Mobility

    Simply extract the binaries from the zip into your S60 SDK. Then, recompile your app so that it links against the prebuilt libraries.

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

    Re: Program won't start when using Qt-Mobility

    These instructions are in the qt-mobility-symbian-1.0.0-beta1 package:
    - Installing the mobility libraries to your Symbian SDK happens by extracting the
    'qt-mobility-1.0.0-beta1-libraries<S60SDK>.zip' file to your Symbian SDK.
    - First copy the zip file to your Symbian SDK next to \epoc32 folder, f.ex to C:\Symbian\9.4\S60_5th_Edition_SDK_v1.0_2
    - extract the file
    - Note that you need to repeat this step for all the Symbian SDKs you want to develop with Mobility APIs.

    - Enabling Mobility APIs to your device (Symbian 3rd Edition FP1 or newer, in case unsure see http://www.forum.nokia.com/devices/) :
    - Prerequisite : Qt 4.6.2 for Symbian is installed
    - install the 'qt-mobility-1.0.0-beta1.sis' file to device. You can do this, for example, via bluetooth or through Nokia PC Suite (recommended)

  10. #10
    Registered User
    Join Date
    Jan 2010
    Posts
    43

    Re: Program won't start when using Qt-Mobility

    This fixed the problem with the program not loading but messaging didn't compile when I tried to use the API. The file qmessagedatacomparator.h in the qtm source I was using before is different from the version in the qtm zipped file. There was an enum that was missing called Option.

    Can someone tell me what this is about and why the more recent code isn't compiling as is?


    Jim

  11. #11
    Registered User
    Join Date
    Jan 2010
    Posts
    43

    Re: Program won't start when using Qt-Mobility

    Extracting the zipped binaries worked for SystemInfo, but now the Messaging API isn't compiling. It looks like I have headers and libs that don't match.

    How can I fix this?


    Jim

  12. #12
    Registered User
    Join Date
    Jan 2010
    Posts
    43

    Re: Program won't start when using Qt-Mobility

    When I put the my old .prf file back in features/symbian the program compiles but it still doesn't run. The .prf in the zipped file links with SystemInfo but not with Messaging. I get a lot of undefined references. The program does run on the smart-phone now but I need all of the mobility APIs working.

    I thought everything was in the zipped file containing the binaries and headers. How do I get the right qt-mobility libs and headers where they belong ?


    Jim

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

    Re: Program won't start when using Qt-Mobility

    There are several different sets of instructions for installing the Mobility stuff, none of them complete. Here's what I've worked out needs to be in the PRO file:
    Code:
    CONFIG += mobility
    MOBILITY += systeminfo bearer (whatever subcomponents you use)
    INCLUDEPATH += <Qt install path>/qt-mobility-src-1.0.0-beta1/include \
    	<epoc path>/epoc32/include/applications
    LIBS += -lQtBearer \
    	-lQtSystemInfo (etc)
    symbian:TARGET.CAPABILITY = NetworkServices (or whatever -- most functions are going to use some)
    For the includes to work, you must have done the install/config per the instructions in the Symbian bin distribution, so that the epoc include directories get updated appropriately, and, to use the <QClassName> includes, you must have done the configure sequence on the Mobility directory that is described elsewhere.

  14. #14
    Registered User
    Join Date
    Jan 2010
    Posts
    43

    Re: Program won't start when using Qt-Mobility

    It appears that the libs in the zipped are missing something. When I link to the build I did myself the program compiles but when using the libs in the zipped file I always get QMessageStore::instance() is not defined.

    I built qt-mobility-src-1.0.0-tp and the libs ending with _tp link correctly. What does _tp mean?
    What version is this _tp and why is it linking but not running on the device ?

    The other libs in the zipped file aren't linking all of the mobility APIs but the ones that did link run on the phone.


    Thanks,
    Jim

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

    Re: Program won't start when using Qt-Mobility

    You may be seeing a version mismatch. It's important that all the includes and libs you use be from the same version.

Similar Threads

  1. automatic rotate screen on meamo
    By fily_love in forum Nokia N9
    Replies: 27
    Last Post: 2010-04-06, 08:37
  2. Problem with Qt Mobility
    By picachu.nioto in forum [Archived] Qt Mobility Project
    Replies: 7
    Last Post: 2010-04-06, 05:28
  3. gsreamer-0.10-plugins-good+Phonon
    By niqt in forum Nokia N9
    Replies: 10
    Last Post: 2010-03-05, 09:56
  4. Qt Console + Mobility
    By nameispriya in forum [Archived] Qt Mobility Project
    Replies: 5
    Last Post: 2010-01-29, 09:36
  5. How to run a Qt Mobility app on the S60 emulator
    By ceefour in forum [Archived] Qt Mobility Project
    Replies: 4
    Last Post: 2010-01-27, 07:06

Posting Permissions

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