]> git.lyx.org Git - lyx.git/blob - development/cmake/README.cmake
add MinSizeRel as project which only uses STL and Boost pchs
[lyx.git] / development / cmake / README.cmake
1 Building LyX with CMake
2
3 For all builds:
4 - CMake 2.4 or CVS version from www.cmake.org
5 - install Qt 4 and make sure qmake 4 is found
6   (add the folder with qmake to the environment variable PATH)
7 - by default it builds the Qt4 frontend
8 - with GNUWIN32_DIR you could point to your gnuwin32 packages
9   (eg. -DGNUWIN32_DIR=c:\gnuwin32) by default it searches in your 
10   program  folder
11
12 Building Visual C++ 2005 project files:
13 - install Visual C++ 2005
14 - install Platform SDK 2005, "Core" and "Web Workshop"
15 - add include and library paths of the SDK to the IDE search paths,
16   menu: Tools->Options->VC++ directories->Library files + Include files
17 - install zlib (www.zlib.net) into %ProgramFiles%/GnuWin32/include+lib
18   or %ProgramFiles%/zlib/include+lib
19 - create a build directory, e.g. .../trunk/../build
20 - call in the build directory 'cmake ..\trunk\development\cmake'
21 - start lyx.sln
22
23 TIPS: - rename Microsoft Visual Studio 8\VC\vcpackages\feacp.dll 
24         to disable Intellisense
25       - the Release build links much faster
26       - for the Debug and Release build all precompiled headers are enabled
27         to compile without pch (to check if all necessary headers are included)
28           * use MinSizeRel which only precompiles the STL and Boost headers
29           * use RelWithDebInfo which does not use any precompiled headers
30
31
32 Building with GCC/Linux:
33 - create a build directory, e.g. .../trunk/../build
34 - call in the build directory 'cmake ..\trunk\development\cmake'
35
36 Building with GCC/Windows (Win2k only works with MSYS, XP?):
37 - install zlib (www.zlib.net) into %ProgramFiles%/GnuWin32/include+lib
38 - create a build directory, e.g. .../trunk/../build
39 - call: export QMAKESPEC=win32-g++ (MSYS) or set QMAKESPEC=win32-g++ (CMD)
40 - call in the build directory 'cmake ..\trunk\development\cmake'
41
42
43 To generate other build files call 'cmake'
44 which shows a list of possibilities.
45
46
47 The build process tries to find aspell on Windows
48 in %ProgramFiles%/GnuWin32/ and in /usr/ or in /usr/local 
49 under Linux. If it is not found the support is disabled.