On 17.05.2011 01:17, Uwe Stöhr wrote:
I spent now another few hours to get LyX 2_0_x branch to compile with CMake.
I started from a clean SVN tree and followed exactly the file Install.Win32.

There are 3 problems:

1. a LyX.exe file is compiled, but at the end of the compilation process MSVC 
complains telling me

D:\LyXSVN\LyX2.0.x\compile-result\Debug\ALL_BUILD
cannot find file

But thee is no such directory, there is only this one:
D:\LyXSVN\LyX2.0.x\compile-result\Win32\Debug\ALL_BUILD

But even when I specify this one for the ALL_BUILD component, I cannot run the 
compiled LyX.


You have to select the project LyX as app to run. ("Als Startprojekt festlegen")


2. I can also not debug the compiled LyX because CMake does not create a folder named 
"Resources"
and copy there the content of SVN's "lib" folder. Therefore when I want to 
debug the LyX component,
I get an error message that the Resources folder is missing. Sure, I can create 
this filder by
myself, but I expect CMake to do this for me and to update the folder's content 
when a file in SVN's
lib folder is changed (like SCons does).


Would it be enought to use the in-source lib folder? Then you code set 
LYX_DIR_20x=<my-lyx-checkout>/lib
in the project settings of LyX ("Eigenschaften->Debuggen->Umgebung") or add 
LYX_DIR_20x as environment variable.


3. I cannot disable the CMake component "DOC". It is annoying that the compiler 
always stumbles over
this component. I can of course delete it from the solution file, but I fear 
that this will break
something

Perl for Windows could be found here: http://www.activestate.com/activeperl

When I compile LyX's trunk, CMake doesn't have this DOC component.

Maybe Kornel knows more.

Peter



Peter, Kornel, can you please help me?
thanks and regards Uwe

Reply via email to