[EMAIL PROTECTED] wrote:

I think INSTALL.Win32 is seriously out of date and needs to be looked over
by someonw who knows this stuff... Here's a patch where I'm *guessing* -
it should *not* be applied as it is.

I changed 'MinSYS' be changed into 'MSYS', is that correct?

Does the procedure described in this file even work?

Maybe the file should refer to the Windows installers that exist?

/Christian
Christian, Angus, Uwe,

today I managed to compile LyX 1.4.0 using MinGW (as usual...). Ok, I had to use cygwin's automake but this won't be a problem for the final LyX 1.4 tar package.

I cleaned up and updated my compile instructions (see attachment). If you like to, you can have a look at my file and update INSTALL.Win32 accordingly (sorry, I will have no time before next weekend).

Please note that my compile instructions differ in two ways from what is described in INSTALL.Win32 and supported by the build scripts in ./development/Win32/...:

- I link the Qt library statically rather than dynamically (link times are below 4 minutes on my 3 GHz machine). - I use Aspell 0.60.4 rather than 0.50.X (much fewer problems when building with MinGW)

There seems to be an apparent bug in ./development/Win32/packaging/package_lyxwin.sh: AFAICS, LyX 1.4 no longer has a "lyx" directory in "Resources". The script should be fixed independently from INSTALL.Win32. Does anybody volunteer?

Michael


1 MinGW & MSYS

1.1 Download the following packages from http://www.mingw.org/download.shtml

      binutils-2.16.91-...tar.gz
      gcc-core-3.4.5-...tar.gz
      gcc-g++-3.4.5-...tar.gz
      mingw32-make-3.80.0-3.tar.gz
      mingw-runtime-3.9.tar.gz
      mingw-utils-0.3.tar.gz
      MSYS-1.0.11-...exe
      msys-autoconf-2.59.tar.bz2
      msys-automake-1.8.2.tar.bz2
      msysDTK-1.0.1.exe
      msys-libtool-1.5.tar.bz2
      w32api-3.6.tar.gz

1.2 Install in C:\MinGW

      binutils, gcc-core, gcc-g++, mingw32-make, mingw-runtime,
      mingw-utils, w32api

1.3 Install in C:\msys

      MSYS, msys-autoconf, msys-automake, msysDTK, msys-libtool

----------------------------------------------------------------------

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 qtwin

3.1 Get the latest CVS version

    Open the MSYS window/bash. In your home directory, enter

      cvs -d :pserver:[EMAIL PROTECTED]:/cvsroot/qtwin login
      <return> (no password)
      cvs -z3 -d :pserver:[EMAIL PROTECTED]:/cvsroot/qtwin co \
         -r QT_WIN32_3_3_BRANCH qt-3

3.2 Compile a static (!) QT library (dynamic linking with MinGW causes 
nightmares!)

    Open Window command line (run cmd.exe) and enter 

      cd <path_to_your_qtwin_dir>
      set QMAKESPEC=win32-g++
      setenv.bat
      configure.bat -release -static

----------------------------------------------------------------------    

4. Aspell

4.1 Download the following packages from http://aspell.net/

      aspell-0.60.4.tar.gz
      aspell6-en-6.0-0.tar.bz2
      aspell6-de-20030222-1.tar.bz2

4.2 Extract all files in your MSYS home directory 

4.3 Enter 

      cd aspell-0.60.4

4.4 Edit file ./common/file_util.cpp: Add before line 29

      #include "asc_ctype.hpp"

4.5 Enter

      ./configure --enable-static --disable-shared 
--prefix=c:/Programme/Aspell-0.60.4
      make
      make install

4.6 Compile the German dictionary 

      cd ../aspell6-de-20030222-1
      export PATH=/c/Programme/Aspell-0.60.4/bin:$PATH
      ./configure
      make
      make install

4.7 Repeat 4.6 for the English dictionary

----------------------------------------------------------------------

5. Compile the LyX sources (given as tar package)

5.1 Enter

      export LDFLAGS="-L/home/user/qt-3/lib -lqtmain -lqt-mt -lopengl32 -lglu32 
-lkernel32 -luser32 -lgdi32 -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 
-luuid -limm32 -lwinmm -lwsock32 -lwinspool"

5.2 Edit file ./configure:

      - Search for string "-DQT_DLL"; remove the complete line
    
      - Search for string "-lqt-mt"; 6 lines above, move "conftest.$ac_ext" in 
front of "$CXXFLAGS"

          ac_link='$CXX -o conftest$ac_exeext conftest.$ac_ext $CXXFLAGS 
$CPPFLAGS $LDFLAGS $LIBS >&5'

5.3 Configure LyX

      export PATH=/c/Programme/Python23:$PATH     (you need Python!)

      ./configure --without-x --with-aspell 
--with-extra-prefix=/c/Programme/Aspell-0.60.4 \
      --with-frontend=qt --disable-maintainer-mode --disable-debug 
--enable-optimization   \
      --with-qt-dir=/home/user/qt-3 --prefix=/c/Programme/LyX-1.4 --disable-pch 
\
      --disable-concept-checks --disable-stdlib-debug

5.4 Build LyX

      make
      make install

5.5 Create DTL tools

      cd ./development/Win32/packaging/dtl
      make

5.6 Package LyX for the Windows platform

     - Modify ./development/Win32/packaging/package_lyxwin.sh:

        - Adjust LYX_INSTALL_DIR to ="/c/Programme/LyX-1.4"

        - Remove "${QT_DLL}" "${LIBICONV_DLL}" "${MINGW_DLL}" in line 45

        - !!! Replace all occurrences of "Resources/lyx" by just "Resources"

     - Run the packaging script (in the directory in which it is located!)

5.7 If you like to, add icons to lyx.exe using the ResourceHacker (open source 
software)

       - Start ResourceHacker.exe
       - Load /c/Programme/LyX-1.4/bin/lyx.exe
       - Action>Add a new Resource...
       - Open file with new resource... lyx_32x32.ico
       - set Resource Name to 1
       - Add Resource
       - Repeat for lyx_doc_32x32.ico, setting the Resource Name to 2
       - Save the modified lyx.exe
       - Remove /c/Programme/LyX-1.4/bin/lyx_original.exe

Reply via email to