PDA

View Full Version : nmake :-(



Shuchi Agrawal
19th February 2007, 13:18
hi,
i am unable to find any doc regarding this, so i m posting this problem.
i have evaluation version of Qt 4.2.2(commercial version) and i m using the compiler Microsoft VC 6.0 (plz dnt ask me to change the compiler at this point)
now i install Qt anf VC. All the env var are set.
now on cmd prompt (as i m not using any IDE) i do the following :

C:\Qt\4.2.2>nmake

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

NMAKE : fatal error U1064: MAKEFILE not found and no target specified
Stop.
C:\Qt\4.2.2>


OR

C:\Qt\4.2.2\examples\tutorial\t1>qmake -project

C:\Qt\4.2.2\examples\tutorial\t1>qmake

C:\Qt\4.2.2\examples\tutorial\t1>nmake

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

NMAKE -f Makefile.Release

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

cl -c -nologo -Zm200 -O1 -MD -O1 -MD -GR -GX -W3 -DUNICODE -DQT_LARGEFIL
E_SUPPORT -DQT_EVAL -DQT_EDITION=QT_EDITION_DESKTOP -DQT_DLL -DQT_NO_DEBUG -DQT_
GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"C:/Qt/4.2.2/include/QtCore" -I"C:/Q
t/4.2.2/include/QtCore" -I"C:/Qt/4.2.2/include/QtGui" -I"C:/Qt/4.2.2/include/QtG
ui" -I"C:/Qt/4.2.2/include" -I"." -I"C:/Qt/4.2.2/include/ActiveQt" -I"tmp\moc\re
lease_shared" -I"." -I"..\..\..\mkspecs\win32-msvc" -Fotmp\obj\release_shared\ @
C:\DOCUME~1\E372544\LOCALS~1\Temp\nma03224.
main.cpp
C:/Qt/4.2.2/include\QtCore/qglobal.h(25) : fatal error C1083: Cannot open includ
e file: 'stddef.h': No such file or directory
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\Qt\4.2.2\bin\NMAKE.EXE' : return code '0x2'
Stop.
C:\Qt\4.2.2\examples\tutorial\t1>


i think there is some prob with linking qt n nmake. so can any1 tel me the steps which i need to follow after installing qt n vc.
i m working on windows Xp.

thanks
Shuchi

wysota
19th February 2007, 14:12
I think some MSVC environment is setup incorrectly. stddef.h is a Windows include file, looks like cl (the compiler) can't find it. Seems like Qt has nothing to do with it - you couldn't compile a non-Qt application as well. Did you use the "Qt command prompt" to open the console?

Shuchi Agrawal
21st February 2007, 05:10
Thanks Sir. But now i have installed Qt open source 4.2.2 with Mingw 5.1.2 and Qdevelop.

wysota
21st February 2007, 11:56
Good choice :)