]> git.lyx.org Git - lyx.git/blob - development/cmake/README.cmake
Scons: libintl also needs /MD option
[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 - to build the Qt3 frontend set QTDIR and call cmake with '-Dqt3=1'
9 - with GNUWIN32_DIR you could point to your gnuwin32 packages
10   (eg. -DGNUWIN32_DIR=c:\gnuwin32) by default it searches in your 
11   program  folder
12
13 Building Visual C++ 2005 project files:
14 - install Visual C++ 2005
15 - install Platform SDK 2005, "Core" and "Web Workshop"
16 - add include and library paths of the SDK to the IDE search paths,
17   menu: Tools->Options->VC++ directories->Library files + Include files
18 - install zlib (www.zlib.net) into %ProgramFiles%/GnuWin32/include+lib
19   or %ProgramFiles%/zlib/include+lib
20 - create a build directory, e.g. .../trunk/../build
21 - call in the build directory 'cmake ..\trunk\development\cmake'
22 - start lyx.sln
23
24 TIPS: - rename Microsoft Visual Studio 8\VC\vcpackages\feacp.dll 
25         to disable Intellisense
26       - the Release build links much faster
27
28
29 Building with GCC/Linux:
30 - create a build directory, e.g. .../trunk/../build
31 - call in the build directory 'cmake ..\trunk\development\cmake'
32
33 Building with GCC/Windows (Win2k only works with MSYS, XP?):
34 - install zlib (www.zlib.net) into %ProgramFiles%/GnuWin32/include+lib
35 - create a build directory, e.g. .../trunk/../build
36 - call: export QMAKESPEC=win32-g++ (MSYS) or set QMAKESPEC=win32-g++ (CMD)
37 - call in the build directory 'cmake ..\trunk\development\cmake'
38
39
40 To generate other build files call 'cmake'
41 which shows a list of possibilities.
42
43
44 The build process tries to find aspell on Windows
45 in %ProgramFiles%/GnuWin32/ and in /usr/ or in /usr/local 
46 under Linux. If it is not found the support is disabled.