Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2011

    Qt project using multiple source directories

    I have a Qt project which is split into sub-directories, eg. .h files in ./inc, .cpp file ./src, etc. I have altered the .pro file to reflect this tree structure and can load the project into QCreator using this same .pro file. The sub-sirectory tree structure is reflected correctly. I can build the project successfully for Symbian device no problem. However when I build for the simulator I get the following errors:

    The process "c:/nokiaqtsdk/simulator/qt/mingw/bin/qmake.exe" exited normally.
    Starting: "C:/NokiaQtSDK/mingw/bin/mingw32-make.exe" -w
    mingw32-make: Entering directory `C:/Projects/Barrow/xxxx-build-simulator'

    C:/NokiaQtSDK/mingw/bin/mingw32-make -f Makefile.Debug

    mingw32-make[1]: Entering directory `C:/Projects/Barrow/xxxx-build-simulator'

    c:\NokiaQtSDK\Simulator\Qt\mingw\bin\uic.exe ..\forms\homescreenbutton.ui -o ui_homescreenbutton.h

    c:\NokiaQtSDK\Simulator\Qt\mingw\bin\uic.exe ..\forms\homescreen.ui -o ui_homescreen.h

    c:\NokiaQtSDK\Simulator\Qt\mingw\bin\uic.exe ..\forms\helpscreen.ui -o ui_helpscreen.h

    c:\NokiaQtSDK\Simulator\Qt\mingw\bin\uic.exe ..\forms\accountscreen.ui -o ui_accountscreen.h

    g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\NokiaQtSDK\Simulator\Qt\mingw\include\QtCore" -I"..\..\..\NokiaQtSDK\Simulator\Qt\mingw\include\QtGui" -I"..\..\..\NokiaQtSDK\Simulator\Qt\mingw\include" -I"c:\NokiaQtSDK\Simulator\Qt\mingw\include\QtMobilitySimulator" -I"..\..\..\NokiaQtSDK\Simulator\QtMobility\mingw\include" -I"..\..\..\NokiaQtSDK\Simulator\Qt\mingw\include\ActiveQt" -I"debug" -I"." -I"..\build" -I"." -I"..\..\..\NokiaQtSDK\Simulator\Qt\mingw\mkspecs\win32-g++" -o debug\homescreenbutton.o ..\src\homescreenbutton.cpp

    mingw32-make[1]: Leaving directory `C:/Projects/Barrow/xxxx-build-simulator'

    mingw32-make: Leaving directory `C:/Projects/Barrow/xxxx-build-simulator'

    ..\src\homescreenbutton.cpp:1:30: error: homescreenbutton.h: No such file or directory

    I have tried looking for suggestions on the Wikki, net etc. with no resolution. Can anyone help me solve the issue please?
    Last edited by DJG; 2011-02-16 at 18:25. Reason: Errors in script

  2. #2
    Registered User
    Join Date
    Feb 2011

    Re: Qt project using multiple source directories

    Solved - thanks
    INCLUDE variable added to project file

Similar Threads

  1. Don't see cpp source files under project at Qt Designer
    By shadyyx in forum [Archived] Qt SDKs and Tools
    Replies: 5
    Last Post: 2010-11-19, 12:59
  2. Intercept SMS using Qt Mobility Project?
    By muqawem in forum [Archived] Qt Mobility Project
    Replies: 2
    Last Post: 2010-05-14, 03:54
  3. Replies: 0
    Last Post: 2009-11-18, 12:18
  4. Signing requirements for open source application (using Qt)
    By nickw1 in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 1
    Last Post: 2009-08-05, 13:08

Posting Permissions

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