(no commit message)
[wiki] / examples / cross-compiling-windows-binary.mdwn
index 2e850c1..27ea13b 100644 (file)
@@ -8,6 +8,9 @@ is much faster. It is also much easier to get all the dependencies in a modern
 distribution. Therefore, this howto deals with cross-compiling tinc with MinGW
 under Linux on a Debian distribution.
 
+The result is a 32-bit executable. If you want to create a 64-bit executable,
+have a look at the [[64-bit cross-compilation example|examples/cross-compiling-64-bit-windows-binary]].
+
 ### Overview
 
 The idea is simple:
@@ -24,6 +27,13 @@ There are only a few packages that need to be installed as root to get started:
 >     sudo apt-get install mingw32 wine git-core
 >     sudo apt-get build-dep tinc
 
+Other Linux distributions may also have MinGW packages, use their respective
+package management tools to install them.  Debian installs the cross-compiler
+in `/usr/i586-mingw32msvc/`. Other distributions might install it in another
+directory however, for example `/usr/i686-pc-mingw32/`. Check in which directory
+it is installed, and replace all occurences of `i586-mingw32msvc` in this
+example with the correct name from your distribution.
+
 ### Setting up the build directory and getting the sources
 
 We will create a directory called `mingw/` in the home directory.  We use