Building fresh trunk with CMAKE - precompiled headers

majorconfusion

12-12-2010 21:20:52

MyGUI'ers

Had some difficulty building a fresh-from SVN trunk (rev 3870). Cmake Error output is below.

It appears that the MyGUI_Precompiled.cpp needs to be built first.

I got around it by directly executing 'nmake /i' to ignore build failures. It then proceeds to fail all targets until the MyGUI_Precompiled.cpp file is built, and then starts to succeed. You can then go back and complete the build with 'nmake'.

Regards
Greg





Scanning dependencies of target MyGUIEngine
[ 1%] Building CXX object MyGUIEngine/CMakeFiles/MyGUIEngine.dir/src/MyGUI_Button.cpp.obj
MyGUI_Button.cpp
C:\Projects\my-gui\MyGUIEngine\src\MyGUI_Button.cpp(22) : fatal error C1083: Cannot open precompiled header file: 'MyGUI_Precompiled.pch': No such file or directoryNMAKE : fatal error
U1077: 'C:\PROGRA~1\MICROS~1.0\VC\bin\cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.