• 7818阅读
  • 3回复

【讨论】qt-win-free-3.3.5-4 Windows下编译问题 [复制链接]

上一主题 下一主题
离线111111
 

只看楼主 倒序阅读 楼主  发表于: 2005-12-07
我解开源码包后,在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>
离线fanyu
只看该作者 1楼 发表于: 2005-12-15
要把CL,Qt所需要的环境变量都加上才可以正常编译,不然会出现找不到文件的错误提示。
光有Qt的环境变量也是不行的。
通常都是qt 3.x配合 VC 5/6来使用的,好像不支持vs.net。
离线flybird0602
只看该作者 2楼 发表于: 2005-12-16
支持楼上的说法
离线flybird0602
只看该作者 3楼 发表于: 2005-12-16
qt 4.0也只有商业版才能和VS配合。
快速回复
限100 字节
 
上一个 下一个