HowTo compile on Win32 with MinGW
From AMule Project FAQ
Contents
Originally by Madcat
English | Deutsch
This wiki page only supports the latest CVS version of aMule.
Requirements for compiling aMule
Note: Some of these require manually moving includes and libraries into their correct directories.
- Windows port of GNU C compiler -> Download 4.1.1
- Minimal GNU shell for Windows -> Download 1.0.10
- Developer toolkit for MSys (for CVS & co) -> Download 1.0.1
- LibIConv (required by gettext) -> Download 1.8
- GetText (for po files, autogen.sh, etc) -> Download 0.11.5
- zlib compression library -> Download 123
- Windows port of wxWidgets library -> Download 2.6.1
Common guidelines, issues, solutions
When compiling wxWidgets, you should make use of the following configure flags: --disable-shared --without-checklistbox
Compile zlib with --prefix=/mingw or zlib detection in aMule will not work.
Link statically against zlib to avoid distributing extranous DLLs (and generally make life simpler).
Compilation
The compilation itself is actually just a matter of following the usual method: ./configure && make. Use your favorite flags on ./configure.