Results 1 to 2 of 2

Thread: Qt Mobility Examples not working

  1. #1
    Join Date
    Jun 2011
    Posts
    1

    Default Qt Mobility Examples not working

    Hello all,

    First of all, I apologize now for any spelling or grammar mistakes, as English is not my native language.

    Could someone please give me an example/explanation/tutorial/advise/idea on how to run the Qt Mobility examples? I have found tutorials on what every code line does, but not how to run it.

    I am a newbie in Qt, so what could be more helpful than studying the examples? This is what happens:

    I open the example from the welcoming tab => Qt Mobility => Maps Demo ( that is the example I am interested in, but none of the Mobility examples are working )

    I run the application and I get 110 errors.. ( some of the errors are at the end of this post )

    The header files qgaphicsgeomap.h, qgeocoordinate.h and all others from below are not found in the project directory. Of course they are not in the C:\QtSDK\Examples\4.7\mobile\mapsdemo

    Do I need to install something extra? The latest Qt SDK from the nokia site is Qt SDK 1.1 and it includes the Qt Mobility API ( http://labs.qt.nokia.com/2011/05/04/qt-sdk-1-1-released ), so normaly the examples should work. Is it something wrong with the instalation?

    Can someone please give me an idea on what I am doing wrong? Any help would be appreciated.

    By the way, I have not posted the code, as I have not changed anything in the example.

    Qt Code:
    1. Running build steps for project mapsdemo...
    2. Configuration unchanged, skipping qmake step.
    3. Starting: "C:\QtSDK\mingw\bin\mingw32-make.exe"
    4. C:/QtSDK/mingw/bin/mingw32-make -f Makefile.Debug
    5. mingw32-make[1]: Entering directory `C:/QtSDK/Examples/4.7/mobile/mapsdemo-build-desktop'
    6. g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Desktop\Qt\4.7.3\mingw\include\QtCore" -I"..\..\..\..\Desktop\Qt\4.7.3\mingw\include\QtNetwork" -I"..\..\..\..\Desktop\Qt\4.7.3\mingw\include\QtGui" -I"..\..\..\..\Desktop\Qt\4.7.3\mingw\include" -I"..\..\..\..\Desktop\Qt\4.7.3\mingw\include\ActiveQt" -I"debug" -I"..\mapsdemo" -I"." -I"..\..\..\..\Desktop\Qt\4.7.3\mingw\mkspecs\win32-g++" -o debug\mapswidget.o ..\mapsdemo\mapswidget.cpp
    7. In file included from ..\mapsdemo\mapswidget.cpp:42:
    8. ..\mapsdemo\/mapswidget.h:51:29: error: qgraphicsgeomap.h: No such file or directory
    9. ..\mapsdemo\/mapswidget.h:52:32: error: qgeomappingmanager.h: No such file or directory
    10. ..\mapsdemo\/mapswidget.h:53:28: error: qgeocoordinate.h: No such file or directory
    11. In file included from ..\mapsdemo\mapswidget.cpp:43:
    12. ..\mapsdemo\/marker.h:47:33: error: qgeomappixmapobject.h: No such file or directory
    13. ..\mapsdemo\/marker.h:48:31: error: qgeosearchmanager.h: No such file or directory
    14. ..\mapsdemo\/marker.h:51:25: error: qgeoaddress.h: No such file or directory
    15. ..\mapsdemo\/marker.h:52:29: error: qgeosearchreply.h: No such file or directory
    16. In file included from ..\mapsdemo\mapswidget.cpp:42:
    17. ..\mapsdemo\/mapswidget.h:55: error: 'QtMobility' is not a namespace-name
    18. ..\mapsdemo\/mapswidget.h:55: error: expected namespace-name before ';' token
    19. ..\mapsdemo\/mapswidget.h:65: error: expected class-name before '{' token
    20. ..\mapsdemo\/mapswidget.h:72: error: expected ')' before '*' token
    21. ..\mapsdemo\/mapswidget.h:85: error: ISO C++ forbids declaration of 'QGeoMapObject' with no type
    22. ..\mapsdemo\/mapswidget.h:85: error: expected ';' before '*' token
    23. ..\mapsdemo\/mapswidget.h:123: error: ISO C++ forbids declaration of 'QGraphicsGeoMap' with no type
    24. ..\mapsdemo\/mapswidget.h:123: error: expected ';' before '*' token
    25. ..\mapsdemo\/mapswidget.h:126: error: 'QGeoCoordinate' has not been declared
    26. ..\mapsdemo\/mapswidget.h:127: error: 'QGeoCoordinate' has not been declared
    27. ..\mapsdemo\/mapswidget.h:130: error: 'QGeoMappingManager' has not been declared
    28. In file included from ..\mapsdemo\mapswidget.cpp:43:
    29. ..\mapsdemo\/marker.h:54: error: 'QtMobility' is not a namespace-name
    30. .
    31. .
    32. .
    33. .
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jun 2011
    Posts
    14
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt Mobility Examples not working

    Im also new to qt but the way to run example is simple
    start a new project and copy paste all the files in example n run the example

Similar Threads

  1. configure qt mobility
    By tinysoft in forum Newbie
    Replies: 8
    Last Post: 9th May 2011, 13:33
  2. qt-mobility
    By untitled in forum Qt for Embedded and Mobile
    Replies: 19
    Last Post: 20th November 2010, 20:00
  3. QT mobility 1.1 integration
    By daarsh in forum Newbie
    Replies: 0
    Last Post: 11th October 2010, 05:55
  4. Somebody help me, about QT mobility
    By HiJack in forum Qt Tools
    Replies: 2
    Last Post: 24th July 2010, 09:14
  5. Replies: 7
    Last Post: 9th May 2009, 22:31

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.