Changeset 2458 for box/trunk/docs


Ignore:
Timestamp:
20/03/2009 00:52:03 (3 years ago)
Author:
chris
Message:

Note that Wine and binfmts are required to cross-compile successfully.

Note that you have to find mingwm10.dll yourself, and where to find it
on Debian/Ubuntu?, and to modify parcels.txt to match.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/docs/api-docs/backup/win32_build_on_linux_using_mingw.txt

    r2290 r2458  
    44Install the MinGW cross-compiler for Windows: 
    55 
    6 - Debian users can "apt-get install mingw32" 
     6- Debian and Ubuntu users can "apt-get install mingw32" 
    77- Fedora and SuSE users can download RPM packages from  
    88  [http://mirzam.it.vu.nl/mingw/] 
     
    1313assumes that it is "i386-mingw32-". Adjust to taste. 
    1414 
    15 Download Zlib from [http://www.zlib.net/], unpack and enter source directory: 
     15You will also need to install Wine and the Linux kernel "binary formats" 
     16(binfmt) support, so that you can run Windows executables on Linux, 
     17otherwise the configure scripts will not work properly with a cross-compiler. 
     18On Ubuntu, run: 
     19 
     20        apt-get install wine binfmt-support 
     21        /etc/init.d/binfmt-support start 
     22 
     23Start by downloading Zlib from [http://www.zlib.net/], unpack and enter 
     24source directory: 
    1625 
    1726        export CC=i386-mingw32-gcc  
     
    4958        ./configure --host=i386-mingw32 --prefix=/usr/local/i386-mingw32/ 
    5059        make winshared 
     60 
     61If you get this error: 
     62 
     63        ./dftables.exe pcre_chartables.c 
     64        /bin/bash: ./dftables.exe: cannot execute binary file 
     65        make: *** [pcre_chartables.c] Error 126 
     66 
     67then run: 
     68 
     69        wine ./dftables.exe pcre_chartables.c 
     70        make winshared 
     71 
     72to complete the build. Finally: 
     73 
    5174        cp .libs/libpcreposix.a /usr/local/i386-pc-mingw32/lib 
    5275        cp pcreposix.h /usr/local/i386-pc-mingw32/include 
    5376 
    54 Configure Box with: 
     77You will need to find a copy of mingwm10.dll that matches your cross-compiler. 
     78Most MinGW distributions should come with it. On Debian and Ubuntu, for some 
     79bizarre reason, you'll find it compressed as 
     80/usr/share/doc/mingw32-runtime/mingwm10.dll.gz, in which case you'll 
     81have to un-gzip it with "gzip -d". Copy it to a known location, e.g. 
     82/usr/local/i386-mingw32/bin. 
     83 
     84Download and extract Box Backup, and change into the base directory, 
     85e.g. boxbackup-0.11rc2. Change the path to mingwm10.dll in parcels.txt to 
     86match where you found or installed it. 
     87 
     88Now configure Box with: 
    5589 
    5690        ./configure --host=i386-mingw32 \ 
Note: See TracChangeset for help on using the changeset viewer.