×

Discussion Board

Results 1 to 4 of 4

Hybrid View

  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    23

    Qt Creator 2.0.94 not compiling QML application

    Hey,

    I'm quite new to Qt/QML and started out with a simple QML application in the Qt Creator 2.1 beta but I'm running in to some problems and I think they might be related.

    The first one is that whenever I start a new Qt Quick project I cannot choose Symbian Device as a target. However when starting a new Qt Mobile application Symbian Device appears as target. Now when I go to projects (in my Qt Quick app) I can hit the '+' and add Symbian Device as a target.

    The second problem is that when I try to build my project for Symbian Device (using the above mentioned 'projects -> add Symbian Device') I get a ton of build Issues all revolving around QtDeclarative/QtDeclarativeView. Looking in to the (by Qt Creator generated) qmlapplicationviewer.h and qmlapplicationviewer.cpp I see error lines under the following #includes saying "no such file or directory":

    in the . h file:
    Code:
    #include <QtDeclarative/QDeclarativeView>
    in the .cpp file:
    Code:
    #include <QtDeclarative/QDeclarativeComponent>
    #include <QtDeclarative/QDeclarativeEngine>
    #include <QtDeclarative/QDeclarativeContext>

    This is the Compile output I get:
    Code:
    Running build steps for project PokerClock...
    Starting: "c:\nokiaqtsdk\symbian\sdk\bin\qmake.exe" C:\QtApps\PokerClock\PokerClock.pro -r -spec symbian-abld -after OBJECTS_DIR=obj MOC_DIR=moc UI_DIR=ui RCC_DIR=rcc QMLJSDEBUGGER_PATH=C:/Qt/qtcreator-2.0.94/share/qtcreator/qml/qmljsdebugger
    The process "c:\nokiaqtsdk\symbian\sdk\bin\qmake.exe" exited normally.
    Starting: "C:\NokiaQtSDK\Symbian\SDK\epoc32\tools\make.exe" debug-gcce -w
    C:\NokiaQtSDK\Symbian\SDK\epoc32\tools\make.exe: Entering directory `C:/QtApps/PokerClock'
    bldmake bldfiles
    ABLD.BAT build gcce udeb
      make -r  -f "\NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\QtApps\PokerClock\EXPORT.make" EXPORT VERBOSE=-s
    make[1]: Entering directory `C:/QtApps/PokerClock'
    Nothing to do
    make[1]: Leaving directory `C:/QtApps/PokerClock'
      make -r  -f "\NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\QtApps\PokerClock\GCCE.make" MAKEFILE VERBOSE=-s
    make[1]: Entering directory `C:/QtApps/PokerClock'
    make -s  -C \QtApps\PokerClock -f "MAKEFILE_0XE0728D23.MK" TO_ROOT=..\.. EPOCBLD=\NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\MAKEFILE_0XE0728D23\GCCE TO_BLDINF=..\..\QtApps\PokerClock PLATFORM=GCCE MAKMAKE
    perl -S makmake.pl  -D \QtApps\PokerClock\POKERCLOCK_0XE0728D23 GCCE   
    
    MMPFILE "\QtApps\PokerClock\POKERCLOCK_0XE0728D23.MMP"
    WARNING: \QtApps\PokerClock\POKERCLOCK_0XE0728D23.MMP(51) : SYSTEMINCLUDE path "\NokiaQtSDK\Symbian\SDK\epoc32\include\osextensions\stdapis\" not found
    
    WARNING: \QtApps\PokerClock\POKERCLOCK_0XE0728D23.MMP(52) : SYSTEMINCLUDE path "\NokiaQtSDK\Symbian\SDK\epoc32\include\osextensions\stdapis\sys\" not found
    
    WARNING: \QtApps\PokerClock\POKERCLOCK_0XE0728D23.MMP(57) : SYSTEMINCLUDE path "\NokiaQtSDK\Symbian\SDK\epoc32\include\osextensions\stdapis\stlport\" not found
    
    WARNING: \QtApps\PokerClock\POKERCLOCK_0XE0728D23.MMP(59) : SYSTEMINCLUDE path "\NokiaQtSDK\Symbian\SDK\epoc32\include\oem\" not found
    
    WARNING: \QtApps\PokerClock\POKERCLOCK_0XE0728D23.MMP(62) : SYSTEMINCLUDE path "\NokiaQtSDK\Symbian\SDK\epoc32\include\osextensions\" not found
    
    WARNING: \QtApps\PokerClock\POKERCLOCK_0XE0728D23.MMP(63) : SYSTEMINCLUDE path "\NokiaQtSDK\Symbian\SDK\epoc32\include\domain\osextensions\" not found
    
    WARNING: \QtApps\PokerClock\POKERCLOCK_0XE0728D23.MMP(64) : SYSTEMINCLUDE path "\NokiaQtSDK\Symbian\SDK\epoc32\include\domain\osextensions\loc\" not found
    
    WARNING: \QtApps\PokerClock\POKERCLOCK_0XE0728D23.MMP(66) : SYSTEMINCLUDE path "\NokiaQtSDK\Symbian\SDK\epoc32\include\domain\osextensions\loc\sc\" not found
    
    WARNING: \QtApps\PokerClock\POKERCLOCK_0XE0728D23.MMP(67) : SYSTEMINCLUDE path "\NokiaQtSDK\Symbian\SDK\epoc32\include\domain\middleware\loc\sc\" not found
    
    
    WARNING: Can't find following headers in System Include Path
     <QtDeclarative\QDeclarativeView>
    (Sys Inc Paths "\NokiaQtSDK\Symbian\SDK\include\QtCore\" "\NokiaQtSDK\Symbian\SDK\include\QtCore\tmp\" "\NokiaQtSDK\Symbian\SDK\include\QtGui\" "\NokiaQtSDK\Symbian\SDK\include\QtGui\tmp\" "\NokiaQtSDK\Symbian\SDK\include\QtDeclarative\" "\NokiaQtSDK\Symbian\SDK\include\QtDeclarative\tmp\" "\NokiaQtSDK\Symbian\SDK\include\" "\NokiaQtSDK\Symbian\SDK\include\tmp\" "\NokiaQtSDK\Symbian\SDK\mkspecs\common\symbian\" "\NokiaQtSDK\Symbian\SDK\mkspecs\common\symbian\tmp\" "\NokiaQtSDK\Symbian\SDK\epoc32\include\" "\NokiaQtSDK\Symbian\SDK\epoc32\include\osextensions\stdapis\" "\NokiaQtSDK\Symbian\SDK\epoc32\include\osextensions\stdapis\sys\" "\NokiaQtSDK\Symbian\SDK\epoc32\include\stdapis\" "\NokiaQtSDK\Symbian\SDK\epoc32\include\stdapis\sys\" "\QtApps\PokerClock\qmlapplicationviewer\" "\QtApps\PokerClock\qmlapplicationviewer\tmp\" "\NokiaQtSDK\Symbian\SDK\epoc32\include\osextensions\stdapis\stlport\" "\NokiaQtSDK\Symbian\SDK\epoc32\include\stdapis\stlport\" "\NokiaQtSDK\Symbian\SDK\epoc32\include\oem\" "\NokiaQtSDK\Symbian\SDK\epoc32\include\middleware\" "\NokiaQtSDK\Symbian\SDK\epoc32\include\domain\middleware\" "\NokiaQtSDK\Symbian\SDK\epoc32\include\osextensions\" "\NokiaQtSDK\Symbian\SDK\epoc32\include\domain\osextensions\" "\NokiaQtSDK\Symbian\SDK\epoc32\include\domain\osextensions\loc\" "\NokiaQtSDK\Symbian\SDK\epoc32\include\domain\middleware\loc\" "\NokiaQtSDK\Symbian\SDK\epoc32\include\domain\osextensions\loc\sc\" "\NokiaQtSDK\Symbian\SDK\epoc32\include\domain\middleware\loc\sc\" "\QtApps\PokerClock\moc\" "\QtApps\PokerClock\moc\tmp\" "\QtApps\PokerClock\" "\QtApps\PokerClock\tmp\" "\QtApps\PokerClock\ui\" "\QtApps\PokerClock\ui\tmp\" "\NokiaQtSDK\Symbian\SDK\epoc32\include\variant" "c:/nokiaqtsdk/symbian/gcce/lib/gcc/arm-none-symbianelf/4.3.3/include\")
    Dependency list for "\QtApps\PokerClock\main.cpp" may be incomplete
    
    make[1]: Leaving directory `C:/QtApps/PokerClock'
      make -r  -f "\NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\QtApps\PokerClock\GCCE.make" LIBRARY VERBOSE=-s
    make[1]: Entering directory `C:/QtApps/PokerClock'
    make -s  -C \QtApps\PokerClock -f "MAKEFILE_0XE0728D23.MK" TO_ROOT=..\.. EPOCBLD=\NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\MAKEFILE_0XE0728D23\GCCE TO_BLDINF=..\..\QtApps\PokerClock PLATFORM=GCCE LIB
    C:\QtApps\PokerClock\moc\moc_qmlapplicationviewer.cpp:12: #error "The header file 'qmlapplicationviewer.h' doesn't include <QObject>."
    ERROR: cpp.EXE failure
    make[1]: *** [MAKEFILEPOKERCLOCK_0XE0728D23] Error 33
    make -s  -r -f "\NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\QtApps\PokerClock\POKERCLOCK_0XE0728D23\GCCE\POKERCLOCK_0XE0728D23.GCCE" LIBRARY
    make[1]: Leaving directory `C:/QtApps/PokerClock'
      make -r  -f "\NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\QtApps\PokerClock\GCCE.make" RESOURCE CFG=UDEB VERBOSE=-s
    make[1]: Entering directory `C:/QtApps/PokerClock'
    make -s  -C \QtApps\PokerClock -f "MAKEFILE_0XE0728D23.MK" TO_ROOT=..\.. EPOCBLD=\NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\MAKEFILE_0XE0728D23\GCCE TO_BLDINF=..\..\QtApps\PokerClock PLATFORM=GCCE CFG=UDEB RESOURCE
    make[2]: \NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\QtApps\PokerClock\POKERCLOCK_0XE0728D23\GCCE\POKERCLOCK_0XE0728D23.GCCE: No such file or directory
    make[2]: *** No rule to make target `\NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\QtApps\PokerClock\POKERCLOCK_0XE0728D23\GCCE\POKERCLOCK_0XE0728D23.GCCE'.  Stop.
    make[1]: *** [LIBRARYPOKERCLOCK_0XE0728D23] Error 2
    make -s  -r -f "\NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\QtApps\PokerClock\POKERCLOCK_0XE0728D23\GCCE\POKERCLOCK_0XE0728D23.GCCE" RESOURCEUDEB
    make[1]: Leaving directory `C:/QtApps/PokerClock'
      make -r  -f "\NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\QtApps\PokerClock\GCCE.make" TARGET CFG=UDEB VERBOSE=-s
    make[1]: Entering directory `C:/QtApps/PokerClock'
    make -s  -C \QtApps\PokerClock -f "MAKEFILE_0XE0728D23.MK" TO_ROOT=..\.. EPOCBLD=\NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\MAKEFILE_0XE0728D23\GCCE TO_BLDINF=..\..\QtApps\PokerClock PLATFORM=GCCE CFG=UDEB BLD
    make[2]: \NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\QtApps\PokerClock\POKERCLOCK_0XE0728D23\GCCE\POKERCLOCK_0XE0728D23.GCCE: No such file or directory
    make[2]: *** No rule to make target `\NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\QtApps\PokerClock\POKERCLOCK_0XE0728D23\GCCE\POKERCLOCK_0XE0728D23.GCCE'.  Stop.
    make[1]: *** [RESOURCEPOKERCLOCK_0XE0728D23] Error 2
    make -s  -r -f "\NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\QtApps\PokerClock\POKERCLOCK_0XE0728D23\GCCE\POKERCLOCK_0XE0728D23.GCCE" UDEB
    make[1]: Leaving directory `C:/QtApps/PokerClock'
      make -r  -f "\NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\QtApps\PokerClock\GCCE.make" FINAL CFG=UDEB VERBOSE=-s
    make[1]: Entering directory `C:/QtApps/PokerClock'
    make -s  -C \QtApps\PokerClock -f "MAKEFILE_0XE0728D23.MK" TO_ROOT=..\.. EPOCBLD=\NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\MAKEFILE_0XE0728D23\GCCE TO_BLDINF=..\..\QtApps\PokerClock PLATFORM=GCCE CFG=UDEB FINAL
    make[2]: \NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\QtApps\PokerClock\POKERCLOCK_0XE0728D23\GCCE\POKERCLOCK_0XE0728D23.GCCE: No such file or directory
    make[2]: *** No rule to make target `\NokiaQtSDK\Symbian\SDK\EPOC32\BUILD\QtApps\PokerClock\POKERCLOCK_0XE0728D23\GCCE\POKERCLOCK_0XE0728D23.GCCE'.  Stop.
    make[1]: *** [TARGETPOKERCLOCK_0XE0728D23] Error 2
    Deploying changed files...
    0 bestand(en) gekopieerd
    0 bestand(en) gekopieerd
    0 bestand(en) gekopieerd
    0 bestand(en) gekopieerd
    0 bestand(en) gekopieerd
    0 bestand(en) gekopieerd
    make[1]: Leaving directory `C:/QtApps/PokerClock'
    C:\NokiaQtSDK\Symbian\SDK\epoc32\tools\make.exe: Leaving directory `C:/QtApps/PokerClock'
    The process "C:\NokiaQtSDK\Symbian\SDK\epoc32\tools\make.exe" exited normally.
    Error while building project PokerClock (target: Symbian Device)
    When executing build step 'Make'

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

    Re: Qt Creator 2.0.94 not compiling QML application

    The stable 4.6.2 version of Qt (which is shipped with the current SDK and Symbian devices) does not support QtQuick. For that, you need at least Qt4.7 (you might have a desktop or Maemo version of Qt4.7 which would then mean QtQuick availability for those targets). Symbian support for QtQuick will come with the Qt SDK 1.1, hopefully available real soon now (TM).

  3. #3
    Nokia Developer Champion
    Join Date
    Aug 2008
    Location
    Vadodara, India.
    Posts
    910

    Re: Qt Creator 2.0.94 not compiling QML application

    Well i faced related issue with Qt SDK. i suggest you to download Qt SDK From qt.nokia.com site or newly released Qt SDK 1.1 Tech Preview . you will get that from below link.
    https://www.forum.nokia.com/info/sw....f8/Qt_SDK.html
    Nokia Developer Wiki Moderation team
    World's Greatest Speeches for Windows Phone is now available on WP Marketplace.

  4. #4
    Registered User
    Join Date
    Apr 2009
    Posts
    23

    Re: Qt Creator 2.0.94 not compiling QML application

    It works with the new version, thanks!

Similar Threads

  1. [Qt QML] Questions regarding QML Performance
    By SeanZhang in forum [Archived] Qt Quick
    Replies: 1
    Last Post: 2011-05-05, 13:07
  2. Compiling qml application for symbian
    By hesillan in forum [Archived] Qt SDKs and Tools
    Replies: 6
    Last Post: 2010-11-16, 13:24

Posting Permissions

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