C++ 构建Qt时出现编译器错误
我正在努力建立自己的Qt。我签出了所有内容,现在想运行configure。Visual Studio 2013编译器位于路径中,但我收到此错误C++ 构建Qt时出现编译器错误,c++,qt,visual-c++,visual-studio-2013,nmake,C++,Qt,Visual C++,Visual Studio 2013,Nmake,我正在努力建立自己的Qt。我签出了所有内容,现在想运行configure。Visual Studio 2013编译器位于路径中,但我收到此错误 C:\Users\Philipp\Desktop\Qt>configure -developer-build -opensource -nomake examp les -nomake tests -opengl desktop + cd qtbase + C:\Users\Philipp\Desktop\Qt\qtbase\configure.b
C:\Users\Philipp\Desktop\Qt>configure -developer-build -opensource -nomake examp
les -nomake tests -opengl desktop
+ cd qtbase
+ C:\Users\Philipp\Desktop\Qt\qtbase\configure.bat -top-level -developer-build -
opensource -nomake examples -nomake tests -opengl desktop
Please wait while bootstrapping configure ...
<srcbase> = C:/Users/Philipp/Desktop/Qt/qtbase
<outbase> = C:/Users/Philipp/Desktop/Qt/qtbase
Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
Copyright (C) Microsoft Corporation. All rights reserved.
cl -c -Yc -nologo -Zm200 -Zc:wchar_t -MT -W3 -GR -EHsc -w34100 -w34189
-DUNICODE -DQT_NO_CODECS -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPO
NENT -DQT_NO_COMPRESS -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -D_CRT
_SECURE_NO_DEPRECATE -DQT_BOOTSTRAPPED -DQT_BUILD_CONFIGURE -DCOMMERCIAL_VERSION
-I"..\..\include" -I"..\..\include\QtCore" -I"..\..\include\QtCore\5.2.0" -I"..
\..\include\QtCore\5.2.0\QtCore" -I"C:\Users\Philipp\Desktop\Qt\qtbase\tools\sha
red" -I"C:\Users\Philipp\Desktop\Qt\qtbase\mkspecs\win32-msvc2008" -Fpconfigure_
pch.pch -Foconfigure_pch.obj -TP C:\Users\Philipp\Desktop\Qt\qtbase\tools\config
ure\configure_pch.h
configure_pch.h
c:\users\philipp\desktop\qt\qtbase\include\qtcore\../../src/corelib/global/qglob
al.h(46) : fatal error C1083: Cannot open include file: 'stddef.h': No such file
or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0
\VC\bin\cl.EXE"' : return code '0x2'
Stop.
C:\Users\Philipp\Desktop\Qt>configure-developer build-opensource-nomake examp
les-nomake测试-opengl桌面
+cd-qtbase
+C:\Users\Philipp\Desktop\Qt\qtbase\configure.bat-top-level-developer-build-
开源-nomake示例-nomake测试-opengl桌面
正在引导配置,请稍候。。。
=C:/Users/Philipp/Desktop/Qt/qtbase
=C:/Users/Philipp/Desktop/Qt/qtbase
Microsoft(R)程序维护实用程序版本12.00.21005.1
版权所有(C)微软公司。版权所有。
cl-c-Yc-nologo-Zm200-Zc:wchar_t-MT-W3-GR-EHsc-w34100-w34189
-DUNICODE-DQT_NO_编解码器-DQT_NO_TEXTCODEC-DQT_NO_UNICODETABLES-DQT_LITE_COMPO
ENTT-DQT\u NO\u COMPRESS-DQT\u NO\u THREAD-DQT\u NO\u QOBJECT-DQT\u NO\u GEOM\u VARIANT-D\u CRT
_安全\u无\u弃用-DQT\u引导-DQT\u构建\u配置-DCOMMERCIAL\u版本
-I.“.\..\include”-I.\..\include\QtCore”-I.\..\include\QtCore\5.2.0”-I。。
\..\include\QtCore\5.2.0\QtCore“-I”C:\Users\Philipp\Desktop\Qt\qtbase\tools\sha
红色“-I”C:\Users\Philipp\Desktop\Qt\qtbase\mkspecs\win32-msvc2008“-Fpconfigure_
pch.pch-foconfig\u pch.obj-tpc:\Users\Philipp\Desktop\Qt\qtbase\tools\config
ure\configure\u pch.h
配置_pch.h
c:\users\philipp\desktop\qt\qtbase\include\qtcore\../../src/corelib/global/qglob
al.h(46):致命错误C1083:无法打开包含文件:“stddef.h”:没有此类文件
或目录
NMAKE:致命错误U1077:'“C:\Program Files(x86)\Microsoft Visual Studio 12.0
\VC\bin\cl.EXE“':返回代码“0x2”
停止
有人知道如何解决这个问题吗?编译器本身在
路径
变量中是不够的,它需要知道包含文件和库的位置
检查vc++是否定义了它使用的PATH
变量(至少包括INCLUDE
和LIBPATH
)
如果没有,您有两个选择:
- 从开发者命令提示符运行
(您可以在Visual Studio工具程序组中找到它)configure
- 从任何命令提示符窗口运行VS安装目录下
文件夹中的批处理文件(或Common7\Tools
)VsVars32.bat
路径
变量中是不够的,它需要知道包含文件和库的位置
检查vc++是否定义了它使用的PATH
变量(至少包括INCLUDE
和LIBPATH
)
如果没有,您有两个选择:
- 从开发者命令提示符运行
(您可以在Visual Studio工具程序组中找到它)configure
- 从任何命令提示符窗口运行VS安装目录下
文件夹中的批处理文件(或Common7\Tools
)VsVars32.bat
configure
无效(通用找不到命令错误)。从开发人员命令提示符运行configure
无效(通用找不到命令错误)。