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

From AMule Project FAQ
Jump to: navigation, search
 
Line 38: Line 38:
 
Generally, compile wxMSW as static library. This avoids several linker issues, and provides you with static binary.
 
Generally, compile wxMSW as static library. This avoids several linker issues, and provides you with static binary.
  
Link statically against <i>zlib</i>, <i>crypto</i>, <i>curl</i> and <i>wxMSW</i> to avoid distributing extranous dlls (and generally make life simpler). At this point, this requires manually hacking <i>src/Makefile</i> (after running <i>configure</i>) and changing the neccesery <i>-l***</i> places to paths to static libraries.
+
Link statically against <i>zlib</i>, <i>crypto</i>, <i>curl</i> and <i>wxMSW</i> to avoid distributing extranous dlls (and generally make life simpler). At this point, this requires manually hacking <i>src/Makefile</i> (after running <i>configure</i>) and changing the necessary <i>-l***</i> places to paths to static libraries.
  
 
You need to modify <i>wx/setup.h</i> file by hand (after installing wx) and change <i>wxCheckListBox</i> to <i>0</i> (or, alternativly, configure wx with <i>--without-checklistbox</i>). Probably there's a better way around this, but I can't think of any right now.
 
You need to modify <i>wx/setup.h</i> file by hand (after installing wx) and change <i>wxCheckListBox</i> to <i>0</i> (or, alternativly, configure wx with <i>--without-checklistbox</i>). Probably there's a better way around this, but I can't think of any right now.

Revision as of 20:43, 31 May 2004

by Madcat


List of things you need to compile aMule

Note: Some of these require manually moving includes/libs into the right directories.

Windows port of GNU C compiler [1]

Minimal GNU shell for Windows [2]

Developer toolkit for MSys (for CVS & co) [3]

LibIConv (required by gettext) [4]

GetText (for po files, autogen.sh etc) [5]

Curl library (compile w/o ssl support) [6]

zlib compression library [7]

Crypto++ encryption library [8]

Windows port of wxWidgets library [9]


Common guidelines, issues, solutions

Generally, compile wxMSW as static library. This avoids several linker issues, and provides you with static binary.

Link statically against zlib, crypto, curl and wxMSW to avoid distributing extranous dlls (and generally make life simpler). At this point, this requires manually hacking src/Makefile (after running configure) and changing the necessary -l*** places to paths to static libraries.

You need to modify wx/setup.h file by hand (after installing wx) and change wxCheckListBox to 0 (or, alternativly, configure wx with --without-checklistbox). Probably there's a better way around this, but I can't think of any right now.