Difference between revisions of "HowTo compile on Win32 with MinGW"

From AMule Project FAQ
Jump to: navigation, search
m (typo)
Line 3: Line 3:
 
This wiki page only supports the latest [[aMule_CVS|CVS]] version of [[aMule]].
 
This wiki page only supports the latest [[aMule_CVS|CVS]] version of [[aMule]].
  
== List of things you need to compile [[aMule]] ==
+
== Requirements for compiling [[aMule]] ==
  
'''Note:''' Some of these require manually moving includes/libs into the right directories.
+
'''Note:''' Some of these require manually moving includes and libraries into their correct directories.
  
 
[http://www.microsoft.com/windows Windows] port of [http://gcc.gnu.org GNU C compiler] -> [http://prdownloads.sf.net/mingw/MinGW-3.1.0-1.exe?download Download]
 
[http://www.microsoft.com/windows Windows] port of [http://gcc.gnu.org GNU C compiler] -> [http://prdownloads.sf.net/mingw/MinGW-3.1.0-1.exe?download Download]
Line 24: Line 24:
 
[http://www.microsoft.com/windows Windows] port of [[wxWidgets]] library ->
 
[http://www.microsoft.com/windows Windows] port of [[wxWidgets]] library ->
 
[http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.6.0.zip Download]
 
[http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.6.0.zip Download]
 
  
 
== Common guidelines, issues, solutions ==
 
== Common guidelines, issues, solutions ==

Revision as of 21:36, 29 May 2005

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