Bernhard Roider wrote: > Hello Peter! >> >> Download 'lyx-windows-deps-msvc-qt4.zip' from >> http://lyx.mirror.fr/index2.php?pwd=%2Fcontrib >> >> extract it, e.g to c:\lyx-windows-deps-msvc-qt4 >> >> Add the path to qmake: >> set PATH=c:\lyx-windows-deps-msvc-qt4\qt-4\bin;%PATH% >> >> call cmake from a build folder on the same level as trunk: >> >> cmake ..\trunk\development\cmake -DWINDEPS=1 >> >> That's it, msvc project files are generated which >> fully support the debugger. >> > > i tried the cmake thing, but an attempt to build lyx from the created > lyx-qt4.sln with msvc produced the following error: > > Compiling... > version.C > .\version.C(22) : fatal error C1010: unexpected end of file while > looking for precompiled header. Did you forget to add '#include > "config.h"' to your source?
Strange, I've tested it here with a fresh checkout and could not reproduce it. Especially version.C is not build with precompiled headers. Here it looks like this (in German) ------ Erstellen gestartet: Projekt: lyx-qt4, Konfiguration: Debug Win32 ------ Kompilieren... version.C <- means: build version.C without pch Kompilieren... config_pch.C <- build pchs Kompilieren... vspace.C <- build with pch > > am i doing something wrong? Do you have MSVC 2005 or do you maybe try it with 2003? > > Bernhard > You could try a other build-configuration, see Readme.cmake in development/cmake: - for the 'Debug' and 'Release' build all precompiled headers are enabled to compile without pch (to check if all necessary headers are included) * use 'MinSizeRel' which only precompiles the STL and Boost headers * use 'RelWithDebInfo' which does not use any precompiled headers Hope this helps, Peter