PDA

View Full Version : QT 4.4.1 compilation problem on Windows using nmake



operis
28th August 2008, 11:58
Hi everyone,

I tried to compile QT 4.4.1 on windows xp. I ran configure and then nmake. Problem occured when moc was invoked. It did't produce neither moc_* files nor error messages (I have attached the part of the output below). I can copy output part where moc is mentioned, paste to text editor, remove wrapping, paste back to command prompt and I get moc_* file compiled. I don't understand, what is the difference between processing Makefile and manual compilation?


-------------Output--------------------
C:/Darbas/Qt/4.4.1/bin/moc.exe -DQT_SHARED -DQT_THREAD_SUPPORT -DUNICODE
-DQT_LARGEFILE_SUPPORT -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_MAKEDLL
-DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -D_USE_MATH_DEFINES -DHB
_EXPORT=Q_CORE_EXPORT -DQT_DLL -I"..\..\include" -I"..\..\include\QtCore" -I"tmp
\rcc\debug_shared" -I"tmp" -I"concurrent" -I"global" -I"..\3rdparty\zlib" -I"..\
3rdparty\harfbuzz\src" -I"c:\Darbas\Qt\4.4.1\include\ActiveQt" -I"tmp\moc\debug_
shared" -I"." -I"..\..\mkspecs\win32-g++" -D__GNUC__ -DWIN32 io\qbuffer.h -o tmp
\moc\debug_shared\moc_qbuffer.cpp
g++ -c -include tmp\obj\debug_shared\qt_pch.h -g -Wall -frtti -fexceptio
ns -mthreads -DQT_SHARED -DQT_THREAD_SUPPORT -DUNICODE -DQT_LARGEFILE_SUPPORT -D
QT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_MAKEDLL -DQT_ASCII_CAST_WARNINGS
-DQT3_SUPPORT -DQT_MOC_COMPAT -D_USE_MATH_DEFINES -DHB_EXPORT=Q_CORE_EXPORT -DQT
_DLL -I"..\..\include" -I"..\..\include\QtCore" -I"tmp\rcc\debug_shared" -I"tmp"
-I"concurrent" -I"global" -I"..\3rdparty\zlib" -I"..\3rdparty\harfbuzz\src" -I"
c:\Darbas\Qt\4.4.1\include\ActiveQt" -I"tmp\moc\debug_shared" -I"." -I"..\..\mks
pecs\win32-g++" -o tmp\obj\debug_shared\qbuffer.o io\qbuffer.cpp
io\qbuffer.cpp:453:28: moc_qbuffer.cpp: No such file or directory
NMAKE : fatal error U1077: 'g++' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Platform SDK\Bin\nmake.e
xe"' : return code '0x2'

ChristianEhrlicher
1st September 2008, 10:08
Looks like you've mixed something up. You compile with nmake (== Visual Studio) but your compiler is gcc... you have to use mingw32-make when compiling with gcc.