5 Building LyX the first time can appear to be a daunting task, but much of
6 that is knowing which packages to download in the first place.
8 The instructions below should guide you through the installation of
9 the MinGW/MinSYS build environment, together with details on how to
10 grab and build the Qt toolkit and how to grab Aspell and LyX.
12 Once you've done all that, you should go read the README in
13 development/Win32/packaging/ The two scripts in the same directory,
14 build_lyxwin.sh and package_lyxwin.sh should automate the entire
15 build process. If not and you really can't figure out what to do next,
16 then please, please drop a mail to lyx-devel@lists.lyx.org.
21 =============================================================================
24 1.1 Download the following packages from http://www.mingw.org/download.shtml:
27 binutils-2.15.94-20050118-1.tar.gz
28 MSYS-1.0.11-2004.04.30-1.exe
31 1.2 Install MinGW-3.2.0-rc-3.exe in C:\MinGW
33 1.3 Install MSYS-1.0.11-2004.04.30-1.exe in C:\msys
35 1.4 Install msysDTK-1.0.1 in C:\msys
37 1.5 Extract binutils-2.15.94-20050118-1.tar.gz in C:\MinGW
38 (i.e., overwrite the existing binutils)
43 2.1 Download the following packages from
44 http://www.gnu.org/software/gettext/gettext.html:
46 gettext-tools-0.13.1.bin.woe32.zip
47 gettext-runtime-0.13.1.bin.woe32.zip
48 libiconv-1.9.1.bin.woe32.zip
50 2.2 Extract the three packages in C:\MinGW
55 http://qtwin.sourceforge.net/index.php/QT/Free_from_CVS_with_Mingw
57 3.1 Get the latest CVS version
59 Using the cvs executable that is packaged with MinSYS,
60 from the MinSYS command prompt:
63 $ cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/kde-cygwin login
64 <return> (no password)
65 $ cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/kde-cygwin co \
66 -r QT_WIN32_3_3_BRANCH -d qt3 qt-3
68 Alternatively, use the TortoiseCVS graphical interface.
70 3.2 Compile the QT library
72 Create two .bat files, in the top-level directory of the Qt tree,
73 my_configure.bat and my_make.bat. Mine are shown below. Obviously,
74 you'll have to tweak them ;-)
76 $ cat my_configure.bat
77 set QTDIR=J:\MinSys\home\Angus\qt3
79 set PATH=J:\MinSys\home\Angus\qt3\bin;J:\MinGW\bin;C:\WINDOWS\system32;C:\WINDOWS
80 set QMAKESPEC=win32-g++
81 configure.bat -verbose
84 set QTDIR=J:\MinSys\home\Angus\qt3
86 set PATH=J:\MinSys\home\Angus\qt3\bin;J:\MinGW\bin;C:\WINDOWS\system32;C:\WINDOWS
87 set QMAKESPEC=win32-g++
92 The first time that you build the Qt sources, run my_configure.bat.
93 Thereafter, you should be able to get away with my_make.bat. If it fails,
94 you should try my_configure.bat again, but this will overwrite all the
95 Qt header files, so you'll end up rebuilding large chunks of LyX as well.
98 PROMPT> my_configure.bat
102 4.1 Download aspell-0.50.5.tar.gz from ftp://ftp.gnu.org/gnu/aspell/
103 (note: version 0.60.2 does not compile)
104 Download dictionaries from ftp://ftp.gnu.org/gnu/aspell/dict/
105 Eg: en/aspell-en-0.50-2.tar.bz2
106 de/aspell-de-0.50-2.tar.bz2
108 4.2 Extract all files in your MSYS home directory. From the
109 MinSYS command prompt:
111 $ gunzip aspell-0.50.5.tar.gz
112 $ bunzip2 aspell-en-0.50-2.tar.bz2
113 $ tar xvf aspell-0.50.5.tar
114 $ tar xvf aspell-en-0.50-2.tar
115 $ rm -f aspell-0.50.5.tar
116 $ rm -f aspell-en-0.50-2.tar
118 There's no need to build Aspell now. The script in
119 development/Win32/packaging should do it for you.
123 5.1 Get the latest CVS version
125 Using the cvs executable that is packaged with MinSYS,
126 from the MinSYS command prompt:
129 $ mkdir lyx && cd lyx
130 $ cvs -d:pserver:anoncvs@anoncvs.us.lyx.org:/cvs/lyx login
131 (The password is "lyx" (no inverted commas))
132 $ cvs -d:pserver:anoncvs@anoncvs.us.lyx.org:/cvs/lyx \
133 checkout -r BRANCH_1_3_X -d 13x lyx-devel
135 Alternatively, use the TortoiseCVS graphical interface.
137 There's no need to build LyX now. The script in
138 development/Win32/packaging should do it for you.
140 Now go read the README in development/Win32/packaging.
141 =============================================================================