-1 Install MSVC 2005
-
- If you don't have MSVC 2005 installed, download and install the free
- Express edition from http://msdn.microsoft.com/vstudio/express/visualc/
-
-2 Install the Windows Platform SDK
-
- see: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/
- (You don't need to install the IIS, MDAC, and Tablet PC SDK that are
- delivered with the Platform SDK.)
-
-3 configure MSVC
-
- Follow exactly the steps of
- http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/
- In Step 3 follow also the things noted as alternative.
- (If you later get an error message that "windows.h" cannot be found,
- create the global Windows environment variables "INCLUDE" and "LIB".
- INCLUDE contains the paths to the "include" folders of the installed
- platform SDK and of MSVC. LIB contains the corresponding "lib" folders.)
-
-4 Install Python
-
- Get the latest Python 2.5 version at
- http://www.python.org/download/releases/2.5/
-
- Install in C:\Python25 and add this directory to the PATH environment
- variable (Start > Settings > Control Panel > System > Advanced >
- Environment Variables).
-
-5 Install SCons
-
- Download and install SCons 0.96.92 (or newer but not 0.96.1) from http://www.scons.org/download.php
-
-6 Install the dependencies
-
- Download ftp://ftp.lyx.org/pub/lyx/contrib/lyx-windows-deps-msvc-qt4.zip
- and extract in the root directory of your LyX files (so you will get
- a directory called lyx-windows-deps-msvc next to the other directories
- like src, development etc.).
-
-7 Compile
+Compiling with Microsoft Visual C++
+===================================
+
+ These instructions assume the LyX source code is installed in C:\LyX\lyx-20
+ You can also use another directory if you prefer.
+
+1 Install MSVC 2010
+
+ If you don't have Visual C++ 2010 installed, get the free Express edition from
+ http://www.microsoft.com/express/Downloads/
+
+ All dependencies are linked against the MSVC 2010 runtime and won't work in
+ combination with MSVC 2008. You'll get crashes and other unexpected issues.
+
+2 Compile Qt
+
+ Download the latest Qt everywhere open source version from
+ http://get.qt.nokia.com/qt/source/ (e.g. qt-everywhere-opensource-src-4.7.1.zip).
+ Follow the instructions on http://doc.qt.nokia.com/4.7/install-win.html to
+ compile using MSVC 2010.
+ The pre-compiled version of Qt cannot be used. It uses the 2008 version of the
+ MSVC runtime which will result in crashes.
+
+3 Install Python
+
+ Install the latest Python 2.x version from
+ http://www.python.org/download/
+
+4 Install CMake
+
+ Install the latest CMake from http://www.cmake.org
+
+5 Configure
+
+ - Run the CMake GUI.
+
+ - Set the source code path to C:\LyX\lyx-20\development\cmake
+ Set the build path to C:\LyX\lyx-20-build
+ Click Configure and set the generator to Visual Studio 10.
+
+ - Enable LYX_DEPENDENCIES_DOWNLOAD and click Configure.
+ Pre-compiled dependencies will automatically be downloaded.