Qt moc问题(moc.exe:命令未找到)在Windows中使用Qt 5构建Qwt时

时间:2016-01-20 14:58:22

标签: qt qt5 qwt moc

使用Qt 5构建Qwt在Windows 7 64位中失败(Qt 4工作)。我尝试通过Qt Creator和CLI,但两者都以:

结束
12:51:08: Running steps for project qwt...
12:51:08: Starting: "C:\Qt\Qt5.3.2\5.3\mingw482_32\bin\qmake.exe" C:\qwt-6.1.2\qwt.pro -r -spec win32-g++ "CONFIG+=debug"
Reading C:/qwt-6.1.2/src/src.pro
Reading C:/qwt-6.1.2/textengines/textengines.pro
Reading C:/qwt-6.1.2/doc/doc.pro
Reading C:/qwt-6.1.2/designer/designer.pro
Project MESSAGE: debug_and_release: building the Qwt designer plugin in release mode only
12:51:10: The process "C:\Qt\Qt5.3.2\5.3\mingw482_32\bin\qmake.exe" exited normally.
12:51:10: Starting: "C:\Qt\Qt5.3.2\Tools\mingw482_32\bin\mingw32-make.exe" -j3
cd src/ && ( test -e Makefile || C:/Qt/Qt5.3.2/5.3/mingw482_32/bin/qmake.exe C:/qwt-6.1.2/src/src.pro -spec win32-g++ CONFIG+=debug -o Makefile ) && C:/Qt/Qt5.3.2/Tools/mingw482_32/bin/mingw32-make -f Makefile 
mingw32-make[1]: Entering directory 'C:/qwt-6.1.2/src'
C:/Qt/Qt5.3.2/Tools/mingw482_32/bin/mingw32-make -f Makefile.Debug all
C:/Qt/Qt5.3.2/Tools/mingw482_32/bin/mingw32-make -f Makefile.Release all
mingw32-make[2]: Entering directory 'C:/qwt-6.1.2/src'
mingw32-make[2]: Entering directory 'C:/qwt-6.1.2/src'
moc qwt_dyngrid_layout.h
moc qwt_magnifier.h
moc qwt_dyngrid_layout.h
/usr/bin/sh: C:\Qt\Qt5.3.2\5.3\mingw482_32\bin\moc.exe: command not found
/usr/bin/sh: C:\Qt\Qt5.3.2\5.3\mingw482_32\bin\moc.exe: command not found
/usr/bin/sh: C:\Qt\Qt5.3.2\5.3\mingw482_32\bin\moc.exe: command not found
Makefile.Debug:455: recipe for target 'moc/moc_qwt_dyngrid_layout.cpp' failed
mingw32-make[2]: *** [moc/moc_qwt_dyngrid_layout.cpp] Error 127
mingw32-make[2]: Leaving directory 'C:/qwt-6.1.2/src'
Makefile.Release:455: recipe for target 'moc/moc_qwt_dyngrid_layout.cpp' failed
mingw32-make[2]: *** [moc/moc_qwt_dyngrid_layout.cpp] Error 127
mingw32-make[2]: *** Waiting for unfinished jobs....
mingw32-make[2]: *** [moc/moc_qwt_magnifier.cpp] Error 127
Makefile.Release:507: recipe for target 'moc/moc_qwt_magnifier.cpp' failed
mingw32-make[2]: Leaving directory 'C:/qwt-6.1.2/src'
Makefile:38: recipe for target 'debug-all' failed
Makefile:52: recipe for target 'release-all' failed
mingw32-make[1]: Leaving directory 'C:/qwt-6.1.2/src'
Makefile:41: recipe for target 'sub-src-make_first-ordered' failed
mingw32-make[1]: *** [debug-all] Error 2
mingw32-make[1]: *** Waiting for unfinished jobs....
mingw32-make[1]: *** [release-all] Error 2
mingw32-make: *** [sub-src-make_first-ordered] Error 2
12:51:11: The process "C:\Qt\Qt5.3.2\Tools\mingw482_32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project qwt (kit: Desktop)
When executing step "Make"
12:51:11: Elapsed time: 00:03.

我尝试从计算机中删除所有Qt安装并仅重新安装qt-opensource-windows-x86-mingw482_opengl-5.3.2.exe,但问题仍然存在。

有什么建议吗?

0 个答案:

没有答案