Compling LyX
Michael Schmitt <[email protected]>
| Newsgroups | gmane.comp.kde.devel.cygwin |
|---|---|
| Message-ID | <[email protected]> |
Hi Christian, two comments on Angus' reply: I suggest using LyX 1.3 for testing purposes. This version is solid rock software and in 99.9% of all cases you can assume that a drawing problem is indeed a problem of your Qt library. I rather doubt that LyX 1.3 can be compiled with MSVC. However, I have created a short document that describes how to generate a LyX binary with MinGW in reasonable time. For debugging purposes, you can ignore the aspell part (step 4) as well as the LyX docs (step 5.2). As Angus pointed out, linking takes endlessly with MinGW - unless you use a static version of the Qt library. The latter results in reasonable link time, although MSVC is certainly faster. If you need more assistance: Let me know! (Send email directly to michael.schmitt (at) teststep (dot) org) Regards, Michael _______________________________________________ kde-cygwin mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-cygwin
LyX-MinGW.txt
(text/plain, 4 KB)
1 MinGW & MSYS
1.1 Download the following packages from http://www.mingw.org/download.shtml:
MinGW-3.2.0-rc-3.exe
binutils-2.15.94-20050118-1.tar.gz
MSYS-1.0.11-2004.04.30-1.exe
msysDTK-1.0.1.exe
1.2 Install MinGW-3.2.0-rc-3.exe in C:\MinGW
1.3 Install MSYS-1.0.11-2004.04.30-1.exe in C:\msys
1.4 Install msysDTK-1.0.1 in C:\msys
1.5 Extract binutils-2.15.94-20050118-1.tar.gz in C:\MinGW
(i.e., overwrite the existing binutils)
2. Gettext & Libiconv
2.1 Download the following packages from http://www.gnu.org/software/gettext/gettext.html:
gettext-tools-0.13.1.bin.woe32.zip
gettext-runtime-0.13.1.bin.woe32.zip
libiconv-1.9.1.bin.woe32.zip
2.2 Extract the three packages in C:\MinGW
3 QT3/Windows Free Edition
3.1 Get the latest CVS version
Open the MSYS window/bash. In your home directory, enter
cvs -d :pserver:[email protected]:/cvsroot/kde-cygwin login
<return> (no password)
cvs -z3 -d :pserver:[email protected]:/cvsroot/kde-cygwin co \
-r QT_WIN32_3_3_BRANCH qt-3
3.2 Compile a static (!) QT library (dynamic linking with MinGW causes nightmares!)
Run "cmd.exe" (i.e., open Window command line). Go to your MSYS home directory
and enter
set QTDIR=C:\MSYS\home\Brother\qt-3
set MINGW=C:\MinGW
set PATH=%QTDIR%\bin;%MINGW%\bin;%PATH%
set QMAKESPEC=win32-g++
configure.bat -release -static
4. Aspell
4.1 Download the following packages from http://aspell.net/
(note: version 0.60.2 does not compile)
aspell-0.50.5.tar.gz
aspell5-en-6.0-0.tar.bz2
aspell-de-0.50-2.tar.bz2
4.2 Extract all files in your MSYS home directory
4.3 Enter directory aspell-0.50.5
4.4 Enter
./configure --enable-static --disable-shared --prefix=c:/Programme/Aspell-0.50.5
4.5 Edit file ./examples/Makefile: Change line 84 to
CC = g++
Change line 175 to
INCLUDES = -I${top_srcdir}/interfaces/cc (i.e., strip trailing slash)
4.6 Edit file ./prog/Makefile: Change lines 190-192 (strip trailing slashes)
INCLUDES = -I${top_srcdir}/common\
-I${top_srcdir}/interfaces/cc \
-I${top_srcdir}/modules/speller/default \
4.7 Enter
make
make install
4.8 Enter directory aspell-de-0.50-2
4.9 Enter
export PATH=/c/Programme/Aspell-0.50.5/bin:$PATH
./configure
make
make install
4.11 Repeat 4.9 and 4.10 for the English dictionary
5. LyX
5.1 Get the latest CVS version
Open the MSYS window/bash. In your home directory, enter
export CVSROOT=:pserver:[email protected]:/cvs/lyx
cvs login
lyx
cvs checkout -r BRANCH_1_3_X -d lyx-devel-1.3.X lyx-devel
5.2 Get the latest CVS docs
cd lyx-devel-1.3.X/lib
cvs checkout -r BRANCH_1_3_X lyxdoc
mv doc/*.in lyxdoc
rm -f -r doc
mv lyxdoc doc
5.3 Enter directory "lyx-devel-1.3.X"
5.4 Enter
export LDFLAGS="-L/home/Brother/qt-3/lib -lqtmain -lqt-mt -lgdi32 -lole32 -luuid -lwsock32 -lcomdlg32"
patch -p0 < development/Win32/win32_kludge.diff
5.5 Edit file ./config/qt.m4: Remove line 204 (i.e., remove MinGW support - don't laugh)
5.6 Enter
./autogen.sh
5.7 Edit file ./configure: Change line 12613 (move conftest.$ac_ext in front of FLAGS)
ac_link='$CXX -o conftest$ac_exeext conftest.$ac_ext $CXXFLAGS $CPPFLAGS $LDFLAGS $LIBS >&5'
5.8 Enter
./configure --without-x --with-pspell --with-pspell-includes=/c/Programme/Aspell-0.50.5/include --with-pspell-libs=/c/Programme/Aspell-0.50.5/lib --with-frontend=qt --disable-maintainer-mode --disable-debug --enable-optimization --with-version-suffix --with-qt-dir=/home/Brother/qt-3 --prefix=/c/Programme/LyX-1.3
For LyX-1.4:
./configure --without-x --with-aspell --with-extra-prefix=/c/Programme/Aspell-0.50.5 --with-frontend=qt --disable-maintainer-mode --disable-debug --enable-optimization --with-version-suffix --with-qt-dir=/home/Brother/qt-3 --prefix=/c/Programme/LyX-1.4
5.9 Enter
make
make install