我正在使用QT Creator 1.3.1并尝试编译,但得到这个错误...请帮我摆脱它
mingw32-make[1]: Leaving directory `C:/Documents and Settings/eyalk/My Documents/My QT Projects/XML'
mingw32-make: Leaving directory `C:/Documents and Settings/eyalk/My Documents/My QT Projects/XML'
'C:/Qt/2010.02.1/qt/bin\moc.exe' is not recognized as an internal or external command,
operable program or batch file.
mingw32-make[1]: *** [debug/moc_mainwindow.cpp] Error 1
mingw32-make: *** [debug] Error 2
Exited with code 2.
Error while building project XML
When executing build step 'Make'发布于 2010-05-20 16:26:27
如果QMake的位置是正确的,你有没有检查Tools->Options->Qt4?我猜QtCreator正在同一文件夹中寻找moc.exe。
在许多工作站上,我必须手动配置QMake (和mingw)位置,否则我会得到与您相同的错误。
发布于 2012-02-05 00:44:31
我也有同样的调试问题。只需正确设置系统路径即可。转到“环境变量从系统变量中选择路径,并通过使用;拆分添加您的qt所在的路径:
C:\qt\4.7.4-vc\bin (). 希望它能有所帮助!
发布于 2010-08-27 18:09:26
如果生成设置/生成目录也不正确,则会出现此问题。
https://stackoverflow.com/questions/2872005
复制相似问题