jh
16th June 2006, 09:04
hi,
since i'm tired to build makefiles by myself i tried using qmake.
my first step was writing a simple test program. i suppose qmake was
designed to use it with the windows console (which is a pain i.t.a).
running make/mingw32-make on msys i got problems with '/' and '\':
make[1]: Entering directory `/c/01. - Arbeit/C++/treewidgettest'
g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"C:/Qt/4.1.1/include/QtCore" -I"C:/Qt/4.1.1/include/QtGui"
-I"C:/Qt/4.1.1/include" -I"." -I"C:/Qt/4.1.1/include/ActiveQt" -I"release" -I"." -I"C:/Qt/4.1.1/mkspecs/win32-g++" -o release\main.o main.cpp
g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT
-DQT_NEEDS_QMAIN -I"C:/Qt/4.1.1/include/QtCore" -I"C:/Qt/4.1.1/include/QtGui" -I"C:/Qt/4.1.1/include" -I"." -I"C:/Qt/4.1.1/include/ActiveQt" -I"release" -I"."
-I"C:/Qt/4.1.1/mkspecs/win32-g++" -o release\TreeWidget.o TreeWidget.cpp
C:\Qt\4.1.1\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL
-DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT
-DQT_NEEDS_QMAIN -I"C:/Qt/4.1.1/include/QtCore" -I"C:/Qt/4.1.1/include/QtGui"
-I"C:/Qt/4.1.1/include" -I"." -I"C:/Qt/4.1.1/include/ActiveQt" -I"release" -I"."
-I"C:/Qt/4.1.1/mkspecs/win32-g++" -D__GNUC__ -DWIN32 TreeWidget.h -o
release\moc_TreeWidget.cpp
/bin/sh.exe: C:Qt4.1.1binmoc.exe: command not found
make[1]: *** [release\moc_TreeWidget.cpp] Error 127
make[1]: Leaving directory `/c/01. - Arbeit/C++/treewidgettest'
make: *** [release] Error 2
also some commands must be replaced, such as 'del' by 'rm' etc.
how can i use a makefile generated by qmake on a msys console?
best regards,
jh
since i'm tired to build makefiles by myself i tried using qmake.
my first step was writing a simple test program. i suppose qmake was
designed to use it with the windows console (which is a pain i.t.a).
running make/mingw32-make on msys i got problems with '/' and '\':
make[1]: Entering directory `/c/01. - Arbeit/C++/treewidgettest'
g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"C:/Qt/4.1.1/include/QtCore" -I"C:/Qt/4.1.1/include/QtGui"
-I"C:/Qt/4.1.1/include" -I"." -I"C:/Qt/4.1.1/include/ActiveQt" -I"release" -I"." -I"C:/Qt/4.1.1/mkspecs/win32-g++" -o release\main.o main.cpp
g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT
-DQT_NEEDS_QMAIN -I"C:/Qt/4.1.1/include/QtCore" -I"C:/Qt/4.1.1/include/QtGui" -I"C:/Qt/4.1.1/include" -I"." -I"C:/Qt/4.1.1/include/ActiveQt" -I"release" -I"."
-I"C:/Qt/4.1.1/mkspecs/win32-g++" -o release\TreeWidget.o TreeWidget.cpp
C:\Qt\4.1.1\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL
-DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT
-DQT_NEEDS_QMAIN -I"C:/Qt/4.1.1/include/QtCore" -I"C:/Qt/4.1.1/include/QtGui"
-I"C:/Qt/4.1.1/include" -I"." -I"C:/Qt/4.1.1/include/ActiveQt" -I"release" -I"."
-I"C:/Qt/4.1.1/mkspecs/win32-g++" -D__GNUC__ -DWIN32 TreeWidget.h -o
release\moc_TreeWidget.cpp
/bin/sh.exe: C:Qt4.1.1binmoc.exe: command not found
make[1]: *** [release\moc_TreeWidget.cpp] Error 127
make[1]: Leaving directory `/c/01. - Arbeit/C++/treewidgettest'
make: *** [release] Error 2
also some commands must be replaced, such as 'del' by 'rm' etc.
how can i use a makefile generated by qmake on a msys console?
best regards,
jh