Changeset 2458 for box/trunk/docs
- Timestamp:
- 20/03/2009 00:52:03 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/docs/api-docs/backup/win32_build_on_linux_using_mingw.txt
r2290 r2458 4 4 Install the MinGW cross-compiler for Windows: 5 5 6 - Debian users can "apt-get install mingw32"6 - Debian and Ubuntu users can "apt-get install mingw32" 7 7 - Fedora and SuSE users can download RPM packages from 8 8 [http://mirzam.it.vu.nl/mingw/] … … 13 13 assumes that it is "i386-mingw32-". Adjust to taste. 14 14 15 Download Zlib from [http://www.zlib.net/], unpack and enter source directory: 15 You will also need to install Wine and the Linux kernel "binary formats" 16 (binfmt) support, so that you can run Windows executables on Linux, 17 otherwise the configure scripts will not work properly with a cross-compiler. 18 On Ubuntu, run: 19 20 apt-get install wine binfmt-support 21 /etc/init.d/binfmt-support start 22 23 Start by downloading Zlib from [http://www.zlib.net/], unpack and enter 24 source directory: 16 25 17 26 export CC=i386-mingw32-gcc … … 49 58 ./configure --host=i386-mingw32 --prefix=/usr/local/i386-mingw32/ 50 59 make winshared 60 61 If 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 67 then run: 68 69 wine ./dftables.exe pcre_chartables.c 70 make winshared 71 72 to complete the build. Finally: 73 51 74 cp .libs/libpcreposix.a /usr/local/i386-pc-mingw32/lib 52 75 cp pcreposix.h /usr/local/i386-pc-mingw32/include 53 76 54 Configure Box with: 77 You will need to find a copy of mingwm10.dll that matches your cross-compiler. 78 Most MinGW distributions should come with it. On Debian and Ubuntu, for some 79 bizarre reason, you'll find it compressed as 80 /usr/share/doc/mingw32-runtime/mingwm10.dll.gz, in which case you'll 81 have to un-gzip it with "gzip -d". Copy it to a known location, e.g. 82 /usr/local/i386-mingw32/bin. 83 84 Download and extract Box Backup, and change into the base directory, 85 e.g. boxbackup-0.11rc2. Change the path to mingwm10.dll in parcels.txt to 86 match where you found or installed it. 87 88 Now configure Box with: 55 89 56 90 ./configure --host=i386-mingw32 \
Note: See TracChangeset
for help on using the changeset viewer.
