HowTo compile on Win32 with MinGW

From AMule Project FAQ
Revision as of 10:08, 5 June 2005 by 81.201.196.140 (Talk)

Jump to: navigation, search

Originally by Madcat

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

Minimal GNU shell for Windows -> Download

Developer toolkit for MSys (for CVS & co) -> Download

LibIConv (required by gettext) -> Download

GetText (for po files, autogen.sh, etc) -> Download

zlib compression library -> Download

Windows port of wxWidgets library -> Download

Common guidelines, issues, solutions

When compiling wxWidgets, you should make use of the following configure flags: --disable-shared --without-checklistbox

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

However, zlib detection might fail. If that's the case, you need to add --with-zlib=/local/ to your configure flags.

Compiling with MinGW Studio

NOTE: The compilation with MinGW Studio is deprecated right now and currently does not function. It might function again in the future.

As of 2004/07/17, you can find, in CVS, the file amule.msp which is the project file relative to the MinGW Studio IDE (Free and under GPL at http://www.parinya.ca/ and shipped with precompiled wxMSW).

Install MinGW Studio, add Zlib and Curl compiled libs in The MinGW Studio tree.

Then, open amule.msp with MinGW Studio, press F7, and aMule "should" be compiled :)

Yes, I know, "compile" is not the same as "work" ... But it is a great begining

Windows Installer

For those of you that don't want to compile aMule from source, there is also the option of the aMule Windows Installer.

Alternative Anleitung

Diese Programme werden benötigt:

Windows port of GNU C compiler -> Download

Minimal GNU shell for Windows -> Download

Developer toolkit for MSys (for CVS & co) -> Download

LibIConv (required by gettext) -> Download

GetText (for po files, autogen.sh, etc) -> Download

zlib compression library dll Version -> Download

Windows port of wxWidgets library -> Download

Schritt für Schritt: (Ersetze Benutzername mit einem Regulären Windowsbenutzername der in dem Ordner home zu finden ist)

1. Installiere die Programme der Reihe nach. Installiere sie in den vom Programm vorgeschlagenen Pfad.

2. Erstelle in C:\msys\1.0\home\(Benutzername)\ einen neuen Ordner Namens aMule

3. Entpacke wxMSW Packet in diesen Ordner. Für zlib erstelle zuerst einen Ordner namens zlibdll und entpacke dieses Packet hierhin.

4. Starte msys, die Shell die ihr zuvor installiert habt.

5. Wechsle mit cd aMule in den zuvor angelegten Ordner.

6. Der Befehl sollte jetzt zlibdll und wxWidgets-(Version) anzeigen.

7. Mit dem Befehl cd in den wxWidgets Ordner.

8. Gieb den Befehl "./configure --disable-shared --without-checklistbox" ein.

9. Wenn dies geklappt hat den Befehl make und danach "make install".

10. Mit dem Befehl "cd .." kannst du in der Ordnerstruktur eine Ebene nach oben Wechseln. Gieb ihn einmal ein.

11. Besorg dir nun die Aktuellen Sourcen von aMule von der Webseite und enpack sie in den gleichen Ordner wie zuvor zlib und wxWidgets.

12. cd aMule-(Version).

13. "./configure --with-zlib=/home/(Benutzername)/aMule/zlibdll/ --disable-debug --enable-optimize --enable-static"

14. make

15. "make install"

Schliese nun alle Fenster, starte die Shell mysys neu und gieb aMule.exe ein. Fertig. Die Temp und Incoming Ordner befinden sich in C:\msys\1.0\home\(Benutzername)\ respektive C:\msys\1.0\home\(Benutzername)\.aMule\.