Changes To Cookbook
Not logged in

Changes to "Cookbook" between 2010-03-31 18:04:19 and 2010-03-31 18:16:02

   566    566   
   567    567    
   568    568   <h3>Compiling under linux for windows with Mingw</h3>
   569    569   This is called cross compiling. I'm using [http://www.archlinux.org/|Arch linux] distribution which
   570    570   uses the package manager pacman to install packages. If you have a differen linux distribution the packages might be called different. I assume a login name of renez substitute yours were apropiate.
   571    571   
   572    572   <h4>Installing the tools.</h4>
   573         -  *  Install mingw32-gccs. With Arch linux you do Pacman -S mingw32-gcc (As root!). This wile be installed in <strong>/usr/i486-mingw32</strong>
          573  +  *  Install mingw32-gccs. With Arch linux you do Pacman -S mingw32-gcc (As root!). This will be installed in <strong>/usr/i486-mingw32</strong>
   574    574     *  download [http://gnuwin32.sourceforge.net/packages/zlib.htm|zlib] the binary and developer files.
   575    575     *  If you want <strong>https</strong> support download [http://gnuwin32.sourceforge.net/packages/openssl.htm|openssl] the binary and developer files.
   576    576     *  Extract to <strong>/usr/i486-mingw32</strong> by: su to root
   577    577     *  cd <strong>/usr/i486-mingw32</strong>
   578    578     *  unzip  ~renez/Downloads/zlib-1.2.3-bin.zip
   579    579     *  unzip  ~renez/Downloads/zlib-1.2.3-lib.zip
   580    580     *  unzip  ~renez/Downloads/openssl-0.9.8h-1-bin.zip
................................................................................
   590    590   
   591    591   <h4>Compiling fossil source code</h4>
   592    592     *  If you want <strong>https</strong> supports
   593    593        <ul><li>Change Makefile.w32. Change the line "LIB += -lcrypto -lssl" to "LIB = -lssl -lcrypto -lgdi32 -lmingwex -lz -lws2_32".</li>
   594    594        <li>make -f Makefile.w32 TCC="i486-mingw32-gcc -Os -Wall  -DFOSSIL_I18N=0  -L/usr/i486-mingw32/lib -I/usr/i486-mingw32/include -DFOSSIL_ENABLE_SSL=1" FOSSIL_ENABLE_SSL=1</li> </ul>
   595    595     *   else make -f Makefile.w32 TCC="i486-mingw32-gcc -Os -Wall  -DFOSSIL_I18N=0  -L/usr/i486-mingw32/lib -I/usr/i486-mingw32/include "
   596    596   
   597         -<h4>Distribution the cross compiled fossil.exe</h4>
          597  +<h4>Distribution of cross compiled fossil.exe</h4>
   598    598   Because you have linked against zlib and maybe ssl you need to include from <strong>/usr/i486-mingw32/bin</strong> zlib1.dll and, optional, libssl32.dll (and maybe also libeay32.dll)
   599    599   
   600    600   <h4>testing the cross compiled fossil.exe</h4>
   601    601     *  copy fossil.exe and the dll's to a windows system. For testing purpose all in one directory. For production use a directory in your PATH
   602    602     *  fossil clone http://www.fossil-scm.org/ http.fossil
   603    603     *  If it has <strong>https</strong> support then fossil clone https://www.fossil-scm.org/ https.fossil
   604    604