×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    4

    Problem with Qt Mobility

    I extracted the zip file to SDK root folder and Qt mobility libraries are installed.

    Took the sample code from the quick start documentation. Added to the .pro file.

    CONFIG += mobility
    MOBILITY += systeminfo

    Compiled it but it returns with errors on make! Do I need to do any thing else for the quick start?

    I even tried to add this but no luck,
    INCLUDEPATH += C:/QtMobility/qt-mobility-src-1.0.0-tp2/src/systeminfo

    --------------------------------------------------------------------
    C:\QtWorkspace\S60\Mobility1>qmake -project

    C:\QtWorkspace\S60\Mobility1>qmake Mobility1.pro

    C:\QtWorkspace\S60\Mobility1>make
    bldmake bldfiles
    ABLD.BAT build winscw udeb
    make -r -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\QtWorkspace\S60\Mo
    bility1\EXPORT.make" EXPORT VERBOSE=-s
    make[1]: Entering directory `C:/QtWorkspace/S60/Mobility1'
    Nothing to do
    make[1]: Leaving directory `C:/QtWorkspace/S60/Mobility1'
    make -r -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\QtWorkspace\S60\Mo
    bility1\WINSCW.make" MAKEFILE VERBOSE=-s
    make[1]: Entering directory `C:/QtWorkspace/S60/Mobility1'
    make -s -C \QtWorkspace\S60\Mobility1 -f "MAKEFILE_0XE116E318.MK" TO_ROOT=..\..
    \.. EPOCBLD=..\..\..\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\QtWorkspace\S
    60\Mobility1\MAKEFILE_0XE116E318\WINSCW TO_BLDINF=..\..\..\QtWorkspace\S60\Mobil
    ity1 PLATFORM=WINSCW MAKMAKE
    perl -S makmake.pl -D \QtWorkspace\S60\Mobility1\MOBILITY1_0XE116E318 WINSCW
    perl -S ecopyfile.pl "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\QtW
    orkspace\S60\Mobility1\MOBILITY1_0XE116E318\WINSCW\Mobility1.rsg" "\S60\devices\
    S60_3rd_FP2_SDK_v1.1\epoc32\include\Mobility1.rsg"

    WARNING: Can't find following headers in System Include Path
    <qsysteminfo.h>
    (Sys Inc Paths "\Qt\4.6.0\include\QtCore\" "\Qt\4.6.0\include\QtCore\tmp\" "\Qt\
    4.6.0\include\QtGui\" "\Qt\4.6.0\include\QtGui\tmp\" "\Qt\4.6.0\include\" "\Qt\4
    .6.0\include\tmp\" "\Qt\4.6.0\mkspecs\common\symbian\" "\Qt\4.6.0\mkspecs\common
    \symbian\tmp\" "\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\" "\QtWorkspace
    \S60\Mobility1\" "\QtWorkspace\S60\Mobility1\tmp\" "\S60\devices\S60_3rd_FP2_SDK
    _v1.1\epoc32\include\stdapis\" "\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include
    \stdapis\sys\" "\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\stdapis\stlport
    \" "\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\variant")
    Dependency list for "\QtWorkspace\S60\Mobility1\Mobility1.cpp" may be incomplete


    make[1]: Leaving directory `C:/QtWorkspace/S60/Mobility1'
    make -r -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\QtWorkspace\S60\Mo
    bility1\WINSCW.make" LIBRARY VERBOSE=-s
    make[1]: Entering directory `C:/QtWorkspace/S60/Mobility1'
    make -s -C \QtWorkspace\S60\Mobility1 -f "MAKEFILE_0XE116E318.MK" TO_ROOT=..\..
    \.. EPOCBLD=..\..\..\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\QtWorkspace\S
    60\Mobility1\MAKEFILE_0XE116E318\WINSCW TO_BLDINF=..\..\..\QtWorkspace\S60\Mobil
    ity1 PLATFORM=WINSCW LIB
    make -s -r -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\QtWorkspace\S60\M
    obility1\MOBILITY1_0XE116E318\WINSCW\MOBILITY1_0XE116E318.WINSCW" LIBRARY
    make[1]: Leaving directory `C:/QtWorkspace/S60/Mobility1'
    make -r -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\QtWorkspace\S60\Mo
    bility1\WINSCW.make" RESOURCE CFG=UDEB VERBOSE=-s
    make[1]: Entering directory `C:/QtWorkspace/S60/Mobility1'
    make -s -C \QtWorkspace\S60\Mobility1 -f "MAKEFILE_0XE116E318.MK" TO_ROOT=..\..
    \.. EPOCBLD=..\..\..\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\QtWorkspace\S
    60\Mobility1\MAKEFILE_0XE116E318\WINSCW TO_BLDINF=..\..\..\QtWorkspace\S60\Mobil
    ity1 PLATFORM=WINSCW CFG=UDEB RESOURCE
    make -s -r -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\QtWorkspace\S60\M
    obility1\MOBILITY1_0XE116E318\WINSCW\MOBILITY1_0XE116E318.WINSCW" RESOURCEUDEB

    Created \S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\Mobility1.rsg

    Creating \s60\devices\s60_3rd_fp2_sdk_v1.1\epoc32\build\qtworkspace\s60\mobility
    1\mobility1_0xe116e318\winscw\udeb
    Created \S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\release\WINSCW\udeb\z\resource\
    apps\Mobility1.rsc
    Created \S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\release\WINSCW\udeb\z\private\1
    0003a3f\import\apps\Mobility1_reg.rsc
    make[1]: Leaving directory `C:/QtWorkspace/S60/Mobility1'
    make -r -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\QtWorkspace\S60\Mo
    bility1\WINSCW.make" TARGET CFG=UDEB VERBOSE=-s
    make[1]: Entering directory `C:/QtWorkspace/S60/Mobility1'
    make -s -C \QtWorkspace\S60\Mobility1 -f "MAKEFILE_0XE116E318.MK" TO_ROOT=..\..
    \.. EPOCBLD=..\..\..\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\QtWorkspace\S
    60\Mobility1\MAKEFILE_0XE116E318\WINSCW TO_BLDINF=..\..\..\QtWorkspace\S60\Mobil
    ity1 PLATFORM=WINSCW CFG=UDEB BLD
    make -s -r -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\QtWorkspace\S60\M
    obility1\MOBILITY1_0XE116E318\WINSCW\MOBILITY1_0XE116E318.WINSCW" UDEB
    Mobility1.cpp
    Mobility1.cpp:5: the file 'qsysteminfo.h' cannot be opened
    Mobility1.cpp:9: undefined identifier 'QtMobility'
    Mobility1.cpp:14: undefined identifier 'QSystemInfo'
    Mobility1.cpp:15: undefined identifier 's'

    Errors caused tool to abort.
    make[2]: *** [\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\QtWorkspace\S60\Mob
    ility1\MOBILITY1_0XE116E318\WINSCW\udeb\Mobility1.o] Error 1
    make[1]: *** [TARGETMOBILITY1_0XE116E318] Error 2
    make[1]: Leaving directory `C:/QtWorkspace/S60/Mobility1'
    make -r -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\QtWorkspace\S60\Mo
    bility1\WINSCW.make" FINAL CFG=UDEB VERBOSE=-s
    make[1]: Entering directory `C:/QtWorkspace/S60/Mobility1'
    make -s -C \QtWorkspace\S60\Mobility1 -f "MAKEFILE_0XE116E318.MK" TO_ROOT=..\..
    \.. EPOCBLD=..\..\..\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\QtWorkspace\S
    60\Mobility1\MAKEFILE_0XE116E318\WINSCW TO_BLDINF=..\..\..\QtWorkspace\S60\Mobil
    ity1 PLATFORM=WINSCW CFG=UDEB FINAL
    make[1]: Leaving directory `C:/QtWorkspace/S60/Mobility1'

    C:\QtWorkspace\S60\Mobility1>
    -------------------------------------------

    Thanks

  2. #2
    Nokia Developer Moderator
    Join Date
    Sep 2007
    Posts
    123

    Re: Problem with Qt Mobility

    Hi,
    I think the easiest way to install Qt Mobility APIs is to run configure and make commands like Installation Guide mentions. This will export public headers under SDK's epoc32\include folder and build WINSCW libs and dlls (required for emulator) and export them under \epoc32\release\winscw folder. After you should be able to build the example.

  3. #3
    Registered User
    Join Date
    Dec 2009
    Posts
    4

    Re: Problem with Qt Mobility

    Quote Originally Posted by juhanak View Post
    Hi,
    I think the easiest way to install Qt Mobility APIs is to run configure and make commands like Installation Guide mentions. This will export public headers under SDK's epoc32\include folder and build WINSCW libs and dlls (required for emulator) and export them under \epoc32\release\winscw folder. After you should be able to build the example.
    Well, couldn't it work by alternatively following the second way mentioned in the document? Extracting the zip files to the SDK root folder? I never knew that even after extracting I had to configure, at least the document didn't mention it.

    Ok, lets try to run the commands.

  4. #4
    Registered User
    Join Date
    Dec 2009
    Posts
    4

    Re: Problem with Qt Mobility

    I ran the configure and make command successfully.

    Now when I compile the project I get other errors


    C:\Qtworkspace\Mobility1>make
    ABLD.BAT build winscw udeb
    make -r -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\Qtworkspace\Mobili
    ty1\EXPORT.make" EXPORT VERBOSE=-s
    make[1]: Entering directory `C:/Qtworkspace/Mobility1'
    Nothing to do
    make[1]: Leaving directory `C:/Qtworkspace/Mobility1'
    make -r -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\Qtworkspace\Mobili
    ty1\WINSCW.make" MAKEFILE VERBOSE=-s
    make[1]: Entering directory `C:/Qtworkspace/Mobility1'
    make -s -C \Qtworkspace\Mobility1 -f "MAKEFILE_0XE05BA664.MK" TO_ROOT=..\.. EPO
    CBLD=..\..\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\Qtworkspace\Mobility1\M
    AKEFILE_0XE05BA664\WINSCW TO_BLDINF=..\..\Qtworkspace\Mobility1 PLATFORM=WINSCW
    MAKMAKE
    perl -S makmake.pl -D \Qtworkspace\Mobility1\MOBILITY1_0XE05BA664 WINSCW
    perl -S ecopyfile.pl "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\Qtw
    orkspace\Mobility1\MOBILITY1_0XE05BA664\WINSCW\Mobility1.rsg" "\S60\devices\S60_
    3rd_FP2_SDK_v1.1\epoc32\include\Mobility1.rsg"

    WARNING: Can't find following headers in System Include Path
    <QNetworkInterface>
    (Sys Inc Paths "\Qt\4.6.0\include\QtCore\" "\Qt\4.6.0\include\QtCore\tmp\" "\Qt\
    4.6.0\include\QtGui\" "\Qt\4.6.0\include\QtGui\tmp\" "\Qt\4.6.0\include\" "\Qt\4
    .6.0\include\tmp\" "\Qtworkspace\Mobility1\" "\Qtworkspace\Mobility1\tmp\" "\Qt\
    4.6.0\mkspecs\common\symbian\" "\Qt\4.6.0\mkspecs\common\symbian\tmp\" "\S60\dev
    ices\S60_3rd_FP2_SDK_v1.1\epoc32\include\" "\S60\devices\S60_3rd_FP2_SDK_v1.1\ep
    oc32\include\osextensions\stdapis\" "\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\in
    clude\osextensions\stdapis\sys\" "\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\inclu
    de\stdapis\" "\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\stdapis\sys\" "\S
    60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\osextensions\stdapis\stlport\" "\
    S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\stdapis\stlport\" "\S60\devices\
    S60_3rd_FP2_SDK_v1.1\epoc32\include\osextensions\" "\S60\devices\S60_3rd_FP2_SDK
    _v1.1\epoc32\include\variant")
    Dependency list for "\Qtworkspace\Mobility1\Mobility1.cpp" may be incomplete

    make[1]: Leaving directory `C:/Qtworkspace/Mobility1'
    make -r -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\Qtworkspace\Mobili
    ty1\WINSCW.make" LIBRARY VERBOSE=-s
    make[1]: Entering directory `C:/Qtworkspace/Mobility1'
    make -s -C \Qtworkspace\Mobility1 -f "MAKEFILE_0XE05BA664.MK" TO_ROOT=..\.. EPO
    CBLD=..\..\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\Qtworkspace\Mobility1\M
    AKEFILE_0XE05BA664\WINSCW TO_BLDINF=..\..\Qtworkspace\Mobility1 PLATFORM=WINSCW
    LIB
    make -s -r -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\Qtworkspace\Mobil
    ity1\MOBILITY1_0XE05BA664\WINSCW\MOBILITY1_0XE05BA664.WINSCW" LIBRARY
    make[1]: Leaving directory `C:/Qtworkspace/Mobility1'
    make -r -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\Qtworkspace\Mobili
    ty1\WINSCW.make" RESOURCE CFG=UDEB VERBOSE=-s
    make[1]: Entering directory `C:/Qtworkspace/Mobility1'
    make -s -C \Qtworkspace\Mobility1 -f "MAKEFILE_0XE05BA664.MK" TO_ROOT=..\.. EPO
    CBLD=..\..\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\Qtworkspace\Mobility1\M
    AKEFILE_0XE05BA664\WINSCW TO_BLDINF=..\..\Qtworkspace\Mobility1 PLATFORM=WINSCW
    CFG=UDEB RESOURCE
    make -s -r -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\Qtworkspace\Mobil
    ity1\MOBILITY1_0XE05BA664\WINSCW\MOBILITY1_0XE05BA664.WINSCW" RESOURCEUDEB
    make[1]: Leaving directory `C:/Qtworkspace/Mobility1'
    make -r -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\Qtworkspace\Mobili
    ty1\WINSCW.make" TARGET CFG=UDEB VERBOSE=-s
    make[1]: Entering directory `C:/Qtworkspace/Mobility1'
    make -s -C \Qtworkspace\Mobility1 -f "MAKEFILE_0XE05BA664.MK" TO_ROOT=..\.. EPO
    CBLD=..\..\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\Qtworkspace\Mobility1\M
    AKEFILE_0XE05BA664\WINSCW TO_BLDINF=..\..\Qtworkspace\Mobility1 PLATFORM=WINSCW
    CFG=UDEB BLD
    make -s -r -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\Qtworkspace\Mobil
    ity1\MOBILITY1_0XE05BA664\WINSCW\MOBILITY1_0XE05BA664.WINSCW" UDEB
    Mobility1.cpp
    ..\..\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\qsysteminfo.h:50: the file
    'QNetworkInterface' cannot be opened
    ..\..\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\qsysteminfo.h:183: undefin
    ed identifier 'QNetworkInterface'

    Errors caused tool to abort.
    make[2]: *** [\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\Qtworkspace\Mobilit
    y1\MOBILITY1_0XE05BA664\WINSCW\udeb\Mobility1.o] Error 1
    make[1]: *** [TARGETMOBILITY1_0XE05BA664] Error 2
    make[1]: Leaving directory `C:/Qtworkspace/Mobility1'
    make -r -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\Qtworkspace\Mobili
    ty1\WINSCW.make" FINAL CFG=UDEB VERBOSE=-s
    make[1]: Entering directory `C:/Qtworkspace/Mobility1'
    make -s -C \Qtworkspace\Mobility1 -f "MAKEFILE_0XE05BA664.MK" TO_ROOT=..\.. EPO
    CBLD=..\..\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\Qtworkspace\Mobility1\M
    AKEFILE_0XE05BA664\WINSCW TO_BLDINF=..\..\Qtworkspace\Mobility1 PLATFORM=WINSCW
    CFG=UDEB FINAL
    make[1]: Leaving directory `C:/Qtworkspace/Mobility1'

  5. #5
    Nokia Developer Moderator
    Join Date
    Sep 2007
    Posts
    123

    Re: Problem with Qt Mobility

    Warnings/errors of missing QNetworkInterface probably get fixed by adding "QT += network" statement to pro file.

  6. #6
    Registered User
    Join Date
    Oct 2009
    Location
    Bandung, Indonesia
    Posts
    36

    Re: Problem with Qt Mobility

    Quote Originally Posted by picachu.nioto View Post
    Well, couldn't it work by alternatively following the second way mentioned in the document? Extracting the zip files to the SDK root folder? I never knew that even after extracting I had to configure, at least the document didn't mention it.

    Ok, lets try to run the commands.
    Indeed, this should be fixed in the Qt Mobility documentation.

    It says an alternative is to unpack the prebuilt Qt Mobility binaries for Symbian. But the documentation wasn't so clear in saying that it only installs the library files, not other files like the include/header (.h) files.

    In other words, running "configure" is mandatory. "make" on the other hand, is not.
    [URL="http://qt-mobility.blogspot.com"]Hendy's Qt Mobility & Symbian Development Blog[/URL]

  7. #7
    Registered User
    Join Date
    Mar 2010
    Posts
    1

    Re: Problem with Qt Mobility

    Interesting post dude....discussion are always helpful in one way or the other. Thanks for giving out information. It’s really nice and mean full.
    Pulson

  8. #8
    Registered User
    Join Date
    Apr 2010
    Posts
    2

    Re: Problem with Qt Mobility

    Thank you for sharing this valuable information.

Similar Threads

  1. Compiling Qt Mobility Problem
    By skumar_rao in forum [Archived] Qt Mobility Project
    Replies: 8
    Last Post: 2010-01-07, 00:13
  2. Problem with S60 2nd Edition FP2 and mobility pack
    By alamatula in forum Mobile Java Games
    Replies: 0
    Last Post: 2008-07-24, 16:40
  3. Problem With 3510i Emulator With Java Studio Mobility
    By ogucbey in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2004-12-10, 18:00

Posting Permissions

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