2006-06-15 15:11:25 +00:00
|
|
|
Building LyX with CMake
|
|
|
|
|
|
|
|
For all builds:
|
2006-08-04 20:04:16 +00:00
|
|
|
- CMake 2.4 or CVS version from www.cmake.org
|
2006-06-15 15:11:25 +00:00
|
|
|
- install Qt 4 and make sure qmake 4 is found
|
2006-09-25 15:34:04 +00:00
|
|
|
(add the folder with qmake to the environment variable PATH)
|
2006-06-20 09:59:48 +00:00
|
|
|
- by default it builds the Qt4 frontend
|
2006-09-25 15:34:04 +00:00
|
|
|
- with GNUWIN32_DIR you could point to your gnuwin32 packages
|
|
|
|
(eg. -DGNUWIN32_DIR=c:\gnuwin32) by default it searches in your
|
|
|
|
program folder
|
2006-06-15 15:11:25 +00:00
|
|
|
|
|
|
|
Building Visual C++ 2005 project files:
|
|
|
|
- install Visual C++ 2005
|
|
|
|
- install Platform SDK 2005, "Core" and "Web Workshop"
|
|
|
|
- add include and library paths of the SDK to the IDE search paths,
|
|
|
|
menu: Tools->Options->VC++ directories->Library files + Include files
|
|
|
|
- install zlib (www.zlib.net) into %ProgramFiles%/GnuWin32/include+lib
|
|
|
|
or %ProgramFiles%/zlib/include+lib
|
|
|
|
- create a build directory, e.g. .../trunk/../build
|
|
|
|
- call in the build directory 'cmake ..\trunk\development\cmake'
|
|
|
|
- start lyx.sln
|
2006-11-29 22:36:43 +00:00
|
|
|
- Warnings:
|
|
|
|
The default warning level of the msvc cmake builds is now /W4.
|
|
|
|
The cmake option
|
|
|
|
-DDISABLEWALL=1
|
|
|
|
switches to /W3,
|
|
|
|
-DWALL=1
|
|
|
|
re enables /W4.
|
|
|
|
To disable a specific warning add it to MSVC_W_DISABLE of
|
|
|
|
cmake/CMakeLists.txt. To make the warning an error add it
|
|
|
|
to MSVC_W_ERROR of the same file.
|
2006-06-15 15:11:25 +00:00
|
|
|
|
|
|
|
TIPS: - rename Microsoft Visual Studio 8\VC\vcpackages\feacp.dll
|
|
|
|
to disable Intellisense
|
|
|
|
- the Release build links much faster
|
2006-11-01 16:11:28 +00:00
|
|
|
- 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
|
2006-06-15 15:11:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
Building with GCC/Linux:
|
|
|
|
- create a build directory, e.g. .../trunk/../build
|
|
|
|
- call in the build directory 'cmake ..\trunk\development\cmake'
|
|
|
|
|
2006-06-16 17:02:42 +00:00
|
|
|
Building with GCC/Windows (Win2k only works with MSYS, XP?):
|
2006-06-15 15:11:25 +00:00
|
|
|
- install zlib (www.zlib.net) into %ProgramFiles%/GnuWin32/include+lib
|
|
|
|
- create a build directory, e.g. .../trunk/../build
|
2006-06-16 17:02:42 +00:00
|
|
|
- call: export QMAKESPEC=win32-g++ (MSYS) or set QMAKESPEC=win32-g++ (CMD)
|
2006-06-15 15:11:25 +00:00
|
|
|
- call in the build directory 'cmake ..\trunk\development\cmake'
|
|
|
|
|
|
|
|
|
|
|
|
To generate other build files call 'cmake'
|
|
|
|
which shows a list of possibilities.
|
|
|
|
|
|
|
|
|
2006-09-25 15:34:04 +00:00
|
|
|
The build process tries to find aspell on Windows
|
2006-06-15 15:11:25 +00:00
|
|
|
in %ProgramFiles%/GnuWin32/ and in /usr/ or in /usr/local
|
2006-09-25 15:34:04 +00:00
|
|
|
under Linux. If it is not found the support is disabled.
|