带VS2012编译器的Qt 5.1 - 代码128错误

时间:2013-08-23 01:34:31

标签: qt visual-studio-2012 qt-creator

我正在尝试使用MS Visual Studio 2012编译器设置Qt 5.1。我已经下载并安装了VS Express(它可以正常工作并编译C ++代码),然后安装了Qt。

每当我尝试构建任何东西时,这是控制台输出:

09:07:14: Running steps for project cube...
09:07:14: Starting: "C:\Qt\Qt5.1.0\5.1.0\msvc2012_64\bin\qmake.exe" C:\Qt\Qt5.0.2\5.0.2\msvc2012_64\examples\opengl\cube\cube.pro -r -spec win32-msvc2012 "CONFIG+=debug" "CONFIG+=declarative_debug" "CONFIG+=qml_debug"
09:07:15: The process "C:\Qt\Qt5.1.0\5.1.0\msvc2012_64\bin\qmake.exe" exited normally.
09:07:15: Starting: "C:\Qt\Qt5.1.0\Tools\QtCreator\bin\jom.exe" 
Usage: jom @commandfile
       jom [options] [/f makefile] [macro definitions] [targets]

nmake compatible options:
/A build all targets
/D display build information
/E override environment variable macros
/F <filename> use the specified makefile
/G display included makefiles
/H show help
/I ignore all exit codes
/K keep going - build unrelated targets on error
/N dry run - just print commands
/NOLOGO do not print logo
/P print makefile info
/R ignore predefined rules and macros
/S silent mode
/U print content of inline files
/L same as /NOLOGO
/W print the working directory before and after other processing
/X <filename> write stderr to file.
/Y disable batch mode inference rules

jom only options:
/DUMPGRAPH show the generated dependency graph
/DUMPGRAPHDOT dump dependency graph in dot format
/J <n> use up to n processes in parallel
/KEEPTEMPFILES keep all temporary files
/VERSION print version and exit
Error: unknown command line option '-' in arguments: '/L-IC:/QNX650/target/qnx6/usr/include'
09:07:15: The process "C:\Qt\Qt5.1.0\Tools\QtCreator\bin\jom.exe" exited with code 128.
Error while building/deploying project cube (kit: Desktop Qt 5.1.0 MSVC2012 64bit)
When executing step 'Make'
09:07:15: Elapsed time: 00:01.

早些时候我遇到了与5.0.2相同的问题(基本上这就是为什么我杀了它并安装了5.1)。

对于这种错误,我无法谷歌任何合理的事情。看起来128在Visual Studio中的某个地方传播,但我无法弄清楚它是什么。

有人可以建议我如何调试和解决这个问题?

由于

1 个答案:

答案 0 :(得分:2)

......没有什么可以帮助你更好地解决问题而不是写下来然后从帖子开始。

“/ L-IC:/ QNX650 / target / qnx6 / usr / include”实际上告诉我,我的机器上安装的QNX SDK正在弄乱我的环境变量。幸运的是,Qt有办法解决这个问题。我需要转到Projects选项卡,展开“build environment”部分并取消设置“MAKEFLAGS”环境变量。这解决了它。