Difference between revisions of "HowTo compile on Win32 with MinGW"
m |
(=Requirements for compiling aMule=) |
||
Line 11: | Line 11: | ||
'''Note:''' Some of these require manually moving includes and libraries into their correct 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.sourceforge.net/mingw/MinGW-4.1.1.exe?download Download] | + | [http://www.microsoft.com/windows Windows] port of [http://gcc.gnu.org GNU C compiler] -> [http://prdownloads.sourceforge.net/mingw/MinGW-4.1.1.exe?download Download 4.1.1] |
− | Minimal [http://www.gnu.org GNU] shell for [http://www.microsoft.com/windows Windows] -> [http://prdownloads.sf.net/mingw/MSYS-1.0.10.exe?download Download] | + | Minimal [http://www.gnu.org GNU] shell for [http://www.microsoft.com/windows Windows] -> [http://prdownloads.sf.net/mingw/MSYS-1.0.10.exe?download Download 1.0.10] |
− | Developer toolkit for [http://www.mingw.org/msys.shtml MSys] (for [http://www.gnu.org/software/cvs CVS] & co) -> [http://prdownloads.sf.net/mingw/msysDTK-1.0.1.exe?download Download] | + | Developer toolkit for [http://www.mingw.org/msys.shtml MSys] (for [http://www.gnu.org/software/cvs CVS] & co) -> [http://prdownloads.sf.net/mingw/msysDTK-1.0.1.exe?download Download 1.0.1] |
[http://www.gnu.org/software/libiconv LibIConv] (required by [http://www.gnu.org/software/gettext gettext]) -> | [http://www.gnu.org/software/libiconv LibIConv] (required by [http://www.gnu.org/software/gettext gettext]) -> | ||
− | [http://prdownloads.sf.net/mingw/libiconv-1.8.0-2003.02.01-1.exe?download Download] | + | [http://prdownloads.sf.net/mingw/libiconv-1.8.0-2003.02.01-1.exe?download Download 1.8] |
[http://www.gnu.org/software/gettext GetText] (for [http://www.gnu.org/software/gettext po files], [http://www.gnu.org/software/automake/automake.html autogen.sh], etc) -> | [http://www.gnu.org/software/gettext GetText] (for [http://www.gnu.org/software/gettext po files], [http://www.gnu.org/software/automake/automake.html autogen.sh], etc) -> | ||
− | [http://prdownloads.sf.net/mingw/gettext-0.11.5-2003.02.01-1.exe?download Download] | + | [http://prdownloads.sf.net/mingw/gettext-0.11.5-2003.02.01-1.exe?download Download 0.11.5] |
[http://www.zlib.org zlib] compression library -> | [http://www.zlib.org zlib] compression library -> | ||
− | [http:// | + | [http://prdownloads.sourceforge.net/libpng/zlib123-dll.zip?download Download 123] |
[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.1.zip Download] | + | [http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.6.1.zip Download 2.6.1] |
== Common guidelines, issues, solutions == | == Common guidelines, issues, solutions == |
Revision as of 00:45, 7 August 2005
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.
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.