2008-01-02 15:15:04 +00:00
|
|
|
Compiling LyX 1.6 for Win32
|
2006-11-04 14:28:11 +00:00
|
|
|
===========================
|
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
It's recommended to compile LyX using Microsoft Visual C++ 2010 and CMake.
|
|
|
|
Pre-compiled packages with dependencies are provided for this environment.
|
2006-11-04 14:28:11 +00:00
|
|
|
|
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
Compiling with Microsoft Visual C++
|
|
|
|
===================================
|
2007-02-05 05:31:46 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
Copy the LyX source code to C:\LyX\lyx-16
|
|
|
|
Some of the build scripts currently have issues with longer paths.
|
2007-02-24 23:10:46 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
1 Install MSVC 2010
|
2007-02-05 05:31:46 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
If you don't have Visual C++ 2010 installed, get the free Express edition from
|
|
|
|
http://www.microsoft.com/express/Downloads/
|
2007-02-05 05:31:46 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
2 Compile Qt
|
2007-02-05 05:31:46 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
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).
|
2011-02-14 19:46:54 +00:00
|
|
|
Follow the instructions on http://doc.qt.nokia.com/4.7/install-win.html to
|
2011-02-14 15:30:47 +00:00
|
|
|
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.
|
2007-02-05 05:31:46 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
2 Install Python
|
2007-02-05 05:31:46 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
Install the latest Python 2.x version from
|
|
|
|
http://www.python.org/download/
|
2007-02-05 05:31:46 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
3 Install CMake
|
2007-02-05 05:31:46 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
Install the latest CMake from http://www.cmake.org
|
2008-01-02 15:15:04 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
4 Install the dependencies
|
2007-02-05 05:31:46 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
Download
|
|
|
|
ftp://ftp.devel.lyx.org/pub/contrib/windows/lyx16-deps-msvc2010-x86.zip
|
|
|
|
Extract this file in the C:\LyX directory and verify that C:\LyX\deps
|
|
|
|
has been created.
|
2006-11-04 14:28:11 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
5 Configure
|
2006-11-22 04:13:46 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
- Run the CMake GUI.
|
|
|
|
|
|
|
|
- Set the source code path to C:\LyX\lyx-16\development\cmake
|
|
|
|
Set the build path to C:\LyX\lyx-16-build
|
|
|
|
Click Configure and set the generator to Visual Studio 10.
|
2006-11-22 04:13:46 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
- Set GNUWIN32_DIR to C:\LyX\deps and click Configure again.
|
|
|
|
|
|
|
|
- Set QT_QMAKE_EXECUTABLE to e.g.
|
|
|
|
C:\Qt\qt-everywhere-opensource-src-4.7.1\bin\qmake.exe
|
|
|
|
and Configure again.
|
|
|
|
|
|
|
|
- Enable the LYX_INSTALL option, set CMAKE_INSTALL_PREFIX to
|
|
|
|
C:\LyX\lyx-16-install and click Configure.
|
2007-02-05 05:31:46 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
- Set GETTEXT_MSGFMT_EXECUTABLE to C:\LyX\deps\bin\msgfmt.exe,
|
|
|
|
GETTEXT_MSGMERGE_EXECUTABLE to C:\LyX\deps\bin\msgmerge.exe
|
|
|
|
etc. and click Configure.
|
2007-02-05 05:31:46 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
- Click Generate.
|
2006-11-22 04:13:46 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
6 Compile
|
2007-01-05 22:43:56 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
A Microsoft Visual C++ solution should have been generated at
|
|
|
|
C:\LyX\lyx-16-build\lyx16.sln
|
|
|
|
Compile the INSTALL project to get a LyX installation in
|
|
|
|
C:\LyX\lyx-16-install
|
2007-02-24 23:10:46 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
6 Start LyX
|
2007-01-05 22:43:56 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
To start the just compiled lyx.exe, it is necessary to copy the following
|
|
|
|
files to C:\LyX\lyx-16-install\bin
|
2007-01-05 22:43:56 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
from C:\LyX\deps\bin:
|
2007-01-05 22:43:56 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
Aiksaurus.dll
|
|
|
|
aspell.dll
|
|
|
|
aspelld.dll (if compiling Debug version)
|
|
|
|
iconv.dll
|
|
|
|
intl.dll
|
|
|
|
zlibwapi.dll
|
|
|
|
msvcp100.dll
|
|
|
|
msvcr100.dll
|
2007-01-05 22:43:56 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
From C:\Qt\qt-everywhere-opensource-src-4.7.1\bin:
|
|
|
|
(directory depends on your Qt version)
|
2007-01-05 22:43:56 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
QtCore4.dll
|
|
|
|
QtGui4.dll
|
|
|
|
QtCore4d.dll (if compiling Debug version)
|
|
|
|
QtGui4d.dll (if compiling Debug version)
|
2007-01-05 22:43:56 +00:00
|
|
|
|
|
|
|
|
2006-11-04 14:28:11 +00:00
|
|
|
Creating the Installer
|
|
|
|
======================
|
2007-02-05 05:31:46 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
Get NSIS from http://nsis.sourceforge.net
|
2007-02-07 07:55:38 +00:00
|
|
|
|
2011-02-14 15:30:47 +00:00
|
|
|
Go to development\Win32\packaging\installer (in a normal Windows Explorer),
|
|
|
|
right-click on lyx.nsi and click "Compile NSIS Script".
|
|
|
|
You may have to to modify some of the directories in include\declarations.nsh
|
|
|
|
if case you used non-standard locations.
|