Qt moc.exe error

I am using QT Creator 1.3.1 and trying to compile, but getting 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'
+3
source share
3 answers

Have you checked Tools->Options->Qt4if QMakeLocation is correct? I think QtCreator is looking moc.exein the same folder.

On many workstations, I had to manually configure the location QMake(s mingw), otherwise I get the same error as you.

+2
source

. . "Enviroment Variables" , "" , ;, , qt:

C:\qt\4.7.4-vc\bin (). 

, !

+1

This issue occurs if the Build Settings / Build Direcory option is not suitable.

0
source

Source: https://habr.com/ru/post/1746337/


All Articles