-6 start a command window, run commands:
- $ cd c:\lyx-devel\lyx-1.5.x
- $ scons -f development\scons\SConstruct \
- extra_lib_path=..\mingw_deps\lib \
- extra_inc_path=..\mingw_deps\include \
- extra_bin_path=..\mingw_deps\bin \
- qt_dir=c:\qt\4.2.2 \
- DESTDIR=..\lyx-1.5-install \
- install
+5 Configure
+
+ Open the script file build.bat that you find in your LyX folder
+ C:\LyX\lyx-20\development\cmake
+ with a text editor. Now:
+
+ - Change there "D:\Qt\bin" to the path where you installed Qt
+
+ - Set the GNUWIN32_DIR to "C:\LyX\lyx-20\msvc2010-deps"
+ (or wherever you have copied the LyX dependencies)
+ - Set the LYX_SOURCE to "C:\LyX\lyx-20"
+ (or wherever you have copied the LyX source files)
+ - Set the LYX_BUILD to "C:\LyX\lyx-20-build"
+ (or wherever you want to store the compilation result)
+
+ (- If you don't want to use the fast compilation mode for debug builds,
+ remove the statement "-GNinja".)
+
+6 Compile
+
+ - Open a MSVC Command prompt via Windows' start menu and switch
+ to the folder
+ C:\LyX\lyx-20\development\cmake
+ - To build LyX with debugging information for development, execute
+ the build script with the command
+ build devel
+ - To build LyX for a release, execute
+ the script with the command
+ build install
+
+7 Copy dependencies
+
+ Copy
+ - C:\LyX\lyx-20\msvc2010-deps\deps20\bin
+ - C:\LyX\lyx-20\msvc2010-deps\deps20\imagemagick
+ - C:\LyX\lyx-20\msvc2010-deps\deps20\python
+ - C:\LyX\lyx-20\msvc2010-deps\deps20\ghostscript
+ - C:\LyX\lyx-20\msvc2010-deps\deps20\Resources
+ to C:\LyX\lyx-20-build\LYX_INSTALLED\bin (install build)
+ or to C:\LyX\lyx-20-build\bin\Debug (debug build)
+
+ And copy from the Qt bin directory
+ (e.g. C:\Qt\bin)
+ QtCore4.dll
+ QtGui4.dll
+ QtCore4d.dll (if compiling Debug version)
+ QtGui4d.dll (if compiling Debug version)
+ to C:\LyX\lyx-20-build\LYX_INSTALLED\bin (install build)
+ or to C:\LyX\lyx-20-build\bin\Debug (debug build)
+
+8 Define path prefix
+
+ Add the following line to C:\LyX\lyx-20-install\Resources\lyxrc.dist,
+ so LyX will find the bundled tools such as Python, ImageMagick
+ and Ghostscript:
+
+ \path_prefix "$LyXDir\bin;$LyXDir\python;$LyXDir\imagemagick;$LyXDir\ghostscript"
+
+ You may also add the location of your LaTeX installation if it's not on the
+ system PATH, and the location of JabRef.
+
+9 Start LyX
+
+ C:\LyX\lyx-20-install\bin\lyx.exe