PDA

View Full Version : error generating moc file



bismo
1st July 2014, 13:22
Hi, this is my first try with Qt and I try an exemple generating with a bat file :

when i try to compile the project with MVS2010, I've got this error :



1>------ Rebuild All started: Project: examplemixin, Configuration: Debug x64 ------
1>Build started 01.07.2014 14:16:49.
1>_PrepareForClean:
1> Deleting file "examplemixin.dir\Debug\examplemixin.lastbuildstate".
1>InitializeBuildStatus:
1> Touching "examplemixin.dir\Debug\examplemixin.unsuccessfulbu ild".
1>CustomBuild:
1> Generating moc_examplemixin.cpp
1> '-fstdafx.h' is not recognized as an internal or external command,
1> operable program or batch file.

This error comes from the command line of my header file examplemixin:h, with a custom built tool :


setlocal
-fstdafx.h -fC:/TOOLS/COMMON/ADTF/2.9.0-win64_vc100/addons/adtf-display-toolbox/src/examples/src/3dscenedisplay/examplemixin/examplemixin.h C:/TOOLS/COMMON/ADTF/2.9.0-win64_vc100/addons/adtf-display-toolbox/src/examples/src/3dscenedisplay/examplemixin/examplemixin.h -o C:/TOOLS/COMMON/ADTF/2.9.0-win64_vc100/addons/adtf-display-toolbox/build/src/examples/src/3dscenedisplay/examplemixin/moc_examplemixin.cpp
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd

I know that my project got the stdafx:h file and that -f is a command line from Qt, but I can not solve this error

Thanks for your help