Results 1 to 2 of 2

Thread: compilation errors in Qt creator

  1. #1
    Join Date
    Oct 2011
    Posts
    4

    Default compilation errors in Qt creator

    hello,
    i am building an application in Qtcreator i am getting the following error while making sis file. wat could be the problem ????

    error: QtGui/QApplication: No such file or directory
    error: QObject: No such file or directory
    error: Recipe compile failed with exit code 1.

    but i have included QT+=gui in my .pro file. wat could be the prob ?? thanks for any replies.

    here is my .pro file for your information.

    Qt Code:
    1. # Add more folders to ship with the application, here
    2. folder_01.source = qml/
    3. folder_01.target = qml
    4. DEPLOYMENTFOLDERS = folder_01
    5.  
    6. # Additional import path used to resolve QML modules in Creator's code model
    7. QML_IMPORT_PATH =
    8.  
    9. symbian:TARGET.UID3 = 0xE4524EDE ##0x200594A2
    10. symbian:TARGET.CAPABILITY += NetworkServices \
    11. Location \
    12. ReadUserData \
    13. WriteUserData \
    14. ReadDeviceData \
    15. WriteDeviceData \
    16. UserEnvironment
    17.  
    18. QT += script network xml
    19. QT += gui
    20.  
    21. CONFIG += qt-components \
    22. mobility
    23.  
    24. MOBILITY += location \
    25. systeminfo \
    26. messaging \
    27. contacts \
    28. organizer
    29.  
    30.  
    31. # Smart Installer package's UID
    32. # This UID is from the protected range and therefore the package will
    33. # fail to install if self-signed. By default qmake uses the unprotected
    34. # range value if unprotected UID is defined for the application and
    35. # 0x2002CCCF value if protected UID is given to the application
    36. #symbian:DEPLOYMENT.installer_header = 0x2002CCCF
    37.  
    38. # If your application uses the Qt Mobility libraries, uncomment the following
    39. # lines and add the respective components to the MOBILITY variable.
    40. # CONFIG += mobility
    41. # MOBILITY +=
    42.  
    43. DEPLOYMENT.display_name = "India"
    44.  
    45. symbian:
    46. {
    47. ICON = AppIcon.svg
    48. }
    49.  
    50. symbian:{
    51. TARGET.EPOCHEAPSIZE = 0x2000 0x8000000
    52. }
    53.  
    54. # The .cpp file which was generated for your project. Feel free to hack it.
    55. SOURCES += ui_src/listmodel.cpp \
    56. ui_src/plainitem.cpp \
    57. main.cpp \
    58. backend_src/api.cpp \
    59. backend_src/connect.cpp \
    60. ui_src/handler.cpp \
    61. ui_src/standarditem.cpp \
    62. ui_src/pagedata.cpp \
    63. ui_src/detailsitem.cpp \
    64. backend_src/messagesender.cpp \
    65. backend_src/localstorage.cpp \
    66. backend_src/locationmanager.cpp \
    67. ui_src/mapview.cpp
    68.  
    69. # Please do not modify the following two lines. Required for deployment.
    70. include(qmlapplicationviewer/qmlapplicationviewer.pri)
    71. qtcAddDeployment()
    72.  
    73. RESOURCES += \
    74. resources.qrc
    75.  
    76. RCC_DIR = qml
    77.  
    78. HEADERS += \
    79. ui_src/listmodel.h \
    80. ui_src/plainitem.h \
    81. backend_src/api_p.h \
    82. backend_src/api.h \
    83. backend_src/connect_p.h \
    84. backend_src/connect.h \
    85. ui_src/handler.h \
    86. ui_src/standarditem.h \
    87. ui_src/pagedata.h \
    88. ui_src/detailsitem.h \
    89. backend_src/messagesender.h \
    90. backend_src/localstorage.h \
    91. backend_src/locationmanager.h \
    92. ui_src/mapview.h
    93.  
    94. INCLUDEPATH += ui_src \
    95. backend_src
    To copy to clipboard, switch view to plain text mode 

    as i am new to qt thanks for any help....

  2. #2
    Join Date
    Aug 2011
    Posts
    44
    Thanked 12 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows Symbian S60

    Default Re: compilation errors in Qt creator

    You could try this one:
    Qt Code:
    1. QT += core
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. compilation errors in Qt creator
    By juju in forum Qt Programming
    Replies: 0
    Last Post: 28th October 2011, 09:11
  2. QPointer gives compilation errors.
    By pkj in forum Qt Programming
    Replies: 9
    Last Post: 7th September 2011, 09:18
  3. Replies: 0
    Last Post: 26th June 2010, 21:47
  4. compilation errors QT 4.6.2
    By loud91 in forum Installation and Deployment
    Replies: 2
    Last Post: 7th May 2010, 14:33
  5. Qt compilation errors
    By ToddAtWSU in forum Qt Programming
    Replies: 1
    Last Post: 31st October 2006, 18:29

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.