Hello everybody,

LyX 1.3.6cvs with latest patches built successfully on Win XP using MinGW and a static Qt3/Win Free library!

For those who want to build their own Windows binary, I have attached the revised compile instructions.

Good night, Michael
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). Enter the qt-3 directory 
    and enter

      set QMAKESPEC=win32-g++
      setenv.bat

      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"

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 12514 (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-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.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

Reply via email to