构建Qt 5.3.0时出错

时间:2014-06-14 16:16:05

标签: c++ visual-studio-2010 qt

我正在尝试编译Qt 5.3.0以摆脱icu dll。我有Windows 7 32位,MS VS2012。我运行了以下命令:

configure -nomake examples -nomake tests -opengl desktop -prefix C:\\Qt5.3.0_custom -platform win32-msvc2012 -opensource -c++11 -no-icu

输出大量后我得到了这个错误:

C:\Qt5.3.0_custom\qtbase\qmake\generators\win32\msvc_nmake.cpp(50) : fatal error
 C1083: Cannot open include file: 'windows/registry_p.h': No such file or direct
ory
msvc_vcxproj.cpp
msvc_objectmodel.cpp
C:\Qt5.3.0_custom\qtbase\qmake\generators\win32\msvc_vcproj.cpp(71) : fatal erro
r C1083: Cannot open include file: 'windows/registry_p.h': No such file or direc
tory
msbuild_objectmodel.cpp
cesdkhandler.cpp
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 11.0\VC\BI
N\cl.EXE"' : return code '0x2'
Stop.
Building qmake failed, return code 2

1 个答案:

答案 0 :(得分:0)

我忘了执行批处理文件,所以这是完整的过程:

C:\Program Files\Microsoft Visual Studio 11.0\VC\vcvarsall.bat

configure -nomake examples -nomake tests -opengl desktop -prefix C:\\Qt5.3.0_custom -platform win32-msvc2012 -opensource -c++11 -no-icu

nmake