gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 18:30:37 32 4
gpt4 key购买 nike

我正在尝试使用 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 的原因)。

关于这种错误,我无法通过 Google 搜索到任何合理的信息。看起来 128 从 Visual Studio 中的某处传播,但我无法弄清楚它是什么。

有人可以建议我如何调试和修复这个问题吗?

谢谢

最佳答案

...没有什么比写下来然后从帖子开始更能帮助您找出问题了。

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

关于带有 VS2012 编译器的 Qt 5.1 - 代码 128 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18393321/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com