lyx_mirror/INSTALL.Win32
Joost Verburg cae9a14cce * Custom NSIS plug-ins will be included in the dependency packages
* New Console plug-in with support for restricted users
* Warning message if no PDF viewer is installed

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15772 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-06 21:48:00 +00:00

104 lines
2.8 KiB
Plaintext

Compiling LyX 1.4 for Win32
===========================
LyX 1.4 can be compiled with Microsoft Visual C++ 2005 (recommended)
or MinGW/MSYS.
Compiling using MSVC 2005
=========================
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/
You also need to install the Platform SDK, see
http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/
2 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).
3 Install SCons
Download and install SCons 0.96.92 from http://www.scons.org/download.php
4 Install the dependencies
Download ftp://ftp.lyx.org/pub/lyx/contrib/lyx-windows-deps-msvc.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.).
5 Compile
Run development\Win32\packaging\build_msvc.bat
Compiling using MinGW/MSYS
==========================
1 Install a MSYS/MinGW environment
Download from http://sourceforge.net/projects/mingw/
* MSYS 1.0.10 or later
* MinGW Installer 5.0.3 or later
Install MSYS in c:\msys and MinGW in c:\msys\mingw. When installing MinGW,
select the Candidate package and a Full installation.
2 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).
3 Install the dependencies
Download ftp://ftp.lyx.org/pub/lyx/contrib/lyx-windows-deps-mingw.zip
and extract in c:\msys
4 Compile
First, copy the LyX source code to c:\msys\home\lyx-14
Then, start MSYS and enter:
cd /home/lyx-14/development/Win32/packaging
./build_lyxwin.sh
Compilation will start and take quite some time.
NOTE:
If you are compiling a development (SVN) version, you will be asked to run
autogen.sh in a Cygwin environment. Download and install Cygwin
(www.cygwin.com) with automake/autoconf, start the Cygwin console and
enter:
cd /cygdrive/c/msys/home/lyx-14
./autogen.sh
Then follow step 3 again.
Creating the Installer
======================
To create an installer with LyX and all related components, download
and install the latest NSIS from http://nsis.sourceforge.net
Open development\Win32\packaging\installer\setttings.user.nsh and modify
the settings depending on your build environment.
Finally, go to development\Win32\packaging\installer
(in a normal Windows Explorer), right-click on lyx.nsi and click
"Compile NSIS Script".