我解开源码包后,在VC2003命令行下运行configure.bat
环境变量如图
运行后报告错误为
Setting environment for using Microsoft Visual Studio .NET 2003 tools.
(If you have another version of Visual Studio or Visual C++ installed and wish
to use its tools from the command line, run vcvars32.bat for that version.)
C:\qt-3>C:\qt-3\configure.bat
install headers for bootstrapping...
1 file(s) copied.
1 file(s) copied.
building header copy tool...
Copying header files...
C:\qt-3\include not found!building configure.exe ...
cl -c -nologo -Zm200 -O1 -DUNICODE -DQT_NO_TEXTCODEC -DQT_NO_UNICODETAB
LES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DHAVE_QCONFIG_C
PP -D_CRT_SECURE_NO_DEPRECATE -I"." -I"C:\qt-3\src\tools" -I"C:\qt-3\src\kernel"
-I"C:\qt-3\include" -I"C:\qt-3\src\codecs" -I"C:\qt-3\include\private" -I"C:\qt
-3\misc\configure" -I"C:\qt-3\mkspecs\win32-msvc" -Fotmp\ @C:\DOCUME~1\CONQUE~1\
LOCALS~1\Temp\nmC2.tmp
qdir.cpp
c:\qt-3\src\tools\qglobal.h(760) : fatal error C1083: 无法打开包含文件:“qconfig
.h”: No such file or directory
qlibrary.cpp
c:\qt-3\src\tools\qglobal.h(760) : fatal error C1083: 无法打开包含文件:“qconfig
.h”: No such file or directory
qlibrary_win.cpp
c:\qt-3\src\tools\qglobal.h(760) : fatal error C1083: 无法打开包含文件:“qconfig
.h”: No such file or directory
正在生成代码...
NMAKE : fatal error U1077: “cl” : 返回代码“0x2”
Stop.
An error occured. Configuration aborted.
C:\qt-3>