在windows 7上静态构建Qt 5.1.1-nmake和cl错误
Static build of Qt 5.1.1 on windows 7 - nmake and cl error
我试图在Windows上构建Qt 5.1.1的静态版本,但最终收到了nmake的一堆错误。
在Qt中的独立exe主题之后,我做了以下操作:
- 下载的Qt源代码(http://download.qt-project.org/official_releases/qt/5.1/5.1.1/single/qt-everywhere-opensource-src-5.1.1.zip)
- 配置执行如下:config.bat-static-release-无音频后端-opengl桌面-opensource-confirm license
- 从MS Visual Studio命令行运行nmake
编译过程运行了一段时间,最终抛出以下内容:
C:Program Files (x86)Microsoft Visual Studio 12.0VCINCLUDEmath.h(325) : err
or C2556: 'bool signbit(double)' : overloaded function differs only by return ty
pe from 'int signbit(double)'
c:qtqt-everywhere-opensource-src-5.1.1qtjsbackendsrc3rdpartyv8src
win32-math.h(59) : see declaration of 'signbit'
C:Program Files (x86)Microsoft Visual Studio 12.0VCINCLUDEmath.h(325) : err
or C2371: 'signbit' : redefinition; different basic types
c:qtqt-everywhere-opensource-src-5.1.1qtjsbackendsrc3rdpartyv8src
platform.h(74) : see declaration of 'lrint'
C:Program Files (x86)Microsoft Visual Studio 12.0VCINCLUDEmath.h(506) : err
or C2371: 'lrint' : redefinition; different basic types
c:qtqt-everywhere-opensource-src-5.1.1qtjsbackendsrc3rdpartyv8src
platform.h(74) : see declaration of 'lrint'
snapshot-empty.cc
C:Program Files (x86)Microsoft Visual Studio 12.0VCINCLUDEmath.h(325) : err
or C2556: 'bool signbit(double)' : overloaded function differs only by return ty
pe from 'int signbit(double)'
c:qtqt-everywhere-opensource-src-5.1.1qtjsbackendsrc3rdpartyv8src
win32-math.h(59) : see declaration of 'signbit'
C:Program Files (x86)Microsoft Visual Studio 12.0VCINCLUDEmath.h(325) : err
or C2371: 'signbit' : redefinition; different basic types
c:qtqt-everywhere-opensource-src-5.1.1qtjsbackendsrc3rdpartyv8src
win32-math.h(59) : see declaration of 'signbit'
C:Program Files (x86)Microsoft Visual Studio 12.0VCINCLUDEmath.h(506) : err
or C2556: 'long lrint(double)' : overloaded function differs only by return type
from 'int lrint(double)'
c:qtqt-everywhere-opensource-src-5.1.1qtjsbackendsrc3rdpartyv8src
platform.h(74) : see declaration of 'lrint'
C:Program Files (x86)Microsoft Visual Studio 12.0VCINCLUDEmath.h(506) : err
or C2371: 'lrint' : redefinition; different basic types
c:qtqt-everywhere-opensource-src-5.1.1qtjsbackendsrc3rdpartyv8src
platform.h(74) : see declaration of 'lrint'
Generating Code...
NMAKE : fatal error U1077: '"C:Program Files (x86)Microsoft Visual Studio 12.0
VCBINcl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:Program Files (x86)Microsoft Visual Studio 12.0
VCBINnmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
有人见过这样的案子吗?我不知道它为什么抱怨Qt的消息来源。谢谢
已解决。我用VS2013构建它,它实际上不支持V8模块,所以我使用了VS2012,它在以下配置下运行良好:config.bat-static-release-no audio backend-opengl桌面-opensource-nomake examples-confirm license
相关文章:
- 为cl.exe(Visual Studio代码)指定命令行C++版本
- 当我编译webrtc服务器时,Windows上只支持clang-cl
- 使用 cl 构建代码并连接到 sqlite 库
- MSYS2 MinGW64 在 Windows 上构建 GMP/MPFR 作为静态库,并将它们链接到使用 CL 编译的
- NMAKE:致命错误 U1077:cl.exe 和 nmake.exe 返回代码'0x2'
- Clang-CL 警告 strnicmp 已弃用,请使用 ISO C 并C++符合标准的名称_strnicmp
- 在 OpenCL 库中找不到 cl::Error 类
- visual MSVC cl.exe尝试使用C++标头范例(定义与声明)
- cl::Event::waitForEvents returns -7 (CL_EXEC_STATUS_ERROR_ F
- gcc中cl/NODEFAULTLIB的替代方案是什么
- cl.exe在哪里?(MS 构建工具 '13)
- 简单的cmake项目,在Windows上使用nmake构建没有调试符号
- cmake 将 clang-cl 检测为 clang
- 如何在 Azure 应用服务中使用 cl.exe 编译 C++ 代码并生成可执行文件
- Visual Studio not finding cl.exe
- Visual Studio 2017 无法找到 cl.exe
- CMake 和 Visual Studio 2015 - C 编译器 cl.exe 无法编译简单的测试程序
- 如何阻止 cmake 使用 cl 编译?
- 在windows 7上静态构建Qt 5.1.1-nmake和cl错误
- NMAKE : 致命错误 U1077: 'cd' :返回代码 '0x2' cl.exe