Building LyX with CMake
For all builds:
-- CMake 2.4.2 or CVS version from www.cmake.org
+- CMake 2.4 or CVS version from www.cmake.org
- install Qt 4 and make sure qmake 4 is found
-
+ (add the folder with qmake to the environment variable PATH)
+- by default it builds the Qt4 frontend
+- with GNUWIN32_DIR you could point to your gnuwin32 packages
+ (eg. -DGNUWIN32_DIR=c:\gnuwin32) by default it searches in your
+ program folder
Building Visual C++ 2005 project files:
- install Visual C++ 2005
- create a build directory, e.g. .../trunk/../build
- call in the build directory 'cmake ..\trunk\development\cmake'
- start lyx.sln
+- 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.
TIPS: - rename Microsoft Visual Studio 8\VC\vcpackages\feacp.dll
to disable Intellisense
- the Release build links much faster
+ - 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
Building with GCC/Linux:
which shows a list of possibilities.
-The build process tries to find aspell and iconv on Windows
+The build process tries to find aspell on Windows
in %ProgramFiles%/GnuWin32/ and in /usr/ or in /usr/local
-under Linux. If they are not found the support is disabled.
+under Linux. If it is not found the support is disabled.