This is probably not the proper forum :roll: but I'm trying to use the QTWorkBench and are having som troubles. Would be nice if someone had an idea about this.
Anyhow, to make things small, I created the qmake tutorial project and it works. However, with a slight modification, putting the .pro file in a subdirectory under the project direct makes things fail;
I get a very strange message from g++ when compiling the file ..\hello.cpp. It tells me that it cannot find ..hello.cpp
The makefile was created with <qmake hello.pro>
I copied the entire g++ command and (via notepad) pasted it again into the same window. Then it works fine. The problem only occur when using make.
I tried to <qmake -unix hello.pro> and then it works (I'm using it now as a remedy)
My environment:
- Windows 2000
- GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
- gcc version 3.4.5 (mingw special)
- QMake version 2.01a
See listings below
Br Joachim
C:\SW_Dev\qt\qmake\tutorial\debug>mingw32-make Debug
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/SW_Dev/qt/qmake/tutorial/debug'
g++ -c -g -g -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"C:/Devel/Qt/
4.2.1/include/QtCore" -I"C:/Devel/Qt/4.2.1/include/QtCore" -I"C:/Devel/Qt/4.2.1/
include/QtGui" -I"C:/Devel/Qt/4.2.1/include/QtGui" -I"C:/Devel/Qt/4.2.1/include"
-I"C:/Devel/Qt/4.2.1/include/ActiveQt" -I"debug" -I"." -I"c:\Devel\Qt\4.2.1\mks
pecs\default" -o debug\hello.o
..\hello.cppg++.exe:
..hello.cpp: No such file or directory
g++.exe: no input files
mingw32-make[1]: *** [debug\hello.o] Error 1
mingw32-make[1]: Leaving directory `C:/SW_Dev/qt/qmake/tutorial/debug'
mingw32-make: *** [Debug] Error 2
C:\SW_Dev\qt\qmake\tutorial\debug>g++ -c -g -g -frtti -fexceptions -Wall -DUNICO
DE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPOR
T -DQT_NEEDS_QMAIN -I"C:/Devel/Qt/4.2.1/include/QtCore" -I"C:/Devel/Qt/4.2.1/inc
lude/QtCore" -I"C:/Devel/Qt/4.2.1/include/QtGui" -I"C:/Devel/Qt/4.2.1/include/Qt
Gui" -I"C:/Devel/Qt/4.2.1/include" -I"C:/Devel/Qt/4.2.1/include/ActiveQt" -I"de
bug" -I"." -I"c:\Devel\Qt\4.2.1\mkspecs\default" -o debug\hello.o
..\hello.cppC:\SW_Dev\qt\qmake\tutorial\debug>
C:\SW_Dev\qt\qmake\tutorial\debug>mingw32-make Debug
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/SW_Dev/qt/qmake/tutorial/debug'
g++ -c -g -g -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI_LIB -DQT_
CORE_LIB -I"C:/Devel/Qt/4.2.1/include/QtCore" -I"C:/Devel/Qt/4.2.1/include/QtCor
e" -I"C:/Devel/Qt/4.2.1/include/QtGui" -I"C:/Devel/Qt/4.2.1/include/QtGui" -I"C:
/Devel/Qt/4.2.1/include" -I"debug" -I"." -I"c:/Devel/Qt/4.2.1/mkspecs/default" -
o debug/hello.o ../hello.cpp
g++ -c -g -g -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI_LIB -DQT_
CORE_LIB -I"C:/Devel/Qt/4.2.1/include/QtCore" -I"C:/Devel/Qt/4.2.1/include/QtCor
e" -I"C:/Devel/Qt/4.2.1/include/QtGui" -I"C:/Devel/Qt/4.2.1/include/QtGui" -I"C:
/Devel/Qt/4.2.1/include" -I"debug" -I"." -I"c:/Devel/Qt/4.2.1/mkspecs/default" -
o debug/main.o ../main.cpp
g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runt
ime-pseudo-reloc -o "debug/hello.exe" debug/hello.o debug/main.o -L"c:/Devel/Qt
/4.2.1/lib" -lQtGui4 -lQtCore4
mingw32-make[1]: Leaving directory `C:/SW_Dev/qt/qmake/tutorial/debug'