qt moc.exe错误 [英] qt moc.exe error
本文介绍了qt moc.exe错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用QT Creator 1.3.1并试图编译,但得到这个错误...
请帮我摆脱它
i'm using QT Creator 1.3.1 and trying to compile, but get this error... please help me get rid of it
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'
推荐答案
如果 QMake
位置,您已登记 Tools-> Options-> Qt4
是正确的 ?我想QtCreator正在寻找 moc.exe
在同一个文件夹。
Did you check in Tools->Options->Qt4
if the QMake
Location is correct ? I guess QtCreator is looking for moc.exe
in the same folder.
在许多工作站上,我不得不手动配置 QMake
(和 mingw
)位置,否则我会得到与你相同的错误。
On many workstation, I had to manually configure the QMake
(and mingw
) location otherwise I would get the same error as you.
这篇关于qt moc.exe错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文