<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://test.amule.szerverem.hu/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://test.amule.szerverem.hu/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mirko.grewing</id>
		<title>AMule Project FAQ - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://test.amule.szerverem.hu/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mirko.grewing"/>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/Special:Contributions/Mirko.grewing"/>
		<updated>2026-04-05T22:26:38Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.3</generator>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac</id>
		<title>HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac"/>
				<updated>2010-12-13T23:11:41Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_compile_on_Mac-de|Deutsch]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-es|Espa&amp;amp;ntilde;ol]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-fr|Fran&amp;amp;ccedil;ais]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-it|Italiano]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to get and install [[aMule]] on [http://www.apple.com/macosx/ Apple Mac OS X].&lt;br /&gt;
&lt;br /&gt;
# You can simply download the finished application ('binary release'); &lt;br /&gt;
# You compile it from a [[aMule SVN|SVN source snapshot]] or [http://www.amule.org/files/files.php?cat=42 stable release source].&lt;br /&gt;
&lt;br /&gt;
== Binary releases ==&lt;br /&gt;
If you don't want to bother with installing and compiling all those tools and sources, then get one of the pre-compiled [[aMule]] applications. The official release is considered 'stable', but every now and then applications are built from the current source to allow more people to test new features or the like. &lt;br /&gt;
&lt;br /&gt;
Check the Mac forum for the most recent user posted binary: [http://forum.amule.org/index.php?board=49.0 aMule forum]&lt;br /&gt;
&lt;br /&gt;
Now, to install the downloaded binary, just drag the aMule application to a folder of your choice (e.g., ''/Applications'').&lt;br /&gt;
&lt;br /&gt;
To start aMule, double-click the application icon.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You might want to take a look at the [[Mac specific usage]] article.&lt;br /&gt;
&lt;br /&gt;
== Compiling from source ==&lt;br /&gt;
Compiling from source allows most current bug reports, because you can compile and test the [[aMule SVN|SVN snapshot]] of the very day.&lt;br /&gt;
&lt;br /&gt;
To compile [[aMule]] from source you need some development tools, the [[wxWidgets]] library and the [http://www.amule.org/files/files.php?cat=42 aMule source].&lt;br /&gt;
&lt;br /&gt;
=== Get the sources and development tools ===&lt;br /&gt;
==== Step 1: Download and install [http://developer.apple.com/tools/xcode Xcode] ====&lt;br /&gt;
[http://developer.apple.com/tools/xcode Xcode] is [http://www.apple.com Apple]'s development environment. We need it for the [http://gcc.gnu.org GCC] compiler. &lt;br /&gt;
&lt;br /&gt;
You will need at least version 2.1 of Xcode, a more recent version is preferable though. You can download the most recent version of Xcode from Apple, but you will need to sign up for a free-of-charge developer account first or log-in using your iTunes Store account.&lt;br /&gt;
&lt;br /&gt;
# Get Xcode from http://developer.apple.com/tools/download&lt;br /&gt;
# &amp;quot;Member Site&amp;quot;-&amp;gt;&amp;quot;Log In&amp;quot;-&amp;gt;&amp;quot;Download Software&amp;quot;-&amp;gt;&amp;quot;Developer Tools&amp;quot;-&amp;gt;&amp;quot;Download Xcode Tools last release&amp;quot;&amp;gt;&amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install [http://www.macports.org MacPorts]====&lt;br /&gt;
[http://www.macports.org MacPorts] is an open source installer for lots of open source tools ported to [http://macos.apple.com Mac OS X]. aMule needs a few of these tools to compile properly. Alternatively, &amp;lt;del&amp;gt;you can also use [http://www.finkproject.org/ Fink] to install these tools or&amp;lt;/del&amp;gt; (Fink currently lacks many of the needed tools) you can install them manually .&lt;br /&gt;
&lt;br /&gt;
# Download the most recent version of [http://www.macports.org MacPorts]&lt;br /&gt;
# Read [http://guide.macports.org/ MacPorts' documentation] to learn how to install applications through [http://www.macports.org MacPorts].&lt;br /&gt;
&lt;br /&gt;
===== Syntax of most important commands =====&lt;br /&gt;
Packages list can be downloaded/updated through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port selfupdate&lt;br /&gt;
&lt;br /&gt;
You can upgrade all the packages installed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port upgrade installed&lt;br /&gt;
&lt;br /&gt;
Packages can be installed through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name''&lt;br /&gt;
&lt;br /&gt;
and removed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port uninstall ''package_name''&lt;br /&gt;
&lt;br /&gt;
Port variants can be invoked with the plus sign:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name'' +universal&lt;br /&gt;
&lt;br /&gt;
You can list all available variants with:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port variants ''package_name''&lt;br /&gt;
&lt;br /&gt;
===== Notes about Universal variant =====&lt;br /&gt;
&lt;br /&gt;
As stated [http://guide.macports.org/chunked/internals.configuration-files.html here], MacPorts has different build_arch settings for ''universal'' variant. You can use this variant on Leopard to switch both ppc and i386 version on. Since Snow Leopard doesn't support ppc architecture anymore, the universal variant can be used to switch both i386 and x86_64 version on. Please note that default architecture on Snow Leopard is x86_64 if the CPU supports it, i386 otherwise.&lt;br /&gt;
&lt;br /&gt;
'''WARNING''': ''binutils'' [https://svn.macports.org/ticket/21588 fails] building universal. So you should set ''build_arch'' to ''i386'' (about line 59) into ''/opt/local/etc/macports/macports.conf'' to be sure to build every port against i386 architecture (x86_64 is useless since 64-bit Carbon libraries does not exists and wxCocoa is not ready yet).&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Install libraries and tools ====&lt;br /&gt;
&lt;br /&gt;
These are the package that provides (with dependancies) all needed libraries and tools to build [[wxWidgets]] and [[aMule]] with most of feature:&lt;br /&gt;
&lt;br /&gt;
# automake&lt;br /&gt;
# binutils&lt;br /&gt;
# flex&lt;br /&gt;
# gettext&lt;br /&gt;
# libpng&lt;br /&gt;
# libcryptopp&lt;br /&gt;
# libiconv&lt;br /&gt;
# gd2&lt;br /&gt;
# jpeg&lt;br /&gt;
# libgeoip&lt;br /&gt;
# libupnp&lt;br /&gt;
# pkgconfig&lt;br /&gt;
&lt;br /&gt;
This should be enough:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install automake binutils flex libpng libcryptopp gd2 libgeoip libupnp&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Compile [[wxWidgets|wxMac]] ====&lt;br /&gt;
[[wxWidgets|wxMac]] is the port of the [[wxWidgets]] library for [http://www.apple.com/macosx Mac OS X]. This library is used to make [[aMule]] 'multi-platform'.&lt;br /&gt;
&lt;br /&gt;
Get the source from: http://www.wxwidgets.org/downloads/ (Source Archives: wxMac) and extract the archive on your desktop.&amp;lt;br&amp;gt;&lt;br /&gt;
Last stable version is 2.8.11 at now.&lt;br /&gt;
Type&lt;br /&gt;
&lt;br /&gt;
 $ cd&lt;br /&gt;
&lt;br /&gt;
leave a space after the command, than drag and drop the wxMac uncompressed folder into the Terminal window: the complete path of the folder will be printed on screen. For example:&lt;br /&gt;
&lt;br /&gt;
 $ cd ~/Desktop/wxMac-2.8.11/&lt;br /&gt;
&lt;br /&gt;
Press enter.&lt;br /&gt;
The basic command to configure and compile the package is the following:&lt;br /&gt;
&lt;br /&gt;
 $ ./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local &amp;amp;&amp;amp; make -j8&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The above command doesn't enable debug information. Debug informations allows you to submit a helpful stacktrace if [[aMule]] crashes or a sample if it hangs to the [[aMule devs|aMule developers]]. If you want to compile a debug version then you can use &amp;quot;--enable-debug --enable-debug_gdb&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
===== Snow Leopard =====&lt;br /&gt;
&lt;br /&gt;
Building on Snow Leopard is tricky. You must focus on architecture, compiler version, compatibility. This should be enough to have compatibility with i386 Leopard and above:&lt;br /&gt;
&lt;br /&gt;
  CC=&amp;quot;gcc-4.2 -arch i386&amp;quot; CXX=&amp;quot;g++-4.2 -arch i386&amp;quot; \&lt;br /&gt;
  ./configure CFLAGS=&amp;quot;-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5&amp;quot; \&lt;br /&gt;
  CXXFLAGS=&amp;quot;-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5&amp;quot; \&lt;br /&gt;
  CPPFLAGS=&amp;quot;-arch i386&amp;quot; LDFLAGS=&amp;quot;-arch i386&amp;quot; OBJCFLAGS=&amp;quot;-arch i386&amp;quot; OBJCXXFLAGS=&amp;quot;-arch i386&amp;quot; \&lt;br /&gt;
  --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local&lt;br /&gt;
&lt;br /&gt;
followed by:&lt;br /&gt;
&lt;br /&gt;
  make -j8&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Compile [[aMule]] ====&lt;br /&gt;
Download [http://www.amule.org/files/files.php?cat=42 aMule source] and extract archive into the same place of wxMac (i.e. your desktop if you are following out suggestion).&lt;br /&gt;
Open a Terminal and type:&lt;br /&gt;
&lt;br /&gt;
  $ cd&lt;br /&gt;
&lt;br /&gt;
then leave a space and drag and drop aMule uncompressed folder whose path will be printed on screen, for example:&lt;br /&gt;
&lt;br /&gt;
  $ cd ~/Desktop/aMule-2.2.&lt;br /&gt;
&lt;br /&gt;
Press Enter. Now it's possible to configure the sources: there are several options that can be used to activate or deactivate feature during compiling. This is only an example, that provide a full feature aMule build:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --with-wx-config=../wxMac-2.8.10/wx-config  --enable-optimize --with-crypto-prefix=/opt/local \&lt;br /&gt;
  --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local --enable-cas --enable-webserver \&lt;br /&gt;
  --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon --enable-geoip \&lt;br /&gt;
  --with-geoip-lib=/opt/local/lib --with-geoip-headers=/opt/local/include --enable-geoip-static --enable-debug&lt;br /&gt;
&lt;br /&gt;
Take a look to the [[configure]] page for a complete list of options.&lt;br /&gt;
You should pay attention to these elements:&lt;br /&gt;
&lt;br /&gt;
# The given example enables debug informations. To disable them exchange the option ''--enable-debug'' with ''--disable-debug --enable-optimize''.&lt;br /&gt;
# The option ''--with-wx-config'' must point to the correct relative path of the compiled wxMac. The example assumes that aMule and wxMac folders are in the same directory (i.e. your desktop). You should also correct the wxMac folder's name according to its version (in the example is 2.8.10).&lt;br /&gt;
# The option ''--with-crypto-prefix'' should point to /usr/local/cryptopp if you compiled Crypto++ starting from its source, out of MacPorts.&lt;br /&gt;
# '''IMPORTANT!''' It seems that Mac OS version of ''ld'' tool is not able to make static library. So if you plan to run/install your compiled aMule on other Mac which doesn't have MacPorts installed you MUST remove the ''--enable-geoip-static'' option to avoid a crash when the program starts.&lt;br /&gt;
&lt;br /&gt;
Now it's time to make you packages with:&lt;br /&gt;
&lt;br /&gt;
  $ make -j8&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
  ./src/utils/scripts/mac_packager&lt;br /&gt;
&lt;br /&gt;
You should find the aMule package in the same source folder.&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac</id>
		<title>HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac"/>
				<updated>2009-08-23T07:54:32Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: /* Step 4: Compile wxMac */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_compile_on_Mac-de|Deutsch]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-es|Espa&amp;amp;ntilde;ol]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-fr|Fran&amp;amp;ccedil;ais]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to get and install [[aMule]] on [http://www.apple.com/macosx/ Apple Mac OS X].&lt;br /&gt;
&lt;br /&gt;
# You can simply download the finished application ('binary release'); &lt;br /&gt;
# You compile it from a [[aMule SVN|SVN source snapshot]] or [http://www.amule.org/files/files.php?cat=42 stable release source].&lt;br /&gt;
&lt;br /&gt;
== Binary releases ==&lt;br /&gt;
If you don't want to bother with installing and compiling all those tools and sources, then get one of the pre-compiled [[aMule]] applications. The official release is considered 'stable', but every now and then applications are built from the current source to allow more people to test new features or the like. &lt;br /&gt;
&lt;br /&gt;
Check the Mac forum for the most recent user posted binary: [http://forum.amule.org/index.php?board=49.0 aMule forum]&lt;br /&gt;
&lt;br /&gt;
Now, to install the downloaded binary, just drag the aMule application to a folder of your choice (e.g., ''/Applications'').&lt;br /&gt;
&lt;br /&gt;
To start aMule, double-click the application icon.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You might want to take a look at the [[Mac specific usage]] article.&lt;br /&gt;
&lt;br /&gt;
== Compiling from source ==&lt;br /&gt;
Compiling from source allows most current bug reports, because you can compile and test the [[aMule SVN|SVN snapshot]] of the very day.&lt;br /&gt;
&lt;br /&gt;
To compile [[aMule]] from source you need some development tools, the [[wxWidgets]] library and the [http://www.amule.org/files/files.php?cat=42 aMule source].&lt;br /&gt;
&lt;br /&gt;
=== Get the sources and development tools ===&lt;br /&gt;
==== Step 1: Download and install [http://developer.apple.com/tools/xcode Xcode] ====&lt;br /&gt;
[http://developer.apple.com/tools/xcode Xcode] is [http://www.apple.com Apple]'s development environment. We need it for the [http://gcc.gnu.org GCC] compiler. &lt;br /&gt;
&lt;br /&gt;
You will need at least version 2.1 of Xcode, a more recent version is preferable though. You can download the most recent version of Xcode from Apple, but you will need to sign up for a free-of-charge developer account first or log-in using your iTunes Store account.&lt;br /&gt;
&lt;br /&gt;
# Get Xcode from http://developer.apple.com/tools/download&lt;br /&gt;
# &amp;quot;Member Site&amp;quot;-&amp;gt;&amp;quot;Log In&amp;quot;-&amp;gt;&amp;quot;Download Software&amp;quot;-&amp;gt;&amp;quot;Developer Tools&amp;quot;-&amp;gt;&amp;quot;Download Xcode Tools last release&amp;quot;&amp;gt;&amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install [http://www.macports.org MacPorts]====&lt;br /&gt;
[http://www.macports.org MacPorts] is an open source installer for lots of open source tools ported to [http://macos.apple.com Mac OS X]. aMule needs a few of these tools to compile properly. Alternatively, &amp;lt;del&amp;gt;you can also use [http://www.finkproject.org/ Fink] to install these tools or&amp;lt;/del&amp;gt; (Fink currently lacks many of the needed tools) you can install them manually .&lt;br /&gt;
&lt;br /&gt;
# Download the most recent version of [http://www.macports.org MacPorts]&lt;br /&gt;
# Read [http://guide.macports.org/ MacPorts' documentation] to learn how to install applications through [http://www.macports.org MacPorts].&lt;br /&gt;
&lt;br /&gt;
===== Syntax of most important commands =====&lt;br /&gt;
Packages list can be downloaded/updated through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port selfupdate&lt;br /&gt;
&lt;br /&gt;
You can upgrade all the packages installed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port upgrade installed&lt;br /&gt;
&lt;br /&gt;
Packages can be installed through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name''&lt;br /&gt;
&lt;br /&gt;
and removed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port uninstall ''package_name''&lt;br /&gt;
&lt;br /&gt;
Port variants can be invoked with the plus sign:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name'' +universal&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Install libraries and tools ====&lt;br /&gt;
&lt;br /&gt;
These are the package that provides (with dependancies) all needed libraries and tools to build [[wxWidgets]] and [[aMule]] with most of feature:&lt;br /&gt;
&lt;br /&gt;
# automake&lt;br /&gt;
# binutils&lt;br /&gt;
# flex&lt;br /&gt;
# gettext&lt;br /&gt;
# libpng&lt;br /&gt;
# libcryptopp&lt;br /&gt;
# libiconv&lt;br /&gt;
# gd2&lt;br /&gt;
# jpeg&lt;br /&gt;
# libgeoip&lt;br /&gt;
# libupnp&lt;br /&gt;
# pkgconfig&lt;br /&gt;
&lt;br /&gt;
This should be enough:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install automake binutils flex libpng libcryptopp gd2 libgeoip libupnp&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Compile [[wxWidgets|wxMac]] ====&lt;br /&gt;
[[wxWidgets|wxMac]] is the port of the [[wxWidgets]] library for [http://www.apple.com/macosx Mac OS X]. This library is used to make [[aMule]] 'multi-platform'.&lt;br /&gt;
&lt;br /&gt;
Get the source from: http://www.wxwidgets.org/downloads/ (Source Archives: wxMac) and extract the archive on your desktop.&amp;lt;br&amp;gt;&lt;br /&gt;
The installation of the TextCtrl patch is highly recommended: download [http://trac.wxwidgets.org/raw-attachment/ticket/9012/textctrl_optimization.diff this patch file] to your desktop, now open a Terminal and type&lt;br /&gt;
&lt;br /&gt;
 $ patch ~/Desktop/wxMac-2.8.10/src/mac/carbon/textctrl.cpp ~/Desktop/textctrl_optimization.diff&lt;br /&gt;
&lt;br /&gt;
'''Note:''' This patch greatly increases performance of wxTextCtrl and prevents aMule from hanging under rapid logging.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
type&lt;br /&gt;
&lt;br /&gt;
 $ cd&lt;br /&gt;
&lt;br /&gt;
leave a space after the command, than drag and drop the wxMac uncompressed folder into the Terminal window: the complete path of the folder will be printed on screen. For example:&lt;br /&gt;
&lt;br /&gt;
 $ cd ~/Desktop/wxMac-2.8.10/&lt;br /&gt;
&lt;br /&gt;
Press enter.&lt;br /&gt;
Now configure and compile the package with the command:&lt;br /&gt;
&lt;br /&gt;
 $ ./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local &amp;amp;&amp;amp; make -j8&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The above command doesn't enable debug information. Debug informations allows you to submit a helpful stacktrace if [[aMule]] crashes or a sample if it hangs to the [[aMule devs|aMule developers]]. If you want to compile a debug version then you can use &amp;quot;--enable-debug --enable-debug_gdb&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Compile [[aMule]] ====&lt;br /&gt;
Download [http://www.amule.org/files/files.php?cat=42 aMule source] and extract archive into the same place of wxMac (i.e. your desktop if you are following out suggestion).&lt;br /&gt;
Open a Terminal and type:&lt;br /&gt;
&lt;br /&gt;
  $ cd&lt;br /&gt;
&lt;br /&gt;
then leave a space and drag and drop aMule uncompressed folder whose path will be printed on screen, for example:&lt;br /&gt;
&lt;br /&gt;
  $ cd ~/Desktop/aMule-2.2.4&lt;br /&gt;
&lt;br /&gt;
Press Enter. Now it's possible to configure the sources: there are several options that can be used to activate or deactivate feature during compiling. This is only an example, that provide a full feature aMule build:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --with-wx-config=../wxMac-2.8.10/wx-config  --enable-optimize --with-crypto-prefix=/opt/local \&lt;br /&gt;
  --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local --enable-cas --enable-webserver \&lt;br /&gt;
  --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon --enable-geoip \&lt;br /&gt;
  --with-geoip-lib=/opt/local/lib --with-geoip-headers=/opt/local/include --enable-geoip-static --enable-debug&lt;br /&gt;
&lt;br /&gt;
Take a look to the [[configure]] page for a complete list of options.&lt;br /&gt;
You should pay attention to these elements:&lt;br /&gt;
&lt;br /&gt;
# The given example enables debug informations. To disable them exchange the option ''--enable-debug'' with ''--disable-debug --enable-optimize''.&lt;br /&gt;
# The option ''--with-wx-config'' must point to the correct relative path of the compiled wxMac. The example assumes that aMule and wxMac folders are in the same directory (i.e. your desktop). You should also correct the wxMac folder's name according to its version (in the example is 2.8.10).&lt;br /&gt;
# The option ''--with-crypto-prefix'' should point to /usr/local/cryptopp if you compiled Crypto++ starting from its source, out of MacPorts.&lt;br /&gt;
# '''IMPORTANT!''' It seems that Mac OS version of ''ld'' tool is not able to make static library. So if you plan to run/install your compiled aMule on other Mac which doesn't have MacPorts installed you MUST remove the ''--enable-geoip-static'' option to avoid a crash when the program starts.&lt;br /&gt;
&lt;br /&gt;
Now it's time to make you packages with:&lt;br /&gt;
&lt;br /&gt;
  $ make -j8&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
  ./src/utils/scripts/mac_packager&lt;br /&gt;
&lt;br /&gt;
You should find the aMule package in the same source folder.&lt;br /&gt;
&lt;br /&gt;
=== APPENDIX: Universal Binary ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt;Warning, this section should be hardly revised since it doesn't work at all!&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If no specific options are added, the system compile the packages for the native architecture (i.e. i386 if you are using a Mac Intel or ppc for PowerPcs).&lt;br /&gt;
If you plan to distribute your package or to use it on different platform you probably want to build a [http://en.wikipedia.org/wiki/Universal_binary universal binary] app.&lt;br /&gt;
&lt;br /&gt;
To get a UB package you should &lt;br /&gt;
&lt;br /&gt;
# Install all the libraries and tools (Step 3) through MacPorts invoking the ''+universal'' variant.&lt;br /&gt;
# Attache the option &amp;quot;--enable-universal_binary&amp;quot; to the ''configure'' command of wxMac (Step 4).&lt;br /&gt;
# Add the following options to the aMule ''config'', if you are using Leopard (change &amp;quot;MacOSX10.5.sdk&amp;quot; to &amp;quot;MacOSX10.4.sdk&amp;quot; if you are using Tiger):&lt;br /&gt;
  --disable-dependency-tracking \&lt;br /&gt;
  CFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot; \&lt;br /&gt;
  CXXFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot;&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac</id>
		<title>HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac"/>
				<updated>2009-08-23T07:25:20Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: /* Step 2: Install MacPorts */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_compile_on_Mac-de|Deutsch]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-es|Espa&amp;amp;ntilde;ol]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-fr|Fran&amp;amp;ccedil;ais]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to get and install [[aMule]] on [http://www.apple.com/macosx/ Apple Mac OS X].&lt;br /&gt;
&lt;br /&gt;
# You can simply download the finished application ('binary release'); &lt;br /&gt;
# You compile it from a [[aMule SVN|SVN source snapshot]] or [http://www.amule.org/files/files.php?cat=42 stable release source].&lt;br /&gt;
&lt;br /&gt;
== Binary releases ==&lt;br /&gt;
If you don't want to bother with installing and compiling all those tools and sources, then get one of the pre-compiled [[aMule]] applications. The official release is considered 'stable', but every now and then applications are built from the current source to allow more people to test new features or the like. &lt;br /&gt;
&lt;br /&gt;
Check the Mac forum for the most recent user posted binary: [http://forum.amule.org/index.php?board=49.0 aMule forum]&lt;br /&gt;
&lt;br /&gt;
Now, to install the downloaded binary, just drag the aMule application to a folder of your choice (e.g., ''/Applications'').&lt;br /&gt;
&lt;br /&gt;
To start aMule, double-click the application icon.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You might want to take a look at the [[Mac specific usage]] article.&lt;br /&gt;
&lt;br /&gt;
== Compiling from source ==&lt;br /&gt;
Compiling from source allows most current bug reports, because you can compile and test the [[aMule SVN|SVN snapshot]] of the very day.&lt;br /&gt;
&lt;br /&gt;
To compile [[aMule]] from source you need some development tools, the [[wxWidgets]] library and the [http://www.amule.org/files/files.php?cat=42 aMule source].&lt;br /&gt;
&lt;br /&gt;
=== Get the sources and development tools ===&lt;br /&gt;
==== Step 1: Download and install [http://developer.apple.com/tools/xcode Xcode] ====&lt;br /&gt;
[http://developer.apple.com/tools/xcode Xcode] is [http://www.apple.com Apple]'s development environment. We need it for the [http://gcc.gnu.org GCC] compiler. &lt;br /&gt;
&lt;br /&gt;
You will need at least version 2.1 of Xcode, a more recent version is preferable though. You can download the most recent version of Xcode from Apple, but you will need to sign up for a free-of-charge developer account first or log-in using your iTunes Store account.&lt;br /&gt;
&lt;br /&gt;
# Get Xcode from http://developer.apple.com/tools/download&lt;br /&gt;
# &amp;quot;Member Site&amp;quot;-&amp;gt;&amp;quot;Log In&amp;quot;-&amp;gt;&amp;quot;Download Software&amp;quot;-&amp;gt;&amp;quot;Developer Tools&amp;quot;-&amp;gt;&amp;quot;Download Xcode Tools last release&amp;quot;&amp;gt;&amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install [http://www.macports.org MacPorts]====&lt;br /&gt;
[http://www.macports.org MacPorts] is an open source installer for lots of open source tools ported to [http://macos.apple.com Mac OS X]. aMule needs a few of these tools to compile properly. Alternatively, &amp;lt;del&amp;gt;you can also use [http://www.finkproject.org/ Fink] to install these tools or&amp;lt;/del&amp;gt; (Fink currently lacks many of the needed tools) you can install them manually .&lt;br /&gt;
&lt;br /&gt;
# Download the most recent version of [http://www.macports.org MacPorts]&lt;br /&gt;
# Read [http://guide.macports.org/ MacPorts' documentation] to learn how to install applications through [http://www.macports.org MacPorts].&lt;br /&gt;
&lt;br /&gt;
===== Syntax of most important commands =====&lt;br /&gt;
Packages list can be downloaded/updated through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port selfupdate&lt;br /&gt;
&lt;br /&gt;
You can upgrade all the packages installed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port upgrade installed&lt;br /&gt;
&lt;br /&gt;
Packages can be installed through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name''&lt;br /&gt;
&lt;br /&gt;
and removed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port uninstall ''package_name''&lt;br /&gt;
&lt;br /&gt;
Port variants can be invoked with the plus sign:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name'' +universal&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Install libraries and tools ====&lt;br /&gt;
&lt;br /&gt;
These are the package that provides (with dependancies) all needed libraries and tools to build [[wxWidgets]] and [[aMule]] with most of feature:&lt;br /&gt;
&lt;br /&gt;
# automake&lt;br /&gt;
# binutils&lt;br /&gt;
# flex&lt;br /&gt;
# gettext&lt;br /&gt;
# libpng&lt;br /&gt;
# libcryptopp&lt;br /&gt;
# libiconv&lt;br /&gt;
# gd2&lt;br /&gt;
# jpeg&lt;br /&gt;
# libgeoip&lt;br /&gt;
# libupnp&lt;br /&gt;
# pkgconfig&lt;br /&gt;
&lt;br /&gt;
This should be enough:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install automake binutils flex libpng libcryptopp gd2 libgeoip libupnp&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Compile [[wxWidgets|wxMac]] ====&lt;br /&gt;
[[wxWidgets|wxMac]] is the port of the [[wxWidgets]] library for [http://www.apple.com/macosx Mac OS X]. This library is used to make [[aMule]] 'multi-platform'.&lt;br /&gt;
&lt;br /&gt;
Get the source from: http://www.wxwidgets.org/downloads/ (Source Archives: wxMac) and extract the archive on your desktop.&amp;lt;br&amp;gt;&lt;br /&gt;
Download [http://trac.wxwidgets.org/raw-attachment/ticket/9012/textctrl_optimization.diff this patch file] to your desktop.&amp;lt;br&amp;gt;&lt;br /&gt;
Now open a Terminal and type&lt;br /&gt;
&lt;br /&gt;
 $ patch ~/Desktop/wxMac-2.8.10/src/mac/carbon/textctrl.cpp ~/Desktop/textctrl_optimization.diff&lt;br /&gt;
&lt;br /&gt;
'''Note:''' This patch greatly increases performance of wxTextCtrl and prevents aMule from hanging under rapid logging.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
type&lt;br /&gt;
&lt;br /&gt;
 $ cd&lt;br /&gt;
&lt;br /&gt;
leave a space after the command, than drag and drop the wxMac uncompressed folder into the Terminal window: the complete path of the folder will be printed on screen. For example:&lt;br /&gt;
&lt;br /&gt;
  $ cd ~/Desktop/wxMac-2.8.10/&lt;br /&gt;
&lt;br /&gt;
Press enter.&lt;br /&gt;
Now configure and compile the package with the command:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local &amp;amp;&amp;amp; make -j8&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The above command doesn't enable debug information. Debug informations allows you to submit a helpful stacktrace if [[aMule]] crashes or a sample if it hangs to the [[aMule devs|aMule developers]]. If you want to compile a debug version then you can use &amp;quot;--enable-debug --enable-debug_gdb&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Compile [[aMule]] ====&lt;br /&gt;
Download [http://www.amule.org/files/files.php?cat=42 aMule source] and extract archive into the same place of wxMac (i.e. your desktop if you are following out suggestion).&lt;br /&gt;
Open a Terminal and type:&lt;br /&gt;
&lt;br /&gt;
  $ cd&lt;br /&gt;
&lt;br /&gt;
then leave a space and drag and drop aMule uncompressed folder whose path will be printed on screen, for example:&lt;br /&gt;
&lt;br /&gt;
  $ cd ~/Desktop/aMule-2.2.4&lt;br /&gt;
&lt;br /&gt;
Press Enter. Now it's possible to configure the sources: there are several options that can be used to activate or deactivate feature during compiling. This is only an example, that provide a full feature aMule build:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --with-wx-config=../wxMac-2.8.10/wx-config  --enable-optimize --with-crypto-prefix=/opt/local \&lt;br /&gt;
  --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local --enable-cas --enable-webserver \&lt;br /&gt;
  --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon --enable-geoip \&lt;br /&gt;
  --with-geoip-lib=/opt/local/lib --with-geoip-headers=/opt/local/include --enable-geoip-static --enable-debug&lt;br /&gt;
&lt;br /&gt;
Take a look to the [[configure]] page for a complete list of options.&lt;br /&gt;
You should pay attention to these elements:&lt;br /&gt;
&lt;br /&gt;
# The given example enables debug informations. To disable them exchange the option ''--enable-debug'' with ''--disable-debug --enable-optimize''.&lt;br /&gt;
# The option ''--with-wx-config'' must point to the correct relative path of the compiled wxMac. The example assumes that aMule and wxMac folders are in the same directory (i.e. your desktop). You should also correct the wxMac folder's name according to its version (in the example is 2.8.10).&lt;br /&gt;
# The option ''--with-crypto-prefix'' should point to /usr/local/cryptopp if you compiled Crypto++ starting from its source, out of MacPorts.&lt;br /&gt;
# '''IMPORTANT!''' It seems that Mac OS version of ''ld'' tool is not able to make static library. So if you plan to run/install your compiled aMule on other Mac which doesn't have MacPorts installed you MUST remove the ''--enable-geoip-static'' option to avoid a crash when the program starts.&lt;br /&gt;
&lt;br /&gt;
Now it's time to make you packages with:&lt;br /&gt;
&lt;br /&gt;
  $ make -j8&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
  ./src/utils/scripts/mac_packager&lt;br /&gt;
&lt;br /&gt;
You should find the aMule package in the same source folder.&lt;br /&gt;
&lt;br /&gt;
=== APPENDIX: Universal Binary ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt;Warning, this section should be hardly revised since it doesn't work at all!&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If no specific options are added, the system compile the packages for the native architecture (i.e. i386 if you are using a Mac Intel or ppc for PowerPcs).&lt;br /&gt;
If you plan to distribute your package or to use it on different platform you probably want to build a [http://en.wikipedia.org/wiki/Universal_binary universal binary] app.&lt;br /&gt;
&lt;br /&gt;
To get a UB package you should &lt;br /&gt;
&lt;br /&gt;
# Install all the libraries and tools (Step 3) through MacPorts invoking the ''+universal'' variant.&lt;br /&gt;
# Attache the option &amp;quot;--enable-universal_binary&amp;quot; to the ''configure'' command of wxMac (Step 4).&lt;br /&gt;
# Add the following options to the aMule ''config'', if you are using Leopard (change &amp;quot;MacOSX10.5.sdk&amp;quot; to &amp;quot;MacOSX10.4.sdk&amp;quot; if you are using Tiger):&lt;br /&gt;
  --disable-dependency-tracking \&lt;br /&gt;
  CFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot; \&lt;br /&gt;
  CXXFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot;&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac</id>
		<title>HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac"/>
				<updated>2009-08-23T06:42:34Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: /* Binary releases */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_compile_on_Mac-de|Deutsch]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-es|Espa&amp;amp;ntilde;ol]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-fr|Fran&amp;amp;ccedil;ais]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to get and install [[aMule]] on [http://www.apple.com/macosx/ Apple Mac OS X].&lt;br /&gt;
&lt;br /&gt;
# You can simply download the finished application ('binary release'); &lt;br /&gt;
# You compile it from a [[aMule SVN|SVN source snapshot]] or [http://www.amule.org/files/files.php?cat=42 stable release source].&lt;br /&gt;
&lt;br /&gt;
== Binary releases ==&lt;br /&gt;
If you don't want to bother with installing and compiling all those tools and sources, then get one of the pre-compiled [[aMule]] applications. The official release is considered 'stable', but every now and then applications are built from the current source to allow more people to test new features or the like. &lt;br /&gt;
&lt;br /&gt;
Check the Mac forum for the most recent user posted binary: [http://forum.amule.org/index.php?board=49.0 aMule forum]&lt;br /&gt;
&lt;br /&gt;
Now, to install the downloaded binary, just drag the aMule application to a folder of your choice (e.g., ''/Applications'').&lt;br /&gt;
&lt;br /&gt;
To start aMule, double-click the application icon.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You might want to take a look at the [[Mac specific usage]] article.&lt;br /&gt;
&lt;br /&gt;
== Compiling from source ==&lt;br /&gt;
Compiling from source allows most current bug reports, because you can compile and test the [[aMule SVN|SVN snapshot]] of the very day.&lt;br /&gt;
&lt;br /&gt;
To compile [[aMule]] from source you need some development tools, the [[wxWidgets]] library and the [http://www.amule.org/files/files.php?cat=42 aMule source].&lt;br /&gt;
&lt;br /&gt;
=== Get the sources and development tools ===&lt;br /&gt;
==== Step 1: Download and install [http://developer.apple.com/tools/xcode Xcode] ====&lt;br /&gt;
[http://developer.apple.com/tools/xcode Xcode] is [http://www.apple.com Apple]'s development environment. We need it for the [http://gcc.gnu.org GCC] compiler. &lt;br /&gt;
&lt;br /&gt;
You will need at least version 2.1 of Xcode, a more recent version is preferable though. You can download the most recent version of Xcode from Apple, but you will need to sign up for a free-of-charge developer account first or log-in using your iTunes Store account.&lt;br /&gt;
&lt;br /&gt;
# Get Xcode from http://developer.apple.com/tools/download&lt;br /&gt;
# &amp;quot;Member Site&amp;quot;-&amp;gt;&amp;quot;Log In&amp;quot;-&amp;gt;&amp;quot;Download Software&amp;quot;-&amp;gt;&amp;quot;Developer Tools&amp;quot;-&amp;gt;&amp;quot;Download Xcode Tools last release&amp;quot;&amp;gt;&amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install [http://www.macports.org MacPorts]====&lt;br /&gt;
[http://www.macports.org MacPorts] is an open source installer for lots of open source tools ported to [http://macos.apple.com Mac OS X]. aMule needs a few of these tools to compile properly. Alternatively, &amp;lt;del&amp;gt;you can also use [http://www.finkproject.org/ Fink] to install these tools or&amp;lt;/del&amp;gt; (it seems that fink lacks many of the needed tools) you can install them manually .&lt;br /&gt;
&lt;br /&gt;
# Download the most recent version of [http://www.macports.org MacPorts]&lt;br /&gt;
# Read [http://guide.macports.org/ MacPorts' documentation] to learn how to install applications through [http://www.macports.org MacPorts].&lt;br /&gt;
&lt;br /&gt;
===== Syntax of most important commands =====&lt;br /&gt;
Packages list can be downloaded/updated through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port selfupdate&lt;br /&gt;
&lt;br /&gt;
Packages can be installed through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name''&lt;br /&gt;
&lt;br /&gt;
and removed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port uninstall ''package_name''&lt;br /&gt;
&lt;br /&gt;
Port variants can be invoked with the plus sign:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name'' +universal&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Install libraries and tools ====&lt;br /&gt;
&lt;br /&gt;
These are the package that provides (with dependancies) all needed libraries and tools to build [[wxWidgets]] and [[aMule]] with most of feature:&lt;br /&gt;
&lt;br /&gt;
# automake&lt;br /&gt;
# binutils&lt;br /&gt;
# flex&lt;br /&gt;
# gettext&lt;br /&gt;
# libpng&lt;br /&gt;
# libcryptopp&lt;br /&gt;
# libiconv&lt;br /&gt;
# gd2&lt;br /&gt;
# jpeg&lt;br /&gt;
# libgeoip&lt;br /&gt;
# libupnp&lt;br /&gt;
# pkgconfig&lt;br /&gt;
&lt;br /&gt;
This should be enough:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install automake binutils flex libpng libcryptopp gd2 libgeoip libupnp&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Compile [[wxWidgets|wxMac]] ====&lt;br /&gt;
[[wxWidgets|wxMac]] is the port of the [[wxWidgets]] library for [http://www.apple.com/macosx Mac OS X]. This library is used to make [[aMule]] 'multi-platform'.&lt;br /&gt;
&lt;br /&gt;
Get the source from: http://www.wxwidgets.org/downloads/ (Source Archives: wxMac) and extract the archive on your desktop.&amp;lt;br&amp;gt;&lt;br /&gt;
Download [http://trac.wxwidgets.org/raw-attachment/ticket/9012/textctrl_optimization.diff this patch file] to your desktop.&amp;lt;br&amp;gt;&lt;br /&gt;
Now open a Terminal and type&lt;br /&gt;
&lt;br /&gt;
 $ patch ~/Desktop/wxMac-2.8.10/src/mac/carbon/textctrl.cpp ~/Desktop/textctrl_optimization.diff&lt;br /&gt;
&lt;br /&gt;
'''Note:''' This patch greatly increases performance of wxTextCtrl and prevents aMule from hanging under rapid logging.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
type&lt;br /&gt;
&lt;br /&gt;
 $ cd&lt;br /&gt;
&lt;br /&gt;
leave a space after the command, than drag and drop the wxMac uncompressed folder into the Terminal window: the complete path of the folder will be printed on screen. For example:&lt;br /&gt;
&lt;br /&gt;
  $ cd ~/Desktop/wxMac-2.8.10/&lt;br /&gt;
&lt;br /&gt;
Press enter.&lt;br /&gt;
Now configure and compile the package with the command:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local &amp;amp;&amp;amp; make -j8&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The above command doesn't enable debug information. Debug informations allows you to submit a helpful stacktrace if [[aMule]] crashes or a sample if it hangs to the [[aMule devs|aMule developers]]. If you want to compile a debug version then you can use &amp;quot;--enable-debug --enable-debug_gdb&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Compile [[aMule]] ====&lt;br /&gt;
Download [http://www.amule.org/files/files.php?cat=42 aMule source] and extract archive into the same place of wxMac (i.e. your desktop if you are following out suggestion).&lt;br /&gt;
Open a Terminal and type:&lt;br /&gt;
&lt;br /&gt;
  $ cd&lt;br /&gt;
&lt;br /&gt;
then leave a space and drag and drop aMule uncompressed folder whose path will be printed on screen, for example:&lt;br /&gt;
&lt;br /&gt;
  $ cd ~/Desktop/aMule-2.2.4&lt;br /&gt;
&lt;br /&gt;
Press Enter. Now it's possible to configure the sources: there are several options that can be used to activate or deactivate feature during compiling. This is only an example, that provide a full feature aMule build:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --with-wx-config=../wxMac-2.8.10/wx-config  --enable-optimize --with-crypto-prefix=/opt/local \&lt;br /&gt;
  --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local --enable-cas --enable-webserver \&lt;br /&gt;
  --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon --enable-geoip \&lt;br /&gt;
  --with-geoip-lib=/opt/local/lib --with-geoip-headers=/opt/local/include --enable-geoip-static --enable-debug&lt;br /&gt;
&lt;br /&gt;
Take a look to the [[configure]] page for a complete list of options.&lt;br /&gt;
You should pay attention to these elements:&lt;br /&gt;
&lt;br /&gt;
# The given example enables debug informations. To disable them exchange the option ''--enable-debug'' with ''--disable-debug --enable-optimize''.&lt;br /&gt;
# The option ''--with-wx-config'' must point to the correct relative path of the compiled wxMac. The example assumes that aMule and wxMac folders are in the same directory (i.e. your desktop). You should also correct the wxMac folder's name according to its version (in the example is 2.8.10).&lt;br /&gt;
# The option ''--with-crypto-prefix'' should point to /usr/local/cryptopp if you compiled Crypto++ starting from its source, out of MacPorts.&lt;br /&gt;
# '''IMPORTANT!''' It seems that Mac OS version of ''ld'' tool is not able to make static library. So if you plan to run/install your compiled aMule on other Mac which doesn't have MacPorts installed you MUST remove the ''--enable-geoip-static'' option to avoid a crash when the program starts.&lt;br /&gt;
&lt;br /&gt;
Now it's time to make you packages with:&lt;br /&gt;
&lt;br /&gt;
  $ make -j8&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
  ./src/utils/scripts/mac_packager&lt;br /&gt;
&lt;br /&gt;
You should find the aMule package in the same source folder.&lt;br /&gt;
&lt;br /&gt;
=== APPENDIX: Universal Binary ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt;Warning, this section should be hardly revised since it doesn't work at all!&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If no specific options are added, the system compile the packages for the native architecture (i.e. i386 if you are using a Mac Intel or ppc for PowerPcs).&lt;br /&gt;
If you plan to distribute your package or to use it on different platform you probably want to build a [http://en.wikipedia.org/wiki/Universal_binary universal binary] app.&lt;br /&gt;
&lt;br /&gt;
To get a UB package you should &lt;br /&gt;
&lt;br /&gt;
# Install all the libraries and tools (Step 3) through MacPorts invoking the ''+universal'' variant.&lt;br /&gt;
# Attache the option &amp;quot;--enable-universal_binary&amp;quot; to the ''configure'' command of wxMac (Step 4).&lt;br /&gt;
# Add the following options to the aMule ''config'', if you are using Leopard (change &amp;quot;MacOSX10.5.sdk&amp;quot; to &amp;quot;MacOSX10.4.sdk&amp;quot; if you are using Tiger):&lt;br /&gt;
  --disable-dependency-tracking \&lt;br /&gt;
  CFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot; \&lt;br /&gt;
  CXXFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot;&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac</id>
		<title>HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac"/>
				<updated>2009-08-22T22:31:40Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: /* Binary releases */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_compile_on_Mac-de|Deutsch]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-es|Espa&amp;amp;ntilde;ol]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-fr|Fran&amp;amp;ccedil;ais]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to get and install [[aMule]] on [http://www.apple.com/macosx/ Apple Mac OS X].&lt;br /&gt;
&lt;br /&gt;
# You can simply download the finished application ('binary release'); &lt;br /&gt;
# You compile it from a [[aMule SVN|SVN source snapshot]] or [http://www.amule.org/files/files.php?cat=42 stable release source].&lt;br /&gt;
&lt;br /&gt;
== Binary releases ==&lt;br /&gt;
If you don't want to bother with installing and compiling all those tools and sources, then get one of the pre-compiled [[aMule]] applications. The official release is considered 'stable', but every now and then applications are built from the current source to allow more people to test new features or the like. &lt;br /&gt;
&lt;br /&gt;
# Check the Mac forum for the most recent user posted binary: [http://forum.amule.org/index.php?board=49.0 aMule forum]&lt;br /&gt;
&lt;br /&gt;
Now, to install the downloaded binary, just drag the aMule application to a folder of your choice (e.g., ''/Applications'').&lt;br /&gt;
&lt;br /&gt;
To start aMule, double-click the application icon.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You might want to take a look at the [[Mac specific usage]] article.&lt;br /&gt;
&lt;br /&gt;
== Compiling from source ==&lt;br /&gt;
Compiling from source allows most current bug reports, because you can compile and test the [[aMule SVN|SVN snapshot]] of the very day.&lt;br /&gt;
&lt;br /&gt;
To compile [[aMule]] from source you need some development tools, the [[wxWidgets]] library and the [http://www.amule.org/files/files.php?cat=42 aMule source].&lt;br /&gt;
&lt;br /&gt;
=== Get the sources and development tools ===&lt;br /&gt;
==== Step 1: Download and install [http://developer.apple.com/tools/xcode Xcode] ====&lt;br /&gt;
[http://developer.apple.com/tools/xcode Xcode] is [http://www.apple.com Apple]'s development environment. We need it for the [http://gcc.gnu.org GCC] compiler. &lt;br /&gt;
&lt;br /&gt;
You will need at least version 2.1 of Xcode, a more recent version is preferable though. You can download the most recent version of Xcode from Apple, but you will need to sign up for a free-of-charge developer account first or log-in using your iTunes Store account.&lt;br /&gt;
&lt;br /&gt;
# Get Xcode from http://developer.apple.com/tools/download&lt;br /&gt;
# &amp;quot;Member Site&amp;quot;-&amp;gt;&amp;quot;Log In&amp;quot;-&amp;gt;&amp;quot;Download Software&amp;quot;-&amp;gt;&amp;quot;Developer Tools&amp;quot;-&amp;gt;&amp;quot;Download Xcode Tools last release&amp;quot;&amp;gt;&amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install [http://www.macports.org MacPorts]====&lt;br /&gt;
[http://www.macports.org MacPorts] is an open source installer for lots of open source tools ported to [http://macos.apple.com Mac OS X]. aMule needs a few of these tools to compile properly. Alternatively, &amp;lt;del&amp;gt;you can also use [http://www.finkproject.org/ Fink] to install these tools or&amp;lt;/del&amp;gt; (it seems that fink lacks many of the needed tools) you can install them manually .&lt;br /&gt;
&lt;br /&gt;
# Download the most recent version of [http://www.macports.org MacPorts]&lt;br /&gt;
# Read [http://guide.macports.org/ MacPorts' documentation] to learn how to install applications through [http://www.macports.org MacPorts].&lt;br /&gt;
&lt;br /&gt;
===== Syntax of most important commands =====&lt;br /&gt;
Packages list can be downloaded/updated through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port selfupdate&lt;br /&gt;
&lt;br /&gt;
Packages can be installed through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name''&lt;br /&gt;
&lt;br /&gt;
and removed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port uninstall ''package_name''&lt;br /&gt;
&lt;br /&gt;
Port variants can be invoked with the plus sign:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name'' +universal&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Install libraries and tools ====&lt;br /&gt;
&lt;br /&gt;
These are the package that provides (with dependancies) all needed libraries and tools to build [[wxWidgets]] and [[aMule]] with most of feature:&lt;br /&gt;
&lt;br /&gt;
# automake&lt;br /&gt;
# binutils&lt;br /&gt;
# flex&lt;br /&gt;
# gettext&lt;br /&gt;
# libpng&lt;br /&gt;
# libcryptopp&lt;br /&gt;
# libiconv&lt;br /&gt;
# gd2&lt;br /&gt;
# jpeg&lt;br /&gt;
# libgeoip&lt;br /&gt;
# libupnp&lt;br /&gt;
# pkgconfig&lt;br /&gt;
&lt;br /&gt;
This should be enough:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install automake binutils flex libpng libcryptopp gd2 libgeoip libupnp&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Compile [[wxWidgets|wxMac]] ====&lt;br /&gt;
[[wxWidgets|wxMac]] is the port of the [[wxWidgets]] library for [http://www.apple.com/macosx Mac OS X]. This library is used to make [[aMule]] 'multi-platform'.&lt;br /&gt;
&lt;br /&gt;
Get the source from: http://www.wxwidgets.org/downloads/ (Source Archives: wxMac) and extract the archive on your desktop.&amp;lt;br&amp;gt;&lt;br /&gt;
Download [http://trac.wxwidgets.org/raw-attachment/ticket/9012/textctrl_optimization.diff this patch file] to your desktop.&amp;lt;br&amp;gt;&lt;br /&gt;
Now open a Terminal and type&lt;br /&gt;
&lt;br /&gt;
 $ patch ~/Desktop/wxMac-2.8.10/src/mac/carbon/textctrl.cpp ~/Desktop/textctrl_optimization.diff&lt;br /&gt;
&lt;br /&gt;
'''Note:''' This patch greatly increases performance of wxTextCtrl and prevents aMule from hanging under rapid logging.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
type&lt;br /&gt;
&lt;br /&gt;
 $ cd&lt;br /&gt;
&lt;br /&gt;
leave a space after the command, than drag and drop the wxMac uncompressed folder into the Terminal window: the complete path of the folder will be printed on screen. For example:&lt;br /&gt;
&lt;br /&gt;
  $ cd ~/Desktop/wxMac-2.8.10/&lt;br /&gt;
&lt;br /&gt;
Press enter.&lt;br /&gt;
Now configure and compile the package with the command:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local &amp;amp;&amp;amp; make -j8&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The above command doesn't enable debug information. Debug informations allows you to submit a helpful stacktrace if [[aMule]] crashes or a sample if it hangs to the [[aMule devs|aMule developers]]. If you want to compile a debug version then you can use &amp;quot;--enable-debug --enable-debug_gdb&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Compile [[aMule]] ====&lt;br /&gt;
Download [http://www.amule.org/files/files.php?cat=42 aMule source] and extract archive into the same place of wxMac (i.e. your desktop if you are following out suggestion).&lt;br /&gt;
Open a Terminal and type:&lt;br /&gt;
&lt;br /&gt;
  $ cd&lt;br /&gt;
&lt;br /&gt;
then leave a space and drag and drop aMule uncompressed folder whose path will be printed on screen, for example:&lt;br /&gt;
&lt;br /&gt;
  $ cd ~/Desktop/aMule-2.2.4&lt;br /&gt;
&lt;br /&gt;
Press Enter. Now it's possible to configure the sources: there are several options that can be used to activate or deactivate feature during compiling. This is only an example, that provide a full feature aMule build:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --with-wx-config=../wxMac-2.8.10/wx-config  --enable-optimize --with-crypto-prefix=/opt/local \&lt;br /&gt;
  --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local --enable-cas --enable-webserver \&lt;br /&gt;
  --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon --enable-geoip \&lt;br /&gt;
  --with-geoip-lib=/opt/local/lib --with-geoip-headers=/opt/local/include --enable-geoip-static --enable-debug&lt;br /&gt;
&lt;br /&gt;
Take a look to the [[configure]] page for a complete list of options.&lt;br /&gt;
You should pay attention to these elements:&lt;br /&gt;
&lt;br /&gt;
# The given example enables debug informations. To disable them exchange the option ''--enable-debug'' with ''--disable-debug --enable-optimize''.&lt;br /&gt;
# The option ''--with-wx-config'' must point to the correct relative path of the compiled wxMac. The example assumes that aMule and wxMac folders are in the same directory (i.e. your desktop). You should also correct the wxMac folder's name according to its version (in the example is 2.8.10).&lt;br /&gt;
# The option ''--with-crypto-prefix'' should point to /usr/local/cryptopp if you compiled Crypto++ starting from its source, out of MacPorts.&lt;br /&gt;
# '''IMPORTANT!''' It seems that Mac OS version of ''ld'' tool is not able to make static library. So if you plan to run/install your compiled aMule on other Mac which doesn't have MacPorts installed you MUST remove the ''--enable-geoip-static'' option to avoid a crash when the program starts.&lt;br /&gt;
&lt;br /&gt;
Now it's time to make you packages with:&lt;br /&gt;
&lt;br /&gt;
  $ make -j8&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
  ./src/utils/scripts/mac_packager&lt;br /&gt;
&lt;br /&gt;
You should find the aMule package in the same source folder.&lt;br /&gt;
&lt;br /&gt;
=== APPENDIX: Universal Binary ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt;Warning, this section should be hardly revised since it doesn't work at all!&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If no specific options are added, the system compile the packages for the native architecture (i.e. i386 if you are using a Mac Intel or ppc for PowerPcs).&lt;br /&gt;
If you plan to distribute your package or to use it on different platform you probably want to build a [http://en.wikipedia.org/wiki/Universal_binary universal binary] app.&lt;br /&gt;
&lt;br /&gt;
To get a UB package you should &lt;br /&gt;
&lt;br /&gt;
# Install all the libraries and tools (Step 3) through MacPorts invoking the ''+universal'' variant.&lt;br /&gt;
# Attache the option &amp;quot;--enable-universal_binary&amp;quot; to the ''configure'' command of wxMac (Step 4).&lt;br /&gt;
# Add the following options to the aMule ''config'', if you are using Leopard (change &amp;quot;MacOSX10.5.sdk&amp;quot; to &amp;quot;MacOSX10.4.sdk&amp;quot; if you are using Tiger):&lt;br /&gt;
  --disable-dependency-tracking \&lt;br /&gt;
  CFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot; \&lt;br /&gt;
  CXXFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot;&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/Talk:HowTo_compile_on_Mac</id>
		<title>Talk:HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/Talk:HowTo_compile_on_Mac"/>
				<updated>2009-05-05T06:45:46Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;wxWidgets from MacPorts is unusable since it misses some needed files... ;-) --[[User:Mirko.grewing|Mirko Grewing]]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Ah, good call, Mirko.grewing. Much more generic and versatile ;) --[[User:PacoBell|PacoBell]] 13:29, 28 April 2009 (CEST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Is there any reason we're not using wxWidgets from MacPorts instead of wxMac? Which is more stable/feature complete? --[[User:PacoBell|PacoBell]] 00:05, 20 April 2009 (CEST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I need to install newer versions of flex and automake to compile amule successfully on my machine. Maybe we should just add those as dependencies that should be installed through Fink. -- lionel77&lt;br /&gt;
&lt;br /&gt;
i have this:&lt;br /&gt;
port installed&lt;br /&gt;
The following ports are currently installed:&lt;br /&gt;
  autoconf @2.61_1 (active)&lt;br /&gt;
  automake @1.10.1_0 (active)&lt;br /&gt;
  expat @2.0.1_0 (active)&lt;br /&gt;
  flex @2.5.34_0 (active)&lt;br /&gt;
  gettext @0.17_3 (active)&lt;br /&gt;
  help2man @1.36.4_1 (active)&lt;br /&gt;
  libiconv @1.12_0 (active)&lt;br /&gt;
  libpng @1.2.24_0 (active)&lt;br /&gt;
  libtool @1.5.24_1 (active)&lt;br /&gt;
  m4 @1.4.10_1 (active)&lt;br /&gt;
  ncurses @5.6_0 (active)&lt;br /&gt;
  ncursesw @5.6_1 (active)&lt;br /&gt;
  p5-locale-gettext @1.05_0 (active)&lt;br /&gt;
  perl5.8 @5.8.8_1 (active)&lt;br /&gt;
  zlib @1.2.3_1 (active)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
when i tried to &amp;quot;./configure&amp;quot; amule, i got this&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
emac-bureau:amule-cvs maitedx$ ./configure --disable-systray --disable-gtk --enable-embedded_crypto    \&lt;br /&gt;
&amp;gt;            --with-wx-config=../wxMac-2.8.7/build/wx-config    \&lt;br /&gt;
&amp;gt;            --enable-cas --enable-webserver --enable-amulecmd    \&lt;br /&gt;
&amp;gt;            --enable-debug --disable-optimize --with-cryptopp=/usr/local/cryptopp&lt;br /&gt;
checking build system type... powerpc-apple-darwin9.2.0&lt;br /&gt;
checking host system type... powerpc-apple-darwin9.2.0&lt;br /&gt;
checking for a BSD-compatible install... /usr/bin/install -c&lt;br /&gt;
checking whether build environment is sane... yes&lt;br /&gt;
checking for gawk... no&lt;br /&gt;
checking for mawk... no&lt;br /&gt;
checking for nawk... no&lt;br /&gt;
checking for awk... awk&lt;br /&gt;
checking whether make sets $(MAKE)... yes&lt;br /&gt;
checking whether to enable maintainer-specific portions of Makefiles... no&lt;br /&gt;
checking for g++... g++&lt;br /&gt;
checking for C++ compiler default output file name... a.out&lt;br /&gt;
checking whether the C++ compiler works... yes&lt;br /&gt;
checking whether we are cross compiling... no&lt;br /&gt;
checking for suffix of executables... &lt;br /&gt;
checking for suffix of object files... o&lt;br /&gt;
checking whether we are using the GNU C++ compiler... yes&lt;br /&gt;
checking whether g++ accepts -g... yes&lt;br /&gt;
checking for style of include used by make... GNU&lt;br /&gt;
checking dependency style of g++... gcc3&lt;br /&gt;
checking how to run the C++ preprocessor... g++ -E&lt;br /&gt;
checking for gcc... gcc&lt;br /&gt;
checking whether we are using the GNU C compiler... yes&lt;br /&gt;
checking whether gcc accepts -g... yes&lt;br /&gt;
checking for gcc option to accept ANSI C... none needed&lt;br /&gt;
checking dependency style of gcc... gcc3&lt;br /&gt;
checking how to run the C preprocessor... gcc -E&lt;br /&gt;
checking for gawk... (cached) awk&lt;br /&gt;
checking for egrep... grep -E&lt;br /&gt;
checking whether make sets $(MAKE)... (cached) yes&lt;br /&gt;
checking for flex... flex&lt;br /&gt;
checking for yywrap in -lfl... yes&lt;br /&gt;
checking lex output file root... lex.yy&lt;br /&gt;
checking whether yytext is a pointer... yes&lt;br /&gt;
checking for a BSD-compatible install... /usr/bin/install -c&lt;br /&gt;
checking for ranlib... ranlib&lt;br /&gt;
checking for bison... bison -y&lt;br /&gt;
checking for ranlib... (cached) ranlib&lt;br /&gt;
checking for strip... strip&lt;br /&gt;
checking for ar... ar&lt;br /&gt;
checking for ld... ld&lt;br /&gt;
checking for zlib &amp;gt;= 1.1.4... yes (version 1.2.3)&lt;br /&gt;
checking for ANSI C header files... yes&lt;br /&gt;
checking for sys/types.h... yes&lt;br /&gt;
checking for sys/stat.h... yes&lt;br /&gt;
checking for stdlib.h... yes&lt;br /&gt;
checking for string.h... yes&lt;br /&gt;
checking for memory.h... yes&lt;br /&gt;
checking for strings.h... yes&lt;br /&gt;
checking for inttypes.h... yes&lt;br /&gt;
checking for stdint.h... yes&lt;br /&gt;
checking for unistd.h... yes&lt;br /&gt;
checking for gdlib-config... no&lt;br /&gt;
configure:&lt;br /&gt;
	WARNING: gd-lib &amp;gt;= 2.0.0, or a functional gd.h (from gd-devel) not found.&lt;br /&gt;
	Please check that gdlib-config is in your default path, check out&lt;br /&gt;
	LD_LIBRARY_PATH or equivalent variable.&lt;br /&gt;
	Or this might also be that your gdlib-config has other name.&lt;br /&gt;
	Please try again with --with-gdlib-config=/usr/bin/gdlib-config&lt;br /&gt;
	(replace /usr/bin/gdlib-config with a valid path to your gdlib-config).&lt;br /&gt;
	If you use compiled packages check if you have devel pack installed.&lt;br /&gt;
	To download the latest version check http://www.boutell.com/gd&lt;br /&gt;
	for sources.&lt;br /&gt;
    &lt;br /&gt;
checking for libpng-config... /opt/local/bin/libpng-config&lt;br /&gt;
checking for libpng version &amp;gt;= 1.2.0... yes (version 1.2.24)&lt;br /&gt;
checking for File::Copy... ok&lt;br /&gt;
checking whether we need the GUI... no&lt;br /&gt;
checking for exception-handling... yes&lt;br /&gt;
checking for the --with-toolkit option... will be automatically detected&lt;br /&gt;
checking for the --with-wxshared option... will be automatically detected&lt;br /&gt;
checking for the --with-wxdebug option... will be automatically detected&lt;br /&gt;
checking for the --with-wxversion option... will be automatically detected&lt;br /&gt;
checking for wx-config... ../wxMac-2.8.7/build/wx-config&lt;br /&gt;
checking for wxWidgets version &amp;gt;= 2.8.0 (--unicode=yes)... yes (version 2.8.7)&lt;br /&gt;
checking for wxWidgets static library... yes&lt;br /&gt;
checking if wxWidgets was built in DEBUG mode... yes&lt;br /&gt;
checking if wxWidgets was built in STATIC mode... yes&lt;br /&gt;
checking which wxWidgets toolkit was selected... mac&lt;br /&gt;
checking that wxWidgets has support for large files... yes&lt;br /&gt;
checking for crypto++ version &amp;gt;= 5.1... configure: error:&lt;br /&gt;
	Specifying the cryptopp source files directory for &amp;quot;--with-crypto-prefix=&amp;quot;&lt;br /&gt;
	will not work because cryptopp uses headers with the same name of system&lt;br /&gt;
	headers (e.g. zlib.h) and you must be able to distinguish the system&lt;br /&gt;
	headers from cryptopp headers in an #include directive.&lt;br /&gt;
	Please run &amp;quot;PREFIX=/home/YourUserName/usr/cryptopp make install&amp;quot; on&lt;br /&gt;
	the cryptopp directory to properly install cryptopp in your system.&lt;br /&gt;
emac-bureau:amule-cvs maitedx$ make&lt;br /&gt;
make: *** No targets specified and no makefile found.  Stop.&lt;br /&gt;
emac-bureau:amule-cvs maitedx$&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
what do i have to do ?&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/Talk:HowTo_compile_on_Mac</id>
		<title>Talk:HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/Talk:HowTo_compile_on_Mac"/>
				<updated>2009-05-05T06:44:21Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Ah, good call, Mirko.grewing. Much more generic and versatile ;) --[[User:PacoBell|PacoBell]] 13:29, 28 April 2009 (CEST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Is there any reason we're not using wxWidgets from MacPorts instead of wxMac? Which is more stable/feature complete? --[[User:PacoBell|PacoBell]] 00:05, 20 April 2009 (CEST)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I need to install newer versions of flex and automake to compile amule successfully on my machine. Maybe we should just add those as dependencies that should be installed through Fink. -- lionel77&lt;br /&gt;
&lt;br /&gt;
i have this:&lt;br /&gt;
port installed&lt;br /&gt;
The following ports are currently installed:&lt;br /&gt;
  autoconf @2.61_1 (active)&lt;br /&gt;
  automake @1.10.1_0 (active)&lt;br /&gt;
  expat @2.0.1_0 (active)&lt;br /&gt;
  flex @2.5.34_0 (active)&lt;br /&gt;
  gettext @0.17_3 (active)&lt;br /&gt;
  help2man @1.36.4_1 (active)&lt;br /&gt;
  libiconv @1.12_0 (active)&lt;br /&gt;
  libpng @1.2.24_0 (active)&lt;br /&gt;
  libtool @1.5.24_1 (active)&lt;br /&gt;
  m4 @1.4.10_1 (active)&lt;br /&gt;
  ncurses @5.6_0 (active)&lt;br /&gt;
  ncursesw @5.6_1 (active)&lt;br /&gt;
  p5-locale-gettext @1.05_0 (active)&lt;br /&gt;
  perl5.8 @5.8.8_1 (active)&lt;br /&gt;
  zlib @1.2.3_1 (active)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
when i tried to &amp;quot;./configure&amp;quot; amule, i got this&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
emac-bureau:amule-cvs maitedx$ ./configure --disable-systray --disable-gtk --enable-embedded_crypto    \&lt;br /&gt;
&amp;gt;            --with-wx-config=../wxMac-2.8.7/build/wx-config    \&lt;br /&gt;
&amp;gt;            --enable-cas --enable-webserver --enable-amulecmd    \&lt;br /&gt;
&amp;gt;            --enable-debug --disable-optimize --with-cryptopp=/usr/local/cryptopp&lt;br /&gt;
checking build system type... powerpc-apple-darwin9.2.0&lt;br /&gt;
checking host system type... powerpc-apple-darwin9.2.0&lt;br /&gt;
checking for a BSD-compatible install... /usr/bin/install -c&lt;br /&gt;
checking whether build environment is sane... yes&lt;br /&gt;
checking for gawk... no&lt;br /&gt;
checking for mawk... no&lt;br /&gt;
checking for nawk... no&lt;br /&gt;
checking for awk... awk&lt;br /&gt;
checking whether make sets $(MAKE)... yes&lt;br /&gt;
checking whether to enable maintainer-specific portions of Makefiles... no&lt;br /&gt;
checking for g++... g++&lt;br /&gt;
checking for C++ compiler default output file name... a.out&lt;br /&gt;
checking whether the C++ compiler works... yes&lt;br /&gt;
checking whether we are cross compiling... no&lt;br /&gt;
checking for suffix of executables... &lt;br /&gt;
checking for suffix of object files... o&lt;br /&gt;
checking whether we are using the GNU C++ compiler... yes&lt;br /&gt;
checking whether g++ accepts -g... yes&lt;br /&gt;
checking for style of include used by make... GNU&lt;br /&gt;
checking dependency style of g++... gcc3&lt;br /&gt;
checking how to run the C++ preprocessor... g++ -E&lt;br /&gt;
checking for gcc... gcc&lt;br /&gt;
checking whether we are using the GNU C compiler... yes&lt;br /&gt;
checking whether gcc accepts -g... yes&lt;br /&gt;
checking for gcc option to accept ANSI C... none needed&lt;br /&gt;
checking dependency style of gcc... gcc3&lt;br /&gt;
checking how to run the C preprocessor... gcc -E&lt;br /&gt;
checking for gawk... (cached) awk&lt;br /&gt;
checking for egrep... grep -E&lt;br /&gt;
checking whether make sets $(MAKE)... (cached) yes&lt;br /&gt;
checking for flex... flex&lt;br /&gt;
checking for yywrap in -lfl... yes&lt;br /&gt;
checking lex output file root... lex.yy&lt;br /&gt;
checking whether yytext is a pointer... yes&lt;br /&gt;
checking for a BSD-compatible install... /usr/bin/install -c&lt;br /&gt;
checking for ranlib... ranlib&lt;br /&gt;
checking for bison... bison -y&lt;br /&gt;
checking for ranlib... (cached) ranlib&lt;br /&gt;
checking for strip... strip&lt;br /&gt;
checking for ar... ar&lt;br /&gt;
checking for ld... ld&lt;br /&gt;
checking for zlib &amp;gt;= 1.1.4... yes (version 1.2.3)&lt;br /&gt;
checking for ANSI C header files... yes&lt;br /&gt;
checking for sys/types.h... yes&lt;br /&gt;
checking for sys/stat.h... yes&lt;br /&gt;
checking for stdlib.h... yes&lt;br /&gt;
checking for string.h... yes&lt;br /&gt;
checking for memory.h... yes&lt;br /&gt;
checking for strings.h... yes&lt;br /&gt;
checking for inttypes.h... yes&lt;br /&gt;
checking for stdint.h... yes&lt;br /&gt;
checking for unistd.h... yes&lt;br /&gt;
checking for gdlib-config... no&lt;br /&gt;
configure:&lt;br /&gt;
	WARNING: gd-lib &amp;gt;= 2.0.0, or a functional gd.h (from gd-devel) not found.&lt;br /&gt;
	Please check that gdlib-config is in your default path, check out&lt;br /&gt;
	LD_LIBRARY_PATH or equivalent variable.&lt;br /&gt;
	Or this might also be that your gdlib-config has other name.&lt;br /&gt;
	Please try again with --with-gdlib-config=/usr/bin/gdlib-config&lt;br /&gt;
	(replace /usr/bin/gdlib-config with a valid path to your gdlib-config).&lt;br /&gt;
	If you use compiled packages check if you have devel pack installed.&lt;br /&gt;
	To download the latest version check http://www.boutell.com/gd&lt;br /&gt;
	for sources.&lt;br /&gt;
    &lt;br /&gt;
checking for libpng-config... /opt/local/bin/libpng-config&lt;br /&gt;
checking for libpng version &amp;gt;= 1.2.0... yes (version 1.2.24)&lt;br /&gt;
checking for File::Copy... ok&lt;br /&gt;
checking whether we need the GUI... no&lt;br /&gt;
checking for exception-handling... yes&lt;br /&gt;
checking for the --with-toolkit option... will be automatically detected&lt;br /&gt;
checking for the --with-wxshared option... will be automatically detected&lt;br /&gt;
checking for the --with-wxdebug option... will be automatically detected&lt;br /&gt;
checking for the --with-wxversion option... will be automatically detected&lt;br /&gt;
checking for wx-config... ../wxMac-2.8.7/build/wx-config&lt;br /&gt;
checking for wxWidgets version &amp;gt;= 2.8.0 (--unicode=yes)... yes (version 2.8.7)&lt;br /&gt;
checking for wxWidgets static library... yes&lt;br /&gt;
checking if wxWidgets was built in DEBUG mode... yes&lt;br /&gt;
checking if wxWidgets was built in STATIC mode... yes&lt;br /&gt;
checking which wxWidgets toolkit was selected... mac&lt;br /&gt;
checking that wxWidgets has support for large files... yes&lt;br /&gt;
checking for crypto++ version &amp;gt;= 5.1... configure: error:&lt;br /&gt;
	Specifying the cryptopp source files directory for &amp;quot;--with-crypto-prefix=&amp;quot;&lt;br /&gt;
	will not work because cryptopp uses headers with the same name of system&lt;br /&gt;
	headers (e.g. zlib.h) and you must be able to distinguish the system&lt;br /&gt;
	headers from cryptopp headers in an #include directive.&lt;br /&gt;
	Please run &amp;quot;PREFIX=/home/YourUserName/usr/cryptopp make install&amp;quot; on&lt;br /&gt;
	the cryptopp directory to properly install cryptopp in your system.&lt;br /&gt;
emac-bureau:amule-cvs maitedx$ make&lt;br /&gt;
make: *** No targets specified and no makefile found.  Stop.&lt;br /&gt;
emac-bureau:amule-cvs maitedx$&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
what do i have to do ?&lt;br /&gt;
&lt;br /&gt;
wxWidgets from MacPorts is unusable since it misses some needed files... ;-)&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac</id>
		<title>HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac"/>
				<updated>2009-04-28T07:54:36Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: /* Step 5: Compile aMule */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_compile_on_Mac-de|Deutsch]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-es|Espa&amp;amp;ntilde;ol]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-fr|Fran&amp;amp;ccedil;ais]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to get and install [[aMule]] on [http://www.apple.com/macosx/ Apple Mac OS X].&lt;br /&gt;
&lt;br /&gt;
# You can simply download the finished application ('binary release'); &lt;br /&gt;
# You compile it from a [[aMule SVN|SVN source snapshot]] or [http://www.amule.org/files/files.php?cat=42 stable release source].&lt;br /&gt;
&lt;br /&gt;
== Binary releases ==&lt;br /&gt;
If you don't want to bother with installing and compiling all those tools and sources, then get one of the pre-compiled [[aMule]] applications. The official release is considered 'stable', but every now and then applications are built from the current source to allow more people to test new features or the like. &lt;br /&gt;
&lt;br /&gt;
# Latest official binary release: [http://www.amule.org/files/files.php?cat=30 aMule-2.2.3-Mac]&lt;br /&gt;
# Check the Mac forum for a more recent user posted binary: [http://forum.amule.org/index.php?board=49.0 aMule forum]&lt;br /&gt;
&lt;br /&gt;
Now, to install the downloaded binary, just drag the aMule application to a folder of your choice (e.g., ''/Applications'').&lt;br /&gt;
&lt;br /&gt;
To start aMule, double-click the application icon.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You might want to take a look at the [[Mac specific usage]] article.&lt;br /&gt;
&lt;br /&gt;
== Compiling from source ==&lt;br /&gt;
Compiling from source allows most current bug reports, because you can compile and test the [[aMule CVS|CVS snapshot]] of the very day.&lt;br /&gt;
&lt;br /&gt;
To compile [[aMule]] from source you need some development tools, the [[wxWidgets]] library and the [http://www.amule.org/files/files.php?cat=42 aMule source].&lt;br /&gt;
&lt;br /&gt;
=== Get the sources and development tools ===&lt;br /&gt;
==== Step 1: Download and install [http://developer.apple.com/tools/xcode Xcode] ====&lt;br /&gt;
[http://developer.apple.com/tools/xcode Xcode] is [http://www.apple.com Apple]'s development environment. We need it for the [http://gcc.gnu.org GCC] compiler. &lt;br /&gt;
&lt;br /&gt;
You will need at least version 2.1 of Xcode, a more recent version is preferable though. You can download the most recent version of Xcode from Apple, but you will need to sign up for a free-of-charge developer account first or log-in using your iTunes Store account.&lt;br /&gt;
&lt;br /&gt;
# Get Xcode from http://developer.apple.com/tools/download&lt;br /&gt;
# &amp;quot;Member Site&amp;quot;-&amp;gt;&amp;quot;Log In&amp;quot;-&amp;gt;&amp;quot;Download Software&amp;quot;-&amp;gt;&amp;quot;Developer Tools&amp;quot;-&amp;gt;&amp;quot;Download Xcode Tools last release&amp;quot;&amp;gt;&amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install [http://www.macports.org MacPorts]====&lt;br /&gt;
[http://www.macports.org MacPorts] is an open source installer for lots of open source tools ported to [http://macos.apple.com Mac OS X]. aMule needs a few of these tools to compile properly. Alternatively, &amp;lt;del&amp;gt;you can also use [http://www.finkproject.org/ Fink] to install these tools or&amp;lt;/del&amp;gt; (it seems that fink lacks many of the needed tools) you can install them manually .&lt;br /&gt;
&lt;br /&gt;
# Download the most recent version of [http://www.macports.org MacPorts]&lt;br /&gt;
# Read [http://guide.macports.org/ MacPorts' documentation] to learn how to install applications through [http://www.macports.org MacPorts].&lt;br /&gt;
&lt;br /&gt;
===== Syntax of most important commands =====&lt;br /&gt;
Packages list can be downloaded/updated through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port selfupdate&lt;br /&gt;
&lt;br /&gt;
Packages can be installed through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name''&lt;br /&gt;
&lt;br /&gt;
and removed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port uninstall ''package_name''&lt;br /&gt;
&lt;br /&gt;
Port variants can be invoked with the plus sign:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name'' +universal&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Install libraries and tools ====&lt;br /&gt;
&lt;br /&gt;
These are the package that provides (with dependancies) all needed libraries and tools to build [[wxWidgets]] and [[aMule]] with most of feature:&lt;br /&gt;
&lt;br /&gt;
# automake&lt;br /&gt;
# binutils&lt;br /&gt;
# flex&lt;br /&gt;
# gettext&lt;br /&gt;
# libpng&lt;br /&gt;
# libcryptopp&lt;br /&gt;
# libiconv&lt;br /&gt;
# gd2&lt;br /&gt;
# jpeg&lt;br /&gt;
# libgeoip&lt;br /&gt;
# libupnp&lt;br /&gt;
# pkgconfig&lt;br /&gt;
&lt;br /&gt;
This should be enough:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install automake binutils flex libpng libcryptopp gd2 libgeoip libupnp&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Compile [[wxWidgets|wxMac]] ====&lt;br /&gt;
[[wxWidgets|wxMac]] is the port of the [[wxWidgets]] library for [http://www.apple.com/macosx Mac OS X]. This library is used to make [[aMule]] 'multi-platform'.&lt;br /&gt;
&lt;br /&gt;
Get the source from: http://www.wxwidgets.org/downloads/ (Source Archives: wxMac) and extract the archive on your desktop.&amp;lt;br&amp;gt;&lt;br /&gt;
Download [http://trac.wxwidgets.org/raw-attachment/ticket/9012/textctrl_optimization.diff this patch file] to your desktop.&amp;lt;br&amp;gt;&lt;br /&gt;
Now open a Terminal and type&lt;br /&gt;
&lt;br /&gt;
 $ patch ~/Desktop/wxMac-2.8.10/src/mac/carbon/textctrl.cpp ~/Desktop/textctrl_optimization.diff&lt;br /&gt;
&lt;br /&gt;
'''Note:''' This patch greatly increases performance of wxTextCtrl and prevents aMule from hanging under rapid logging.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
type&lt;br /&gt;
&lt;br /&gt;
 $ cd&lt;br /&gt;
&lt;br /&gt;
leave a space after the command, than drag and drop the wxMac uncompressed folder into the Terminal window: the complete path of the folder will be printed on screen. For example:&lt;br /&gt;
&lt;br /&gt;
  $ cd ~/Desktop/wxMac-2.8.10/&lt;br /&gt;
&lt;br /&gt;
Press enter.&lt;br /&gt;
Now configure and compile the package with the command:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local &amp;amp;&amp;amp; make -j8&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The above command doesn't enable debug information. Debug informations allows you to submit a helpful stacktrace if [[aMule]] crashes or a sample if it hangs to the [[aMule devs|aMule developers]]. If you want to compile a debug version then you can use &amp;quot;--enable-debug --enable-debug_gdb&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Compile [[aMule]] ====&lt;br /&gt;
Download [http://www.amule.org/files/files.php?cat=42 aMule source] and extract archive into the same place of wxMac (i.e. your desktop if you are following out suggestion).&lt;br /&gt;
Open a Terminal and type:&lt;br /&gt;
&lt;br /&gt;
  $ cd&lt;br /&gt;
&lt;br /&gt;
then leave a space and drag and drop aMule uncompressed folder whose path will be printed on screen, for example:&lt;br /&gt;
&lt;br /&gt;
  $ cd ~/Desktop/aMule-2.2.4&lt;br /&gt;
&lt;br /&gt;
Press Enter. Now it's possible to configure the sources: there are several options that can be used to activate or deactivate feature during compiling. This is only an example, that provide a full feature aMule build:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-systray --disable-gtk --enable-embedded_crypto --with-wx-config=../wxMac-2.8.10/wx-config \&lt;br /&gt;
  --enable-optimize --with-crypto-prefix=/opt/local --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local  \&lt;br /&gt;
  --enable-cas --enable-webserver --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon \&lt;br /&gt;
  --enable-geoip --with-geoip-lib=/opt/local/lib --with-geoip-headers=/opt/local/include --enable-geoip-static --enable-debug --enable-debug_gdb&lt;br /&gt;
&lt;br /&gt;
Take a look to the [[configure]] page for a complete list of options.&lt;br /&gt;
You should pay attention to these elements:&lt;br /&gt;
&lt;br /&gt;
# The given example enables debug informations. To disable them change the options ''--enable-debug --enable-debug_gdb'' with ''--disable-debug --disable-debug_gdb --enable-optimize''.&lt;br /&gt;
# The option ''--with-wx-config'' must point to the correct relative path of the compiled wxMac. The example assumes that aMule and wxMac folders are in the same directory (i.e. your desktop). You should also correct the wxMac folder's name according to its version (in the example is 2.8.10).&lt;br /&gt;
# The option ''--with-crypto-prefix'' should point to /usr/local/cryptopp if you compiled Crypto++ starting from its source, out of MacPorts.&lt;br /&gt;
# '''IMPORTANT!''' It seems that Mac OS version of ''ld'' tool is not able to make static library. So if you plan to run/install your compiled aMule on other Mac which doesn't have MacPorts installed you MUST remove the ''--enable-geoip-static'' option to avoid a crash when the program starts.&lt;br /&gt;
&lt;br /&gt;
Now it's time to make you packages with:&lt;br /&gt;
&lt;br /&gt;
  $ make -j8&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
  ./src/utils/scripts/mac_packager&lt;br /&gt;
&lt;br /&gt;
You should find the aMule package in the same source folder.&lt;br /&gt;
&lt;br /&gt;
=== APPENDIX: Universal Binary ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt;Warning, this section should be hardly revised since it doesn't work at all!&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If no specific options are added, the system compile the packages for the native architecture (i.e. i386 if you are using a Mac Intel or ppc for PowerPcs).&lt;br /&gt;
If you plan to distribute your package or to use it on different platform you probably want to build a [http://en.wikipedia.org/wiki/Universal_binary universal binary] app.&lt;br /&gt;
&lt;br /&gt;
To get a UB package you should &lt;br /&gt;
&lt;br /&gt;
# Install all the libraries and tools (Step 3) through MacPorts invoking the ''+universal'' variant.&lt;br /&gt;
# Attache the option &amp;quot;--enable-universal_binary&amp;quot; to the ''configure'' command of wxMac (Step 4).&lt;br /&gt;
# Add the following options to the aMule ''config'', if you are using Leopard (change &amp;quot;MacOSX10.5.sdk&amp;quot; to &amp;quot;MacOSX10.4.sdk&amp;quot; if you are using Tiger):&lt;br /&gt;
  --disable-dependency-tracking \&lt;br /&gt;
  CFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot; \&lt;br /&gt;
  CXXFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot;&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac</id>
		<title>HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac"/>
				<updated>2009-04-28T07:54:19Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: /* Step 4: Compile wxMac */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_compile_on_Mac-de|Deutsch]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-es|Espa&amp;amp;ntilde;ol]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-fr|Fran&amp;amp;ccedil;ais]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to get and install [[aMule]] on [http://www.apple.com/macosx/ Apple Mac OS X].&lt;br /&gt;
&lt;br /&gt;
# You can simply download the finished application ('binary release'); &lt;br /&gt;
# You compile it from a [[aMule SVN|SVN source snapshot]] or [http://www.amule.org/files/files.php?cat=42 stable release source].&lt;br /&gt;
&lt;br /&gt;
== Binary releases ==&lt;br /&gt;
If you don't want to bother with installing and compiling all those tools and sources, then get one of the pre-compiled [[aMule]] applications. The official release is considered 'stable', but every now and then applications are built from the current source to allow more people to test new features or the like. &lt;br /&gt;
&lt;br /&gt;
# Latest official binary release: [http://www.amule.org/files/files.php?cat=30 aMule-2.2.3-Mac]&lt;br /&gt;
# Check the Mac forum for a more recent user posted binary: [http://forum.amule.org/index.php?board=49.0 aMule forum]&lt;br /&gt;
&lt;br /&gt;
Now, to install the downloaded binary, just drag the aMule application to a folder of your choice (e.g., ''/Applications'').&lt;br /&gt;
&lt;br /&gt;
To start aMule, double-click the application icon.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You might want to take a look at the [[Mac specific usage]] article.&lt;br /&gt;
&lt;br /&gt;
== Compiling from source ==&lt;br /&gt;
Compiling from source allows most current bug reports, because you can compile and test the [[aMule CVS|CVS snapshot]] of the very day.&lt;br /&gt;
&lt;br /&gt;
To compile [[aMule]] from source you need some development tools, the [[wxWidgets]] library and the [http://www.amule.org/files/files.php?cat=42 aMule source].&lt;br /&gt;
&lt;br /&gt;
=== Get the sources and development tools ===&lt;br /&gt;
==== Step 1: Download and install [http://developer.apple.com/tools/xcode Xcode] ====&lt;br /&gt;
[http://developer.apple.com/tools/xcode Xcode] is [http://www.apple.com Apple]'s development environment. We need it for the [http://gcc.gnu.org GCC] compiler. &lt;br /&gt;
&lt;br /&gt;
You will need at least version 2.1 of Xcode, a more recent version is preferable though. You can download the most recent version of Xcode from Apple, but you will need to sign up for a free-of-charge developer account first or log-in using your iTunes Store account.&lt;br /&gt;
&lt;br /&gt;
# Get Xcode from http://developer.apple.com/tools/download&lt;br /&gt;
# &amp;quot;Member Site&amp;quot;-&amp;gt;&amp;quot;Log In&amp;quot;-&amp;gt;&amp;quot;Download Software&amp;quot;-&amp;gt;&amp;quot;Developer Tools&amp;quot;-&amp;gt;&amp;quot;Download Xcode Tools last release&amp;quot;&amp;gt;&amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install [http://www.macports.org MacPorts]====&lt;br /&gt;
[http://www.macports.org MacPorts] is an open source installer for lots of open source tools ported to [http://macos.apple.com Mac OS X]. aMule needs a few of these tools to compile properly. Alternatively, &amp;lt;del&amp;gt;you can also use [http://www.finkproject.org/ Fink] to install these tools or&amp;lt;/del&amp;gt; (it seems that fink lacks many of the needed tools) you can install them manually .&lt;br /&gt;
&lt;br /&gt;
# Download the most recent version of [http://www.macports.org MacPorts]&lt;br /&gt;
# Read [http://guide.macports.org/ MacPorts' documentation] to learn how to install applications through [http://www.macports.org MacPorts].&lt;br /&gt;
&lt;br /&gt;
===== Syntax of most important commands =====&lt;br /&gt;
Packages list can be downloaded/updated through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port selfupdate&lt;br /&gt;
&lt;br /&gt;
Packages can be installed through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name''&lt;br /&gt;
&lt;br /&gt;
and removed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port uninstall ''package_name''&lt;br /&gt;
&lt;br /&gt;
Port variants can be invoked with the plus sign:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name'' +universal&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Install libraries and tools ====&lt;br /&gt;
&lt;br /&gt;
These are the package that provides (with dependancies) all needed libraries and tools to build [[wxWidgets]] and [[aMule]] with most of feature:&lt;br /&gt;
&lt;br /&gt;
# automake&lt;br /&gt;
# binutils&lt;br /&gt;
# flex&lt;br /&gt;
# gettext&lt;br /&gt;
# libpng&lt;br /&gt;
# libcryptopp&lt;br /&gt;
# libiconv&lt;br /&gt;
# gd2&lt;br /&gt;
# jpeg&lt;br /&gt;
# libgeoip&lt;br /&gt;
# libupnp&lt;br /&gt;
# pkgconfig&lt;br /&gt;
&lt;br /&gt;
This should be enough:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install automake binutils flex libpng libcryptopp gd2 libgeoip libupnp&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Compile [[wxWidgets|wxMac]] ====&lt;br /&gt;
[[wxWidgets|wxMac]] is the port of the [[wxWidgets]] library for [http://www.apple.com/macosx Mac OS X]. This library is used to make [[aMule]] 'multi-platform'.&lt;br /&gt;
&lt;br /&gt;
Get the source from: http://www.wxwidgets.org/downloads/ (Source Archives: wxMac) and extract the archive on your desktop.&amp;lt;br&amp;gt;&lt;br /&gt;
Download [http://trac.wxwidgets.org/raw-attachment/ticket/9012/textctrl_optimization.diff this patch file] to your desktop.&amp;lt;br&amp;gt;&lt;br /&gt;
Now open a Terminal and type&lt;br /&gt;
&lt;br /&gt;
 $ patch ~/Desktop/wxMac-2.8.10/src/mac/carbon/textctrl.cpp ~/Desktop/textctrl_optimization.diff&lt;br /&gt;
&lt;br /&gt;
'''Note:''' This patch greatly increases performance of wxTextCtrl and prevents aMule from hanging under rapid logging.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
type&lt;br /&gt;
&lt;br /&gt;
 $ cd&lt;br /&gt;
&lt;br /&gt;
leave a space after the command, than drag and drop the wxMac uncompressed folder into the Terminal window: the complete path of the folder will be printed on screen. For example:&lt;br /&gt;
&lt;br /&gt;
  $ cd ~/Desktop/wxMac-2.8.10/&lt;br /&gt;
&lt;br /&gt;
Press enter.&lt;br /&gt;
Now configure and compile the package with the command:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local &amp;amp;&amp;amp; make -j8&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The above command doesn't enable debug information. Debug informations allows you to submit a helpful stacktrace if [[aMule]] crashes or a sample if it hangs to the [[aMule devs|aMule developers]]. If you want to compile a debug version then you can use &amp;quot;--enable-debug --enable-debug_gdb&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Compile [[aMule]] ====&lt;br /&gt;
Download [http://www.amule.org/files/files.php?cat=42 aMule source] and extract archive into the same place of wxMac (i.e. your desktop if you are following out suggestion).&lt;br /&gt;
Open a Terminal and type:&lt;br /&gt;
&lt;br /&gt;
  $ cd&lt;br /&gt;
&lt;br /&gt;
then leave a space and drag and drop aMule uncompressed folder whose path will be printed on screen, for example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/aMule-2.2.4&lt;br /&gt;
&lt;br /&gt;
Press Enter. Now it's possible to configure the sources: there are several options that can be used to activate or deactivate feature during compiling. This is only an example, that provide a full feature aMule build:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-systray --disable-gtk --enable-embedded_crypto --with-wx-config=../wxMac-2.8.10/wx-config \&lt;br /&gt;
  --enable-optimize --with-crypto-prefix=/opt/local --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local  \&lt;br /&gt;
  --enable-cas --enable-webserver --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon \&lt;br /&gt;
  --enable-geoip --with-geoip-lib=/opt/local/lib --with-geoip-headers=/opt/local/include --enable-geoip-static --enable-debug --enable-debug_gdb&lt;br /&gt;
&lt;br /&gt;
Take a look to the [[configure]] page for a complete list of options.&lt;br /&gt;
You should pay attention to these elements:&lt;br /&gt;
&lt;br /&gt;
# The given example enables debug informations. To disable them change the options ''--enable-debug --enable-debug_gdb'' with ''--disable-debug --disable-debug_gdb --enable-optimize''.&lt;br /&gt;
# The option ''--with-wx-config'' must point to the correct relative path of the compiled wxMac. The example assumes that aMule and wxMac folders are in the same directory (i.e. your desktop). You should also correct the wxMac folder's name according to its version (in the example is 2.8.10).&lt;br /&gt;
# The option ''--with-crypto-prefix'' should point to /usr/local/cryptopp if you compiled Crypto++ starting from its source, out of MacPorts.&lt;br /&gt;
# '''IMPORTANT!''' It seems that Mac OS version of ''ld'' tool is not able to make static library. So if you plan to run/install your compiled aMule on other Mac which doesn't have MacPorts installed you MUST remove the ''--enable-geoip-static'' option to avoid a crash when the program starts.&lt;br /&gt;
&lt;br /&gt;
Now it's time to make you packages with:&lt;br /&gt;
&lt;br /&gt;
  $ make -j8&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
  ./src/utils/scripts/mac_packager&lt;br /&gt;
&lt;br /&gt;
You should find the aMule package in the same source folder.&lt;br /&gt;
&lt;br /&gt;
=== APPENDIX: Universal Binary ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt;Warning, this section should be hardly revised since it doesn't work at all!&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If no specific options are added, the system compile the packages for the native architecture (i.e. i386 if you are using a Mac Intel or ppc for PowerPcs).&lt;br /&gt;
If you plan to distribute your package or to use it on different platform you probably want to build a [http://en.wikipedia.org/wiki/Universal_binary universal binary] app.&lt;br /&gt;
&lt;br /&gt;
To get a UB package you should &lt;br /&gt;
&lt;br /&gt;
# Install all the libraries and tools (Step 3) through MacPorts invoking the ''+universal'' variant.&lt;br /&gt;
# Attache the option &amp;quot;--enable-universal_binary&amp;quot; to the ''configure'' command of wxMac (Step 4).&lt;br /&gt;
# Add the following options to the aMule ''config'', if you are using Leopard (change &amp;quot;MacOSX10.5.sdk&amp;quot; to &amp;quot;MacOSX10.4.sdk&amp;quot; if you are using Tiger):&lt;br /&gt;
  --disable-dependency-tracking \&lt;br /&gt;
  CFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot; \&lt;br /&gt;
  CXXFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot;&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac</id>
		<title>HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac"/>
				<updated>2009-04-21T08:05:20Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: /* APPENDIX: Universal Binary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_compile_on_Mac-de|Deutsch]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-es|Espa&amp;amp;ntilde;ol]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-fr|Fran&amp;amp;ccedil;ais]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to get and install [[aMule]] on [http://www.apple.com/macosx/ Apple Mac OS X].&lt;br /&gt;
&lt;br /&gt;
# You can simply download the finished application ('binary release'); &lt;br /&gt;
# You compile it from a [[aMule SVN|SVN source snapshot]] or [http://www.amule.org/files/files.php?cat=42 stable release source].&lt;br /&gt;
&lt;br /&gt;
== Binary releases ==&lt;br /&gt;
If you don't want to bother with installing and compiling all those tools and sources, then get one of the pre-compiled [[aMule]] applications. The official release is considered 'stable', but every now and then applications are built from the current source to allow more people to test new features or the like. &lt;br /&gt;
&lt;br /&gt;
# Latest official binary release: [http://www.amule.org/files/files.php?cat=30 aMule-2.2.3-Mac]&lt;br /&gt;
# Check the Mac forum for a more recent user posted binary: [http://forum.amule.org/index.php?board=49.0 aMule forum]&lt;br /&gt;
&lt;br /&gt;
Now, to install the downloaded binary, just drag the aMule application to a folder of your choice (e.g., ''/Applications'').&lt;br /&gt;
&lt;br /&gt;
To start aMule, double-click the application icon.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You might want to take a look at the [[Mac specific usage]] article.&lt;br /&gt;
&lt;br /&gt;
== Compiling from source ==&lt;br /&gt;
Compiling from source allows most current bug reports, because you can compile and test the [[aMule CVS|CVS snapshot]] of the very day.&lt;br /&gt;
&lt;br /&gt;
To compile [[aMule]] from source you need some development tools, the [[wxWidgets]] library and the [http://www.amule.org/files/files.php?cat=42 aMule source].&lt;br /&gt;
&lt;br /&gt;
=== Get the sources and development tools ===&lt;br /&gt;
==== Step 1: Download and install [http://developer.apple.com/tools/xcode Xcode] ====&lt;br /&gt;
[http://developer.apple.com/tools/xcode Xcode] is [http://www.apple.com Apple]'s development environment. We need it for the [http://gcc.gnu.org GCC] compiler. &lt;br /&gt;
&lt;br /&gt;
You will need at least version 2.1 of Xcode, a more recent version is preferable though. You can download the most recent version of Xcode from Apple, but you will need to sign up for a free-of-charge developer account first or log-in using your iTunes Store account.&lt;br /&gt;
&lt;br /&gt;
# Get Xcode from http://developer.apple.com/tools/download&lt;br /&gt;
# &amp;quot;Member Site&amp;quot;-&amp;gt;&amp;quot;Log In&amp;quot;-&amp;gt;&amp;quot;Download Software&amp;quot;-&amp;gt;&amp;quot;Developer Tools&amp;quot;-&amp;gt;&amp;quot;Download Xcode Tools last release&amp;quot;&amp;gt;&amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install [http://www.macports.org MacPorts]====&lt;br /&gt;
[http://www.macports.org MacPorts] is an open source installer for lots of open source tools ported to [http://macos.apple.com Mac OS X]. aMule needs a few of these tools to compile properly. Alternatively, &amp;lt;del&amp;gt;you can also use [http://www.finkproject.org/ Fink] to install these tools or&amp;lt;/del&amp;gt; (it seems that fink lacks many of the needed tools) you can install them manually .&lt;br /&gt;
&lt;br /&gt;
# Download the most recent version of [http://www.macports.org MacPorts]&lt;br /&gt;
# Read [http://guide.macports.org/ MacPorts' documentation] to learn how to install applications through [http://www.macports.org MacPorts].&lt;br /&gt;
&lt;br /&gt;
===== Syntax of most important commands =====&lt;br /&gt;
Packages list can be downloaded/updated through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port selfupdate&lt;br /&gt;
&lt;br /&gt;
Packages can be installed through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name''&lt;br /&gt;
&lt;br /&gt;
and removed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port uninstall ''package_name''&lt;br /&gt;
&lt;br /&gt;
Port variants can be invoked with the plus sign:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name'' +universal&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Install libraries and tools ====&lt;br /&gt;
&lt;br /&gt;
These are the package that provides (with dependancies) all needed libraries and tools to build [[wxWidgets]] and [[aMule]] with most of feature:&lt;br /&gt;
&lt;br /&gt;
# automake&lt;br /&gt;
# binutils&lt;br /&gt;
# flex&lt;br /&gt;
# gettext&lt;br /&gt;
# libpng&lt;br /&gt;
# libcryptopp&lt;br /&gt;
# libiconv&lt;br /&gt;
# gd2&lt;br /&gt;
# jpeg&lt;br /&gt;
# libgeoip&lt;br /&gt;
# libupnp&lt;br /&gt;
# pkgconfig&lt;br /&gt;
&lt;br /&gt;
This should be enough:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install automake binutils flex libpng libcryptopp gd2 libgeoip libupnp&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Compile [[wxWidgets|wxMac]] ====&lt;br /&gt;
[[wxWidgets|wxMac]] is the port of the [[wxWidgets]] library for [http://www.apple.com/macosx Mac OS X]. This library is used to make [[aMule]] 'multi-platform'.&lt;br /&gt;
&lt;br /&gt;
Get the source from: http://www.wxwidgets.org/downloads/ (Source Archives: wxMac) and extract the archive on your desktop.&lt;br /&gt;
Now open a Terminal and type&lt;br /&gt;
&lt;br /&gt;
 $ cd&lt;br /&gt;
&lt;br /&gt;
leave a space after the command, than drag and drop the wxMac uncompressed folder into the Terminal window: the complete path of the folder will be printed on screen. For example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/wxMac-2.8.10/&lt;br /&gt;
&lt;br /&gt;
Press enter.&lt;br /&gt;
Now configure and compile the package with the command:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local &amp;amp;&amp;amp; make -j8&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The above command doesn't enable debug information. Debug informations allows you to submit a helpful stacktrace if [[aMule]] crashes or a sample if it hangs to the [[aMule devs|aMule developers]]. If you want to compile a debug version then you can use &amp;quot;--enable-debug --enable-debug_gdb&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Compile [[aMule]] ====&lt;br /&gt;
Download [http://www.amule.org/files/files.php?cat=42 aMule source] and extract archive into the same place of wxMac (i.e. your desktop if you are following out suggestion).&lt;br /&gt;
Open a Terminal and type:&lt;br /&gt;
&lt;br /&gt;
  $ cd&lt;br /&gt;
&lt;br /&gt;
then leave a space and drag and drop aMule uncompressed folder whose path will be printed on screen, for example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/aMule-2.2.4&lt;br /&gt;
&lt;br /&gt;
Press Enter. Now it's possible to configure the sources: there are several options that can be used to activate or deactivate feature during compiling. This is only an example, that provide a full feature aMule build:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-systray --disable-gtk --enable-embedded_crypto --with-wx-config=../wxMac-2.8.10/wx-config \&lt;br /&gt;
  --enable-optimize --with-crypto-prefix=/opt/local --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local  \&lt;br /&gt;
  --enable-cas --enable-webserver --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon \&lt;br /&gt;
  --enable-geoip --with-geoip-lib=/opt/local/lib --with-geoip-headers=/opt/local/include --enable-geoip-static --enable-debug --enable-debug_gdb&lt;br /&gt;
&lt;br /&gt;
Take a look to the [[configure]] page for a complete list of options.&lt;br /&gt;
You should pay attention to these elements:&lt;br /&gt;
&lt;br /&gt;
# The given example enables debug informations. To disable them change the options ''--enable-debug --enable-debug_gdb'' with ''--disable-debug --disable-debug_gdb --enable-optimize''.&lt;br /&gt;
# The option ''--with-wx-config'' must point to the correct relative path of the compiled wxMac. The example assumes that aMule and wxMac folders are in the same directory (i.e. your desktop). You should also correct the wxMac folder's name according to its version (in the example is 2.8.10).&lt;br /&gt;
# The option ''--with-crypto-prefix'' should point to /usr/local/cryptopp if you compiled Crypto++ starting from its source, out of MacPorts.&lt;br /&gt;
# '''IMPORTANT!''' It seems that Mac OS version of ''ld'' tool is not able to make static library. So if you plan to run/install your compiled aMule on other Mac which doesn't have MacPorts installed you MUST remove the ''--enable-geoip-static'' option to avoid a crash when the program starts.&lt;br /&gt;
&lt;br /&gt;
Now it's time to make you packages with:&lt;br /&gt;
&lt;br /&gt;
  $ make -j8&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
  ./src/utils/scripts/mac_packager&lt;br /&gt;
&lt;br /&gt;
You should find the aMule package in the same source folder.&lt;br /&gt;
&lt;br /&gt;
=== APPENDIX: Universal Binary ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt;Warning, this section should be hardly revised since it doesn't work at all!&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If no specific options are added, the system compile the packages for the native architecture (i.e. i386 if you are using a Mac Intel or ppc for PowerPcs).&lt;br /&gt;
If you plan to distribute your package or to use it on different platform you probably want to build a [http://en.wikipedia.org/wiki/Universal_binary universal binary] app.&lt;br /&gt;
&lt;br /&gt;
To get a UB package you should &lt;br /&gt;
&lt;br /&gt;
# Install all the libraries and tools (Step 3) through MacPorts invoking the ''+universal'' variant.&lt;br /&gt;
# Attache the option &amp;quot;--enable-universal_binary&amp;quot; to the ''configure'' command of wxMac (Step 4).&lt;br /&gt;
# Add the following options to the aMule ''config'', if you are using Leopard (change &amp;quot;MacOSX10.5.sdk&amp;quot; to &amp;quot;MacOSX10.4.sdk&amp;quot; if you are using Tiger):&lt;br /&gt;
  --disable-dependency-tracking \&lt;br /&gt;
  CFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot; \&lt;br /&gt;
  CXXFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot;&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac</id>
		<title>HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac"/>
				<updated>2009-04-14T18:48:57Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: /* Step 3: Install libraries and tools */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_compile_on_Mac-de|Deutsch]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-es|Espa&amp;amp;ntilde;ol]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-fr|Fran&amp;amp;ccedil;ais]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to get and install [[aMule]] on [http://www.apple.com/macosx/ Apple Mac OS X].&lt;br /&gt;
&lt;br /&gt;
# You can simply download the finished application ('binary release'); &lt;br /&gt;
# You compile it from a [[aMule SVN|SVN source snapshot]] or [http://www.amule.org/files/files.php?cat=42 stable release source].&lt;br /&gt;
&lt;br /&gt;
== Binary releases ==&lt;br /&gt;
If you don't want to bother with installing and compiling all those tools and sources, then get one of the pre-compiled [[aMule]] applications. The official release is considered 'stable', but every now and then applications are built from the current source to allow more people to test new features or the like. &lt;br /&gt;
&lt;br /&gt;
# Latest official binary release: [http://www.amule.org/files/files.php?cat=30 aMule-2.1.3-Mac]&lt;br /&gt;
# Check the Mac forum for a more recent user posted binary: [http://forum.amule.org/index.php?board=49.0 aMule forum]&lt;br /&gt;
&lt;br /&gt;
Now, to install the downloaded binary, just drag the aMule application to a folder of your choice (e.g., ''/Applications'').&lt;br /&gt;
&lt;br /&gt;
To start aMule, double-click the application icon.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You might want to take a look at the [[Mac specific usage]] article.&lt;br /&gt;
&lt;br /&gt;
== Compiling from source ==&lt;br /&gt;
Compiling from source allows most current bug reports, because you can compile and test the [[aMule CVS|CVS snapshot]] of the very day.&lt;br /&gt;
&lt;br /&gt;
To compile [[aMule]] from source you need some development tools, the [[wxWidgets]] library and the [http://www.amule.org/files/files.php?cat=42 aMule source].&lt;br /&gt;
&lt;br /&gt;
=== Get the sources and development tools ===&lt;br /&gt;
==== Step 1: Download and install [http://developer.apple.com/tools/xcode Xcode] ====&lt;br /&gt;
[http://developer.apple.com/tools/xcode Xcode] is [http://www.apple.com Apple]'s development environment. We need it for the [http://gcc.gnu.org GCC] compiler. &lt;br /&gt;
&lt;br /&gt;
You will need at least version 2.1 of Xcode, a more recent version is preferable though. You can download the most recent version of Xcode from Apple, but you will need to sign up for a free-of-charge developer account first or log-in using your iTunes Store account.&lt;br /&gt;
&lt;br /&gt;
# Get Xcode from http://developer.apple.com/tools/download&lt;br /&gt;
# &amp;quot;Member Site&amp;quot;-&amp;gt;&amp;quot;Log In&amp;quot;-&amp;gt;&amp;quot;Download Software&amp;quot;-&amp;gt;&amp;quot;Developer Tools&amp;quot;-&amp;gt;&amp;quot;Download Xcode Tools last release&amp;quot;&amp;gt;&amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install [http://www.macports.org MacPorts]====&lt;br /&gt;
[http://www.macports.org MacPorts] is an open source installer for lots of open source tools ported to [http://macos.apple.com Mac OS X]. aMule needs a few of these tools to compile properly. Alternatively, &amp;lt;del&amp;gt;you can also use [http://www.finkproject.org/ Fink] to install these tools or&amp;lt;/del&amp;gt; (it seems that fink lacks many of the needed tools) you can install them manually .&lt;br /&gt;
&lt;br /&gt;
# Download the most recent version of [http://www.macports.org MacPorts]&lt;br /&gt;
# Read [http://guide.macports.org/ MacPorts' documentation] to learn how to install applications through [http://www.macports.org MacPorts].&lt;br /&gt;
&lt;br /&gt;
===== Syntax of most important commands =====&lt;br /&gt;
Packages list can be downloaded/updated through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port selfupdate&lt;br /&gt;
&lt;br /&gt;
Packages can be installed through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name''&lt;br /&gt;
&lt;br /&gt;
and removed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port uninstall ''package_name''&lt;br /&gt;
&lt;br /&gt;
Port variants can be invoked with the plus sign:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name'' +universal&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Install libraries and tools ====&lt;br /&gt;
&lt;br /&gt;
These are the package that provides (with dependancies) all needed libraries and tools to build [[wxWidgets]] and [[aMule]] with most of feature:&lt;br /&gt;
&lt;br /&gt;
# automake&lt;br /&gt;
# binutils&lt;br /&gt;
# flex&lt;br /&gt;
# gettext&lt;br /&gt;
# libpng&lt;br /&gt;
# libcryptopp&lt;br /&gt;
# libiconv&lt;br /&gt;
# gd2&lt;br /&gt;
# jpeg&lt;br /&gt;
# libgeoip&lt;br /&gt;
# libupnp&lt;br /&gt;
# pkgconfig&lt;br /&gt;
&lt;br /&gt;
This should be enough:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install automake binutils flex libpng libcryptopp gd2 libgeoip libupnp&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Compile [[wxWidgets|wxMac]] ====&lt;br /&gt;
[[wxWidgets|wxMac]] is the port of the [[wxWidgets]] library for [http://www.apple.com/macosx Mac OS X]. This library is used to make [[aMule]] 'multi-platform'.&lt;br /&gt;
&lt;br /&gt;
Get the source from: http://www.wxwidgets.org/downloads/ (Source Archives: wxMac) and extract the archive on your desktop.&lt;br /&gt;
Now open a Terminal and type&lt;br /&gt;
&lt;br /&gt;
 $ cd&lt;br /&gt;
&lt;br /&gt;
leave a space after the command, than drag and drop the wxMac uncompressed folder into the Terminal window: the complete path of the folder will be printed on screen. For example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/wxMac-2.8.10/&lt;br /&gt;
&lt;br /&gt;
Press enter.&lt;br /&gt;
Now configure and compile the package with the command:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local &amp;amp;&amp;amp; make -j8&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The above command doesn't enable debug information. Debug informations allows you to submit a helpful stacktrace if [[aMule]] crashes or a sample if it hangs to the [[aMule devs|aMule developers]]. If you want to compile a debug version then you can use &amp;quot;--enable-debug --enable-debug_gdb&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Compile [[aMule]] ====&lt;br /&gt;
Download [http://www.amule.org/files/files.php?cat=42 aMule source] and extract archive into the same place of wxMac (i.e. your desktop if you are following out suggestion).&lt;br /&gt;
Open a Terminal and type:&lt;br /&gt;
&lt;br /&gt;
  $ cd&lt;br /&gt;
&lt;br /&gt;
then leave a space and drag and drop aMule uncompressed folder whose path will be printed on screen, for example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/aMule-2.2.4&lt;br /&gt;
&lt;br /&gt;
Press Enter. Now it's possible to configure the sources: there are several options that can be used to activate or deactivate feature during compiling. This is only an example, that provide a full feature aMule build:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-systray --disable-gtk --enable-embedded_crypto --with-wx-config=../wxMac-2.8.10/wx-config \&lt;br /&gt;
  --enable-optimize --with-crypto-prefix=/opt/local --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local  \&lt;br /&gt;
  --enable-cas --enable-webserver --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon \&lt;br /&gt;
  --enable-geoip --with-geoip-lib=/opt/local/lib --with-geoip-headers=/opt/local/include --enable-geoip-static --enable-debug --enable-debug_gdb&lt;br /&gt;
&lt;br /&gt;
Take a look to the [[configure]] page for a complete list of options.&lt;br /&gt;
You should pay attention to these elements:&lt;br /&gt;
&lt;br /&gt;
# The given example enables debug informations. To disable them change the options ''--enable-debug --enable-debug_gdb'' with ''--disable-debug --disable-debug_gdb --enable-optimize''.&lt;br /&gt;
# The option ''--with-wx-config'' must point to the correct relative path of the compiled wxMac. The example assumes that aMule and wxMac folders are in the same directory (i.e. your desktop). You should also correct the wxMac folder's name according to its version (in the example is 2.8.10).&lt;br /&gt;
# The option ''--with-crypto-prefix'' should point to /usr/local/cryptopp if you compiled Crypto++ starting from its source, out of MacPorts.&lt;br /&gt;
# '''IMPORTANT!''' It seems that Mac OS version of ''ld'' tool is not able to make static library. So if you plan to run/install your compiled aMule on other Mac which doesn't have MacPorts installed you MUST remove the ''--enable-geoip-static'' option to avoid a crash when the program starts.&lt;br /&gt;
&lt;br /&gt;
Now it's time to make you packages with:&lt;br /&gt;
&lt;br /&gt;
  $ make -j8&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
  ./src/utils/scripts/mac_packager&lt;br /&gt;
&lt;br /&gt;
You should find the aMule package in the same source folder.&lt;br /&gt;
&lt;br /&gt;
=== APPENDIX: Universal Binary ===&lt;br /&gt;
&lt;br /&gt;
If no specific options are added, the system compile the packages for the native architecture (i.e. i386 if you are using a Mac Intel or ppc for PowerPcs).&lt;br /&gt;
If you plan to distribute your package or to use it on different platform you probably want to build a [http://en.wikipedia.org/wiki/Universal_binary universal binary] app.&lt;br /&gt;
&lt;br /&gt;
To get a UB package you should &lt;br /&gt;
&lt;br /&gt;
# Install all the libraries and tools (Step 3) through MacPorts invoking the ''+universal'' variant.&lt;br /&gt;
# Attache the option &amp;quot;--enable-universal_binary&amp;quot; to the ''configure'' command of wxMac (Step 4).&lt;br /&gt;
# Add the following options to the aMule ''config'', if you are using Leopard (change &amp;quot;MacOSX10.5.sdk&amp;quot; to &amp;quot;MacOSX10.4.sdk&amp;quot; if you are using Tiger):&lt;br /&gt;
  --disable-dependency-tracking \&lt;br /&gt;
  CFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot; \&lt;br /&gt;
  CXXFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot;&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac</id>
		<title>HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac"/>
				<updated>2009-04-14T18:48:42Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: /* Step 3: Install libraries and tools */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_compile_on_Mac-de|Deutsch]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-es|Espa&amp;amp;ntilde;ol]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-fr|Fran&amp;amp;ccedil;ais]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to get and install [[aMule]] on [http://www.apple.com/macosx/ Apple Mac OS X].&lt;br /&gt;
&lt;br /&gt;
# You can simply download the finished application ('binary release'); &lt;br /&gt;
# You compile it from a [[aMule SVN|SVN source snapshot]] or [http://www.amule.org/files/files.php?cat=42 stable release source].&lt;br /&gt;
&lt;br /&gt;
== Binary releases ==&lt;br /&gt;
If you don't want to bother with installing and compiling all those tools and sources, then get one of the pre-compiled [[aMule]] applications. The official release is considered 'stable', but every now and then applications are built from the current source to allow more people to test new features or the like. &lt;br /&gt;
&lt;br /&gt;
# Latest official binary release: [http://www.amule.org/files/files.php?cat=30 aMule-2.1.3-Mac]&lt;br /&gt;
# Check the Mac forum for a more recent user posted binary: [http://forum.amule.org/index.php?board=49.0 aMule forum]&lt;br /&gt;
&lt;br /&gt;
Now, to install the downloaded binary, just drag the aMule application to a folder of your choice (e.g., ''/Applications'').&lt;br /&gt;
&lt;br /&gt;
To start aMule, double-click the application icon.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You might want to take a look at the [[Mac specific usage]] article.&lt;br /&gt;
&lt;br /&gt;
== Compiling from source ==&lt;br /&gt;
Compiling from source allows most current bug reports, because you can compile and test the [[aMule CVS|CVS snapshot]] of the very day.&lt;br /&gt;
&lt;br /&gt;
To compile [[aMule]] from source you need some development tools, the [[wxWidgets]] library and the [http://www.amule.org/files/files.php?cat=42 aMule source].&lt;br /&gt;
&lt;br /&gt;
=== Get the sources and development tools ===&lt;br /&gt;
==== Step 1: Download and install [http://developer.apple.com/tools/xcode Xcode] ====&lt;br /&gt;
[http://developer.apple.com/tools/xcode Xcode] is [http://www.apple.com Apple]'s development environment. We need it for the [http://gcc.gnu.org GCC] compiler. &lt;br /&gt;
&lt;br /&gt;
You will need at least version 2.1 of Xcode, a more recent version is preferable though. You can download the most recent version of Xcode from Apple, but you will need to sign up for a free-of-charge developer account first or log-in using your iTunes Store account.&lt;br /&gt;
&lt;br /&gt;
# Get Xcode from http://developer.apple.com/tools/download&lt;br /&gt;
# &amp;quot;Member Site&amp;quot;-&amp;gt;&amp;quot;Log In&amp;quot;-&amp;gt;&amp;quot;Download Software&amp;quot;-&amp;gt;&amp;quot;Developer Tools&amp;quot;-&amp;gt;&amp;quot;Download Xcode Tools last release&amp;quot;&amp;gt;&amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install [http://www.macports.org MacPorts]====&lt;br /&gt;
[http://www.macports.org MacPorts] is an open source installer for lots of open source tools ported to [http://macos.apple.com Mac OS X]. aMule needs a few of these tools to compile properly. Alternatively, &amp;lt;del&amp;gt;you can also use [http://www.finkproject.org/ Fink] to install these tools or&amp;lt;/del&amp;gt; (it seems that fink lacks many of the needed tools) you can install them manually .&lt;br /&gt;
&lt;br /&gt;
# Download the most recent version of [http://www.macports.org MacPorts]&lt;br /&gt;
# Read [http://guide.macports.org/ MacPorts' documentation] to learn how to install applications through [http://www.macports.org MacPorts].&lt;br /&gt;
&lt;br /&gt;
===== Syntax of most important commands =====&lt;br /&gt;
Packages list can be downloaded/updated through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port selfupdate&lt;br /&gt;
&lt;br /&gt;
Packages can be installed through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name''&lt;br /&gt;
&lt;br /&gt;
and removed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port uninstall ''package_name''&lt;br /&gt;
&lt;br /&gt;
Port variants can be invoked with the plus sign:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name'' +universal&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Install libraries and tools ====&lt;br /&gt;
&lt;br /&gt;
These are the package that provides (with dependancies) all needed libraries and tools to build [[wxWidgets]] and [[aMule]] with most of feature:&lt;br /&gt;
&lt;br /&gt;
# automake&lt;br /&gt;
# binutils&lt;br /&gt;
# flex&lt;br /&gt;
# gettext&lt;br /&gt;
# libpng&lt;br /&gt;
# libcryptopp&lt;br /&gt;
# libiconv&lt;br /&gt;
# gd2&lt;br /&gt;
# jpeg&lt;br /&gt;
# libgeoip&lt;br /&gt;
# libupnp&lt;br /&gt;
# pkgconfig&lt;br /&gt;
&lt;br /&gt;
This should be enough:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install automake binutils flex libpng libcryptopp gd2 libgeoip libupnp pkgconfig&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Compile [[wxWidgets|wxMac]] ====&lt;br /&gt;
[[wxWidgets|wxMac]] is the port of the [[wxWidgets]] library for [http://www.apple.com/macosx Mac OS X]. This library is used to make [[aMule]] 'multi-platform'.&lt;br /&gt;
&lt;br /&gt;
Get the source from: http://www.wxwidgets.org/downloads/ (Source Archives: wxMac) and extract the archive on your desktop.&lt;br /&gt;
Now open a Terminal and type&lt;br /&gt;
&lt;br /&gt;
 $ cd&lt;br /&gt;
&lt;br /&gt;
leave a space after the command, than drag and drop the wxMac uncompressed folder into the Terminal window: the complete path of the folder will be printed on screen. For example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/wxMac-2.8.10/&lt;br /&gt;
&lt;br /&gt;
Press enter.&lt;br /&gt;
Now configure and compile the package with the command:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local &amp;amp;&amp;amp; make -j8&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The above command doesn't enable debug information. Debug informations allows you to submit a helpful stacktrace if [[aMule]] crashes or a sample if it hangs to the [[aMule devs|aMule developers]]. If you want to compile a debug version then you can use &amp;quot;--enable-debug --enable-debug_gdb&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Compile [[aMule]] ====&lt;br /&gt;
Download [http://www.amule.org/files/files.php?cat=42 aMule source] and extract archive into the same place of wxMac (i.e. your desktop if you are following out suggestion).&lt;br /&gt;
Open a Terminal and type:&lt;br /&gt;
&lt;br /&gt;
  $ cd&lt;br /&gt;
&lt;br /&gt;
then leave a space and drag and drop aMule uncompressed folder whose path will be printed on screen, for example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/aMule-2.2.4&lt;br /&gt;
&lt;br /&gt;
Press Enter. Now it's possible to configure the sources: there are several options that can be used to activate or deactivate feature during compiling. This is only an example, that provide a full feature aMule build:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-systray --disable-gtk --enable-embedded_crypto --with-wx-config=../wxMac-2.8.10/wx-config \&lt;br /&gt;
  --enable-optimize --with-crypto-prefix=/opt/local --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local  \&lt;br /&gt;
  --enable-cas --enable-webserver --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon \&lt;br /&gt;
  --enable-geoip --with-geoip-lib=/opt/local/lib --with-geoip-headers=/opt/local/include --enable-geoip-static --enable-debug --enable-debug_gdb&lt;br /&gt;
&lt;br /&gt;
Take a look to the [[configure]] page for a complete list of options.&lt;br /&gt;
You should pay attention to these elements:&lt;br /&gt;
&lt;br /&gt;
# The given example enables debug informations. To disable them change the options ''--enable-debug --enable-debug_gdb'' with ''--disable-debug --disable-debug_gdb --enable-optimize''.&lt;br /&gt;
# The option ''--with-wx-config'' must point to the correct relative path of the compiled wxMac. The example assumes that aMule and wxMac folders are in the same directory (i.e. your desktop). You should also correct the wxMac folder's name according to its version (in the example is 2.8.10).&lt;br /&gt;
# The option ''--with-crypto-prefix'' should point to /usr/local/cryptopp if you compiled Crypto++ starting from its source, out of MacPorts.&lt;br /&gt;
# '''IMPORTANT!''' It seems that Mac OS version of ''ld'' tool is not able to make static library. So if you plan to run/install your compiled aMule on other Mac which doesn't have MacPorts installed you MUST remove the ''--enable-geoip-static'' option to avoid a crash when the program starts.&lt;br /&gt;
&lt;br /&gt;
Now it's time to make you packages with:&lt;br /&gt;
&lt;br /&gt;
  $ make -j8&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
  ./src/utils/scripts/mac_packager&lt;br /&gt;
&lt;br /&gt;
You should find the aMule package in the same source folder.&lt;br /&gt;
&lt;br /&gt;
=== APPENDIX: Universal Binary ===&lt;br /&gt;
&lt;br /&gt;
If no specific options are added, the system compile the packages for the native architecture (i.e. i386 if you are using a Mac Intel or ppc for PowerPcs).&lt;br /&gt;
If you plan to distribute your package or to use it on different platform you probably want to build a [http://en.wikipedia.org/wiki/Universal_binary universal binary] app.&lt;br /&gt;
&lt;br /&gt;
To get a UB package you should &lt;br /&gt;
&lt;br /&gt;
# Install all the libraries and tools (Step 3) through MacPorts invoking the ''+universal'' variant.&lt;br /&gt;
# Attache the option &amp;quot;--enable-universal_binary&amp;quot; to the ''configure'' command of wxMac (Step 4).&lt;br /&gt;
# Add the following options to the aMule ''config'', if you are using Leopard (change &amp;quot;MacOSX10.5.sdk&amp;quot; to &amp;quot;MacOSX10.4.sdk&amp;quot; if you are using Tiger):&lt;br /&gt;
  --disable-dependency-tracking \&lt;br /&gt;
  CFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot; \&lt;br /&gt;
  CXXFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot;&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac</id>
		<title>HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac"/>
				<updated>2009-04-14T18:36:50Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: /* Step 3: Install libraries and tools */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_compile_on_Mac-de|Deutsch]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-es|Espa&amp;amp;ntilde;ol]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-fr|Fran&amp;amp;ccedil;ais]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to get and install [[aMule]] on [http://www.apple.com/macosx/ Apple Mac OS X].&lt;br /&gt;
&lt;br /&gt;
# You can simply download the finished application ('binary release'); &lt;br /&gt;
# You compile it from a [[aMule SVN|SVN source snapshot]] or [http://www.amule.org/files/files.php?cat=42 stable release source].&lt;br /&gt;
&lt;br /&gt;
== Binary releases ==&lt;br /&gt;
If you don't want to bother with installing and compiling all those tools and sources, then get one of the pre-compiled [[aMule]] applications. The official release is considered 'stable', but every now and then applications are built from the current source to allow more people to test new features or the like. &lt;br /&gt;
&lt;br /&gt;
# Latest official binary release: [http://www.amule.org/files/files.php?cat=30 aMule-2.1.3-Mac]&lt;br /&gt;
# Check the Mac forum for a more recent user posted binary: [http://forum.amule.org/index.php?board=49.0 aMule forum]&lt;br /&gt;
&lt;br /&gt;
Now, to install the downloaded binary, just drag the aMule application to a folder of your choice (e.g., ''/Applications'').&lt;br /&gt;
&lt;br /&gt;
To start aMule, double-click the application icon.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You might want to take a look at the [[Mac specific usage]] article.&lt;br /&gt;
&lt;br /&gt;
== Compiling from source ==&lt;br /&gt;
Compiling from source allows most current bug reports, because you can compile and test the [[aMule CVS|CVS snapshot]] of the very day.&lt;br /&gt;
&lt;br /&gt;
To compile [[aMule]] from source you need some development tools, the [[wxWidgets]] library and the [http://www.amule.org/files/files.php?cat=42 aMule source].&lt;br /&gt;
&lt;br /&gt;
=== Get the sources and development tools ===&lt;br /&gt;
==== Step 1: Download and install [http://developer.apple.com/tools/xcode Xcode] ====&lt;br /&gt;
[http://developer.apple.com/tools/xcode Xcode] is [http://www.apple.com Apple]'s development environment. We need it for the [http://gcc.gnu.org GCC] compiler. &lt;br /&gt;
&lt;br /&gt;
You will need at least version 2.1 of Xcode, a more recent version is preferable though. You can download the most recent version of Xcode from Apple, but you will need to sign up for a free-of-charge developer account first or log-in using your iTunes Store account.&lt;br /&gt;
&lt;br /&gt;
# Get Xcode from http://developer.apple.com/tools/download&lt;br /&gt;
# &amp;quot;Member Site&amp;quot;-&amp;gt;&amp;quot;Log In&amp;quot;-&amp;gt;&amp;quot;Download Software&amp;quot;-&amp;gt;&amp;quot;Developer Tools&amp;quot;-&amp;gt;&amp;quot;Download Xcode Tools last release&amp;quot;&amp;gt;&amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install [http://www.macports.org MacPorts]====&lt;br /&gt;
[http://www.macports.org MacPorts] is an open source installer for lots of open source tools ported to [http://macos.apple.com Mac OS X]. aMule needs a few of these tools to compile properly. Alternatively, &amp;lt;del&amp;gt;you can also use [http://www.finkproject.org/ Fink] to install these tools or&amp;lt;/del&amp;gt; (it seems that fink lacks many of the needed tools) you can install them manually .&lt;br /&gt;
&lt;br /&gt;
# Download the most recent version of [http://www.macports.org MacPorts]&lt;br /&gt;
# Read [http://guide.macports.org/ MacPorts' documentation] to learn how to install applications through [http://www.macports.org MacPorts].&lt;br /&gt;
&lt;br /&gt;
===== Syntax of most important commands =====&lt;br /&gt;
Packages list can be downloaded/updated through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port selfupdate&lt;br /&gt;
&lt;br /&gt;
Packages can be installed through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name''&lt;br /&gt;
&lt;br /&gt;
and removed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port uninstall ''package_name''&lt;br /&gt;
&lt;br /&gt;
Port variants can be invoked with the plus sign:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name'' +universal&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Install libraries and tools ====&lt;br /&gt;
&lt;br /&gt;
These are the package that provides (with dependancies) all needed libraries and tools to build [[wxWidgets]] and [[aMule]] with most of feature:&lt;br /&gt;
&lt;br /&gt;
# automake&lt;br /&gt;
# binutils&lt;br /&gt;
# flex&lt;br /&gt;
# gettext&lt;br /&gt;
# libpng&lt;br /&gt;
# libcryptopp&lt;br /&gt;
# libiconv&lt;br /&gt;
# gd2&lt;br /&gt;
# jpeg&lt;br /&gt;
# libgeoip&lt;br /&gt;
# libupnp&lt;br /&gt;
# pkgconfig&lt;br /&gt;
&lt;br /&gt;
This should be enough:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install automake binutils flex libpng libcryptopp gd2 jpeg libgeoip libupnp pkgconfig&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Compile [[wxWidgets|wxMac]] ====&lt;br /&gt;
[[wxWidgets|wxMac]] is the port of the [[wxWidgets]] library for [http://www.apple.com/macosx Mac OS X]. This library is used to make [[aMule]] 'multi-platform'.&lt;br /&gt;
&lt;br /&gt;
Get the source from: http://www.wxwidgets.org/downloads/ (Source Archives: wxMac) and extract the archive on your desktop.&lt;br /&gt;
Now open a Terminal and type&lt;br /&gt;
&lt;br /&gt;
 $ cd&lt;br /&gt;
&lt;br /&gt;
leave a space after the command, than drag and drop the wxMac uncompressed folder into the Terminal window: the complete path of the folder will be printed on screen. For example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/wxMac-2.8.10/&lt;br /&gt;
&lt;br /&gt;
Press enter.&lt;br /&gt;
Now configure and compile the package with the command:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local &amp;amp;&amp;amp; make -j8&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The above command doesn't enable debug information. Debug informations allows you to submit a helpful stacktrace if [[aMule]] crashes or a sample if it hangs to the [[aMule devs|aMule developers]]. If you want to compile a debug version then you can use &amp;quot;--enable-debug --enable-debug_gdb&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Compile [[aMule]] ====&lt;br /&gt;
Download [http://www.amule.org/files/files.php?cat=42 aMule source] and extract archive into the same place of wxMac (i.e. your desktop if you are following out suggestion).&lt;br /&gt;
Open a Terminal and type:&lt;br /&gt;
&lt;br /&gt;
  $ cd&lt;br /&gt;
&lt;br /&gt;
then leave a space and drag and drop aMule uncompressed folder whose path will be printed on screen, for example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/aMule-2.2.4&lt;br /&gt;
&lt;br /&gt;
Press Enter. Now it's possible to configure the sources: there are several options that can be used to activate or deactivate feature during compiling. This is only an example, that provide a full feature aMule build:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-systray --disable-gtk --enable-embedded_crypto --with-wx-config=../wxMac-2.8.10/wx-config \&lt;br /&gt;
  --enable-optimize --with-crypto-prefix=/opt/local --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local  \&lt;br /&gt;
  --enable-cas --enable-webserver --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon \&lt;br /&gt;
  --enable-geoip --with-geoip-lib=/opt/local/lib --with-geoip-headers=/opt/local/include --enable-geoip-static --enable-debug --enable-debug_gdb&lt;br /&gt;
&lt;br /&gt;
Take a look to the [[configure]] page for a complete list of options.&lt;br /&gt;
You should pay attention to these elements:&lt;br /&gt;
&lt;br /&gt;
# The given example enables debug informations. To disable them change the options ''--enable-debug --enable-debug_gdb'' with ''--disable-debug --disable-debug_gdb --enable-optimize''.&lt;br /&gt;
# The option ''--with-wx-config'' must point to the correct relative path of the compiled wxMac. The example assumes that aMule and wxMac folders are in the same directory (i.e. your desktop). You should also correct the wxMac folder's name according to its version (in the example is 2.8.10).&lt;br /&gt;
# The option ''--with-crypto-prefix'' should point to /usr/local/cryptopp if you compiled Crypto++ starting from its source, out of MacPorts.&lt;br /&gt;
# '''IMPORTANT!''' It seems that Mac OS version of ''ld'' tool is not able to make static library. So if you plan to run/install your compiled aMule on other Mac which doesn't have MacPorts installed you MUST remove the ''--enable-geoip-static'' option to avoid a crash when the program starts.&lt;br /&gt;
&lt;br /&gt;
Now it's time to make you packages with:&lt;br /&gt;
&lt;br /&gt;
  $ make -j8&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
  ./src/utils/scripts/mac_packager&lt;br /&gt;
&lt;br /&gt;
You should find the aMule package in the same source folder.&lt;br /&gt;
&lt;br /&gt;
=== APPENDIX: Universal Binary ===&lt;br /&gt;
&lt;br /&gt;
If no specific options are added, the system compile the packages for the native architecture (i.e. i386 if you are using a Mac Intel or ppc for PowerPcs).&lt;br /&gt;
If you plan to distribute your package or to use it on different platform you probably want to build a [http://en.wikipedia.org/wiki/Universal_binary universal binary] app.&lt;br /&gt;
&lt;br /&gt;
To get a UB package you should &lt;br /&gt;
&lt;br /&gt;
# Install all the libraries and tools (Step 3) through MacPorts invoking the ''+universal'' variant.&lt;br /&gt;
# Attache the option &amp;quot;--enable-universal_binary&amp;quot; to the ''configure'' command of wxMac (Step 4).&lt;br /&gt;
# Add the following options to the aMule ''config'', if you are using Leopard (change &amp;quot;MacOSX10.5.sdk&amp;quot; to &amp;quot;MacOSX10.4.sdk&amp;quot; if you are using Tiger):&lt;br /&gt;
  --disable-dependency-tracking \&lt;br /&gt;
  CFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot; \&lt;br /&gt;
  CXXFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot;&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac</id>
		<title>HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac"/>
				<updated>2009-04-14T18:32:48Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: /* Step 3: Install libraries and tools */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_compile_on_Mac-de|Deutsch]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-es|Espa&amp;amp;ntilde;ol]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-fr|Fran&amp;amp;ccedil;ais]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to get and install [[aMule]] on [http://www.apple.com/macosx/ Apple Mac OS X].&lt;br /&gt;
&lt;br /&gt;
# You can simply download the finished application ('binary release'); &lt;br /&gt;
# You compile it from a [[aMule SVN|SVN source snapshot]] or [http://www.amule.org/files/files.php?cat=42 stable release source].&lt;br /&gt;
&lt;br /&gt;
== Binary releases ==&lt;br /&gt;
If you don't want to bother with installing and compiling all those tools and sources, then get one of the pre-compiled [[aMule]] applications. The official release is considered 'stable', but every now and then applications are built from the current source to allow more people to test new features or the like. &lt;br /&gt;
&lt;br /&gt;
# Latest official binary release: [http://www.amule.org/files/files.php?cat=30 aMule-2.1.3-Mac]&lt;br /&gt;
# Check the Mac forum for a more recent user posted binary: [http://forum.amule.org/index.php?board=49.0 aMule forum]&lt;br /&gt;
&lt;br /&gt;
Now, to install the downloaded binary, just drag the aMule application to a folder of your choice (e.g., ''/Applications'').&lt;br /&gt;
&lt;br /&gt;
To start aMule, double-click the application icon.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You might want to take a look at the [[Mac specific usage]] article.&lt;br /&gt;
&lt;br /&gt;
== Compiling from source ==&lt;br /&gt;
Compiling from source allows most current bug reports, because you can compile and test the [[aMule CVS|CVS snapshot]] of the very day.&lt;br /&gt;
&lt;br /&gt;
To compile [[aMule]] from source you need some development tools, the [[wxWidgets]] library and the [http://www.amule.org/files/files.php?cat=42 aMule source].&lt;br /&gt;
&lt;br /&gt;
=== Get the sources and development tools ===&lt;br /&gt;
==== Step 1: Download and install [http://developer.apple.com/tools/xcode Xcode] ====&lt;br /&gt;
[http://developer.apple.com/tools/xcode Xcode] is [http://www.apple.com Apple]'s development environment. We need it for the [http://gcc.gnu.org GCC] compiler. &lt;br /&gt;
&lt;br /&gt;
You will need at least version 2.1 of Xcode, a more recent version is preferable though. You can download the most recent version of Xcode from Apple, but you will need to sign up for a free-of-charge developer account first or log-in using your iTunes Store account.&lt;br /&gt;
&lt;br /&gt;
# Get Xcode from http://developer.apple.com/tools/download&lt;br /&gt;
# &amp;quot;Member Site&amp;quot;-&amp;gt;&amp;quot;Log In&amp;quot;-&amp;gt;&amp;quot;Download Software&amp;quot;-&amp;gt;&amp;quot;Developer Tools&amp;quot;-&amp;gt;&amp;quot;Download Xcode Tools last release&amp;quot;&amp;gt;&amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install [http://www.macports.org MacPorts]====&lt;br /&gt;
[http://www.macports.org MacPorts] is an open source installer for lots of open source tools ported to [http://macos.apple.com Mac OS X]. aMule needs a few of these tools to compile properly. Alternatively, &amp;lt;del&amp;gt;you can also use [http://www.finkproject.org/ Fink] to install these tools or&amp;lt;/del&amp;gt; (it seems that fink lacks many of the needed tools) you can install them manually .&lt;br /&gt;
&lt;br /&gt;
# Download the most recent version of [http://www.macports.org MacPorts]&lt;br /&gt;
# Read [http://guide.macports.org/ MacPorts' documentation] to learn how to install applications through [http://www.macports.org MacPorts].&lt;br /&gt;
&lt;br /&gt;
===== Syntax of most important commands =====&lt;br /&gt;
Packages list can be downloaded/updated through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port selfupdate&lt;br /&gt;
&lt;br /&gt;
Packages can be installed through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name''&lt;br /&gt;
&lt;br /&gt;
and removed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port uninstall ''package_name''&lt;br /&gt;
&lt;br /&gt;
Port variants can be invoked with the plus sign:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name'' +universal&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Install libraries and tools ====&lt;br /&gt;
&lt;br /&gt;
These are the package that provides (with dependancies) all needed libraries and tools to build [[wxWidgets]] and [[aMule]] with most of feature:&lt;br /&gt;
&lt;br /&gt;
# automake&lt;br /&gt;
# binutils&lt;br /&gt;
# flex&lt;br /&gt;
# libpng&lt;br /&gt;
# libcryptopp&lt;br /&gt;
# libiconv&lt;br /&gt;
# gd2&lt;br /&gt;
# jpeg&lt;br /&gt;
# libgeoip&lt;br /&gt;
# libupnp&lt;br /&gt;
# pkgconfig&lt;br /&gt;
&lt;br /&gt;
You can copy and paste this line:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install automake binutils flex libpng libcryptopp libiconv gd2 jpeg libgeoip libupnp pkgconfig&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Compile [[wxWidgets|wxMac]] ====&lt;br /&gt;
[[wxWidgets|wxMac]] is the port of the [[wxWidgets]] library for [http://www.apple.com/macosx Mac OS X]. This library is used to make [[aMule]] 'multi-platform'.&lt;br /&gt;
&lt;br /&gt;
Get the source from: http://www.wxwidgets.org/downloads/ (Source Archives: wxMac) and extract the archive on your desktop.&lt;br /&gt;
Now open a Terminal and type&lt;br /&gt;
&lt;br /&gt;
 $ cd&lt;br /&gt;
&lt;br /&gt;
leave a space after the command, than drag and drop the wxMac uncompressed folder into the Terminal window: the complete path of the folder will be printed on screen. For example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/wxMac-2.8.10/&lt;br /&gt;
&lt;br /&gt;
Press enter.&lt;br /&gt;
Now configure and compile the package with the command:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local &amp;amp;&amp;amp; make -j8&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The above command doesn't enable debug information. Debug informations allows you to submit a helpful stacktrace if [[aMule]] crashes or a sample if it hangs to the [[aMule devs|aMule developers]]. If you want to compile a debug version then you can use &amp;quot;--enable-debug --enable-debug_gdb&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Compile [[aMule]] ====&lt;br /&gt;
Download [http://www.amule.org/files/files.php?cat=42 aMule source] and extract archive into the same place of wxMac (i.e. your desktop if you are following out suggestion).&lt;br /&gt;
Open a Terminal and type:&lt;br /&gt;
&lt;br /&gt;
  $ cd&lt;br /&gt;
&lt;br /&gt;
then leave a space and drag and drop aMule uncompressed folder whose path will be printed on screen, for example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/aMule-2.2.4&lt;br /&gt;
&lt;br /&gt;
Press Enter. Now it's possible to configure the sources: there are several options that can be used to activate or deactivate feature during compiling. This is only an example, that provide a full feature aMule build:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-systray --disable-gtk --enable-embedded_crypto --with-wx-config=../wxMac-2.8.10/wx-config \&lt;br /&gt;
  --enable-optimize --with-crypto-prefix=/opt/local --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local  \&lt;br /&gt;
  --enable-cas --enable-webserver --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon \&lt;br /&gt;
  --enable-geoip --with-geoip-lib=/opt/local/lib --with-geoip-headers=/opt/local/include --enable-geoip-static --enable-debug --enable-debug_gdb&lt;br /&gt;
&lt;br /&gt;
Take a look to the [[configure]] page for a complete list of options.&lt;br /&gt;
You should pay attention to these elements:&lt;br /&gt;
&lt;br /&gt;
# The given example enables debug informations. To disable them change the options ''--enable-debug --enable-debug_gdb'' with ''--disable-debug --disable-debug_gdb --enable-optimize''.&lt;br /&gt;
# The option ''--with-wx-config'' must point to the correct relative path of the compiled wxMac. The example assumes that aMule and wxMac folders are in the same directory (i.e. your desktop). You should also correct the wxMac folder's name according to its version (in the example is 2.8.10).&lt;br /&gt;
# The option ''--with-crypto-prefix'' should point to /usr/local/cryptopp if you compiled Crypto++ starting from its source, out of MacPorts.&lt;br /&gt;
# '''IMPORTANT!''' It seems that Mac OS version of ''ld'' tool is not able to make static library. So if you plan to run/install your compiled aMule on other Mac which doesn't have MacPorts installed you MUST remove the ''--enable-geoip-static'' option to avoid a crash when the program starts.&lt;br /&gt;
&lt;br /&gt;
Now it's time to make you packages with:&lt;br /&gt;
&lt;br /&gt;
  $ make -j8&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
  ./src/utils/scripts/mac_packager&lt;br /&gt;
&lt;br /&gt;
You should find the aMule package in the same source folder.&lt;br /&gt;
&lt;br /&gt;
=== APPENDIX: Universal Binary ===&lt;br /&gt;
&lt;br /&gt;
If no specific options are added, the system compile the packages for the native architecture (i.e. i386 if you are using a Mac Intel or ppc for PowerPcs).&lt;br /&gt;
If you plan to distribute your package or to use it on different platform you probably want to build a [http://en.wikipedia.org/wiki/Universal_binary universal binary] app.&lt;br /&gt;
&lt;br /&gt;
To get a UB package you should &lt;br /&gt;
&lt;br /&gt;
# Install all the libraries and tools (Step 3) through MacPorts invoking the ''+universal'' variant.&lt;br /&gt;
# Attache the option &amp;quot;--enable-universal_binary&amp;quot; to the ''configure'' command of wxMac (Step 4).&lt;br /&gt;
# Add the following options to the aMule ''config'', if you are using Leopard (change &amp;quot;MacOSX10.5.sdk&amp;quot; to &amp;quot;MacOSX10.4.sdk&amp;quot; if you are using Tiger):&lt;br /&gt;
  --disable-dependency-tracking \&lt;br /&gt;
  CFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot; \&lt;br /&gt;
  CXXFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot;&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac</id>
		<title>HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac"/>
				<updated>2009-04-14T17:52:17Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: /* Step 3: Install libraries and tools */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_compile_on_Mac-de|Deutsch]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-es|Espa&amp;amp;ntilde;ol]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-fr|Fran&amp;amp;ccedil;ais]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to get and install [[aMule]] on [http://www.apple.com/macosx/ Apple Mac OS X].&lt;br /&gt;
&lt;br /&gt;
# You can simply download the finished application ('binary release'); &lt;br /&gt;
# You compile it from a [[aMule SVN|SVN source snapshot]] or [http://www.amule.org/files/files.php?cat=42 stable release source].&lt;br /&gt;
&lt;br /&gt;
== Binary releases ==&lt;br /&gt;
If you don't want to bother with installing and compiling all those tools and sources, then get one of the pre-compiled [[aMule]] applications. The official release is considered 'stable', but every now and then applications are built from the current source to allow more people to test new features or the like. &lt;br /&gt;
&lt;br /&gt;
# Latest official binary release: [http://www.amule.org/files/files.php?cat=30 aMule-2.1.3-Mac]&lt;br /&gt;
# Check the Mac forum for a more recent user posted binary: [http://forum.amule.org/index.php?board=49.0 aMule forum]&lt;br /&gt;
&lt;br /&gt;
Now, to install the downloaded binary, just drag the aMule application to a folder of your choice (e.g., ''/Applications'').&lt;br /&gt;
&lt;br /&gt;
To start aMule, double-click the application icon.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You might want to take a look at the [[Mac specific usage]] article.&lt;br /&gt;
&lt;br /&gt;
== Compiling from source ==&lt;br /&gt;
Compiling from source allows most current bug reports, because you can compile and test the [[aMule CVS|CVS snapshot]] of the very day.&lt;br /&gt;
&lt;br /&gt;
To compile [[aMule]] from source you need some development tools, the [[wxWidgets]] library and the [http://www.amule.org/files/files.php?cat=42 aMule source].&lt;br /&gt;
&lt;br /&gt;
=== Get the sources and development tools ===&lt;br /&gt;
==== Step 1: Download and install [http://developer.apple.com/tools/xcode Xcode] ====&lt;br /&gt;
[http://developer.apple.com/tools/xcode Xcode] is [http://www.apple.com Apple]'s development environment. We need it for the [http://gcc.gnu.org GCC] compiler. &lt;br /&gt;
&lt;br /&gt;
You will need at least version 2.1 of Xcode, a more recent version is preferable though. You can download the most recent version of Xcode from Apple, but you will need to sign up for a free-of-charge developer account first or log-in using your iTunes Store account.&lt;br /&gt;
&lt;br /&gt;
# Get Xcode from http://developer.apple.com/tools/download&lt;br /&gt;
# &amp;quot;Member Site&amp;quot;-&amp;gt;&amp;quot;Log In&amp;quot;-&amp;gt;&amp;quot;Download Software&amp;quot;-&amp;gt;&amp;quot;Developer Tools&amp;quot;-&amp;gt;&amp;quot;Download Xcode Tools last release&amp;quot;&amp;gt;&amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install [http://www.macports.org MacPorts]====&lt;br /&gt;
[http://www.macports.org MacPorts] is an open source installer for lots of open source tools ported to [http://macos.apple.com Mac OS X]. aMule needs a few of these tools to compile properly. Alternatively, &amp;lt;del&amp;gt;you can also use [http://www.finkproject.org/ Fink] to install these tools or&amp;lt;/del&amp;gt; (it seems that fink lacks many of the needed tools) you can install them manually .&lt;br /&gt;
&lt;br /&gt;
# Download the most recent version of [http://www.macports.org MacPorts]&lt;br /&gt;
# Read [http://guide.macports.org/ MacPorts' documentation] to learn how to install applications through [http://www.macports.org MacPorts].&lt;br /&gt;
&lt;br /&gt;
===== Syntax of most important commands =====&lt;br /&gt;
Packages list can be downloaded/updated through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port selfupdate&lt;br /&gt;
&lt;br /&gt;
Packages can be installed through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name''&lt;br /&gt;
&lt;br /&gt;
and removed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port uninstall ''package_name''&lt;br /&gt;
&lt;br /&gt;
Port variants can be invoked with the plus sign:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name'' +universal&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Install libraries and tools ====&lt;br /&gt;
&lt;br /&gt;
These are the package that provides (with dependancies) all needed libraries and tools to build [[wxWidgets]] and [[aMule]] with most of feature:&lt;br /&gt;
&lt;br /&gt;
# automake&lt;br /&gt;
# binutils&lt;br /&gt;
# flex&lt;br /&gt;
# gettext&lt;br /&gt;
# libpng&lt;br /&gt;
# libcryptopp&lt;br /&gt;
# libiconv&lt;br /&gt;
# gd2&lt;br /&gt;
# jpeg&lt;br /&gt;
# libgeoip&lt;br /&gt;
# libupnp&lt;br /&gt;
# pkgconfig&lt;br /&gt;
&lt;br /&gt;
You can copy and paste this line:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install automake binutils flex gettext libpng libcryptopp libiconv gd2 jpeg libgeoip libupnp pkgconfig&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Compile [[wxWidgets|wxMac]] ====&lt;br /&gt;
[[wxWidgets|wxMac]] is the port of the [[wxWidgets]] library for [http://www.apple.com/macosx Mac OS X]. This library is used to make [[aMule]] 'multi-platform'.&lt;br /&gt;
&lt;br /&gt;
Get the source from: http://www.wxwidgets.org/downloads/ (Source Archives: wxMac) and extract the archive on your desktop.&lt;br /&gt;
Now open a Terminal and type&lt;br /&gt;
&lt;br /&gt;
 $ cd&lt;br /&gt;
&lt;br /&gt;
leave a space after the command, than drag and drop the wxMac uncompressed folder into the Terminal window: the complete path of the folder will be printed on screen. For example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/wxMac-2.8.10/&lt;br /&gt;
&lt;br /&gt;
Press enter.&lt;br /&gt;
Now configure and compile the package with the command:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local &amp;amp;&amp;amp; make -j8&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The above command doesn't enable debug information. Debug informations allows you to submit a helpful stacktrace if [[aMule]] crashes or a sample if it hangs to the [[aMule devs|aMule developers]]. If you want to compile a debug version then you can use &amp;quot;--enable-debug --enable-debug_gdb&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Compile [[aMule]] ====&lt;br /&gt;
Download [http://www.amule.org/files/files.php?cat=42 aMule source] and extract archive into the same place of wxMac (i.e. your desktop if you are following out suggestion).&lt;br /&gt;
Open a Terminal and type:&lt;br /&gt;
&lt;br /&gt;
  $ cd&lt;br /&gt;
&lt;br /&gt;
then leave a space and drag and drop aMule uncompressed folder whose path will be printed on screen, for example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/aMule-2.2.4&lt;br /&gt;
&lt;br /&gt;
Press Enter. Now it's possible to configure the sources: there are several options that can be used to activate or deactivate feature during compiling. This is only an example, that provide a full feature aMule build:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-systray --disable-gtk --enable-embedded_crypto --with-wx-config=../wxMac-2.8.10/wx-config \&lt;br /&gt;
  --enable-optimize --with-crypto-prefix=/opt/local --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local  \&lt;br /&gt;
  --enable-cas --enable-webserver --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon \&lt;br /&gt;
  --enable-geoip --with-geoip-lib=/opt/local/lib --with-geoip-headers=/opt/local/include --enable-geoip-static --enable-debug --enable-debug_gdb&lt;br /&gt;
&lt;br /&gt;
Take a look to the [[configure]] page for a complete list of options.&lt;br /&gt;
You should pay attention to these elements:&lt;br /&gt;
&lt;br /&gt;
# The given example enables debug informations. To disable them change the options ''--enable-debug --enable-debug_gdb'' with ''--disable-debug --disable-debug_gdb --enable-optimize''.&lt;br /&gt;
# The option ''--with-wx-config'' must point to the correct relative path of the compiled wxMac. The example assumes that aMule and wxMac folders are in the same directory (i.e. your desktop). You should also correct the wxMac folder's name according to its version (in the example is 2.8.10).&lt;br /&gt;
# The option ''--with-crypto-prefix'' should point to /usr/local/cryptopp if you compiled Crypto++ starting from its source, out of MacPorts.&lt;br /&gt;
# '''IMPORTANT!''' It seems that Mac OS version of ''ld'' tool is not able to make static library. So if you plan to run/install your compiled aMule on other Mac which doesn't have MacPorts installed you MUST remove the ''--enable-geoip-static'' option to avoid a crash when the program starts.&lt;br /&gt;
&lt;br /&gt;
Now it's time to make you packages with:&lt;br /&gt;
&lt;br /&gt;
  $ make -j8&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
  ./src/utils/scripts/mac_packager&lt;br /&gt;
&lt;br /&gt;
You should find the aMule package in the same source folder.&lt;br /&gt;
&lt;br /&gt;
=== APPENDIX: Universal Binary ===&lt;br /&gt;
&lt;br /&gt;
If no specific options are added, the system compile the packages for the native architecture (i.e. i386 if you are using a Mac Intel or ppc for PowerPcs).&lt;br /&gt;
If you plan to distribute your package or to use it on different platform you probably want to build a [http://en.wikipedia.org/wiki/Universal_binary universal binary] app.&lt;br /&gt;
&lt;br /&gt;
To get a UB package you should &lt;br /&gt;
&lt;br /&gt;
# Install all the libraries and tools (Step 3) through MacPorts invoking the ''+universal'' variant.&lt;br /&gt;
# Attache the option &amp;quot;--enable-universal_binary&amp;quot; to the ''configure'' command of wxMac (Step 4).&lt;br /&gt;
# Add the following options to the aMule ''config'', if you are using Leopard (change &amp;quot;MacOSX10.5.sdk&amp;quot; to &amp;quot;MacOSX10.4.sdk&amp;quot; if you are using Tiger):&lt;br /&gt;
  --disable-dependency-tracking \&lt;br /&gt;
  CFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot; \&lt;br /&gt;
  CXXFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot;&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac</id>
		<title>HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac"/>
				<updated>2009-04-14T12:41:49Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: /* Step 3: Install libraries and tools */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_compile_on_Mac-de|Deutsch]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-es|Espa&amp;amp;ntilde;ol]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-fr|Fran&amp;amp;ccedil;ais]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to get and install [[aMule]] on [http://www.apple.com/macosx/ Apple Mac OS X].&lt;br /&gt;
&lt;br /&gt;
# You can simply download the finished application ('binary release'); &lt;br /&gt;
# You compile it from a [[aMule SVN|SVN source snapshot]] or [http://www.amule.org/files/files.php?cat=42 stable release source].&lt;br /&gt;
&lt;br /&gt;
== Binary releases ==&lt;br /&gt;
If you don't want to bother with installing and compiling all those tools and sources, then get one of the pre-compiled [[aMule]] applications. The official release is considered 'stable', but every now and then applications are built from the current source to allow more people to test new features or the like. &lt;br /&gt;
&lt;br /&gt;
# Latest official binary release: [http://www.amule.org/files/files.php?cat=30 aMule-2.1.3-Mac]&lt;br /&gt;
# Check the Mac forum for a more recent user posted binary: [http://forum.amule.org/index.php?board=49.0 aMule forum]&lt;br /&gt;
&lt;br /&gt;
Now, to install the downloaded binary, just drag the aMule application to a folder of your choice (e.g., ''/Applications'').&lt;br /&gt;
&lt;br /&gt;
To start aMule, double-click the application icon.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You might want to take a look at the [[Mac specific usage]] article.&lt;br /&gt;
&lt;br /&gt;
== Compiling from source ==&lt;br /&gt;
Compiling from source allows most current bug reports, because you can compile and test the [[aMule CVS|CVS snapshot]] of the very day.&lt;br /&gt;
&lt;br /&gt;
To compile [[aMule]] from source you need some development tools, the [[wxWidgets]] library and the [http://www.amule.org/files/files.php?cat=42 aMule source].&lt;br /&gt;
&lt;br /&gt;
=== Get the sources and development tools ===&lt;br /&gt;
==== Step 1: Download and install [http://developer.apple.com/tools/xcode Xcode] ====&lt;br /&gt;
[http://developer.apple.com/tools/xcode Xcode] is [http://www.apple.com Apple]'s development environment. We need it for the [http://gcc.gnu.org GCC] compiler. &lt;br /&gt;
&lt;br /&gt;
You will need at least version 2.1 of Xcode, a more recent version is preferable though. You can download the most recent version of Xcode from Apple, but you will need to sign up for a free-of-charge developer account first or log-in using your iTunes Store account.&lt;br /&gt;
&lt;br /&gt;
# Get Xcode from http://developer.apple.com/tools/download&lt;br /&gt;
# &amp;quot;Member Site&amp;quot;-&amp;gt;&amp;quot;Log In&amp;quot;-&amp;gt;&amp;quot;Download Software&amp;quot;-&amp;gt;&amp;quot;Developer Tools&amp;quot;-&amp;gt;&amp;quot;Download Xcode Tools last release&amp;quot;&amp;gt;&amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install [http://www.macports.org MacPorts]====&lt;br /&gt;
[http://www.macports.org MacPorts] is an open source installer for lots of open source tools ported to [http://macos.apple.com Mac OS X]. aMule needs a few of these tools to compile properly. Alternatively, &amp;lt;del&amp;gt;you can also use [http://www.finkproject.org/ Fink] to install these tools or&amp;lt;/del&amp;gt; (it seems that fink lacks many of the needed tools) you can install them manually .&lt;br /&gt;
&lt;br /&gt;
# Download the most recent version of [http://www.macports.org MacPorts]&lt;br /&gt;
# Read [http://guide.macports.org/ MacPorts' documentation] to learn how to install applications through [http://www.macports.org MacPorts].&lt;br /&gt;
&lt;br /&gt;
===== Syntax of most important commands =====&lt;br /&gt;
Packages list can be downloaded/updated through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port selfupdate&lt;br /&gt;
&lt;br /&gt;
Packages can be installed through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name''&lt;br /&gt;
&lt;br /&gt;
and removed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port uninstall ''package_name''&lt;br /&gt;
&lt;br /&gt;
Port variants can be invoked with the plus sign:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name'' +universal&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Install libraries and tools ====&lt;br /&gt;
&lt;br /&gt;
These are the package that provides (with dependancies) all needed libraries and tools to build [[wxWidgets]] and [[aMule]] with most of feature:&lt;br /&gt;
&lt;br /&gt;
# automake&lt;br /&gt;
# flex&lt;br /&gt;
# gettext&lt;br /&gt;
# libpng&lt;br /&gt;
# libcryptopp&lt;br /&gt;
# libiconv&lt;br /&gt;
# gd2&lt;br /&gt;
# jpeg&lt;br /&gt;
# libgeoip&lt;br /&gt;
# libupnp&lt;br /&gt;
# pkgconfig&lt;br /&gt;
&lt;br /&gt;
You can copy and paste this line:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install automake flex gettext libpng libcryptopp libiconv gd2 jpeg libgeoip libupnp pkgconfig&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Compile [[wxWidgets|wxMac]] ====&lt;br /&gt;
[[wxWidgets|wxMac]] is the port of the [[wxWidgets]] library for [http://www.apple.com/macosx Mac OS X]. This library is used to make [[aMule]] 'multi-platform'.&lt;br /&gt;
&lt;br /&gt;
Get the source from: http://www.wxwidgets.org/downloads/ (Source Archives: wxMac) and extract the archive on your desktop.&lt;br /&gt;
Now open a Terminal and type&lt;br /&gt;
&lt;br /&gt;
 $ cd&lt;br /&gt;
&lt;br /&gt;
leave a space after the command, than drag and drop the wxMac uncompressed folder into the Terminal window: the complete path of the folder will be printed on screen. For example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/wxMac-2.8.10/&lt;br /&gt;
&lt;br /&gt;
Press enter.&lt;br /&gt;
Now configure and compile the package with the command:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local &amp;amp;&amp;amp; make -j8&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The above command doesn't enable debug information. Debug informations allows you to submit a helpful stacktrace if [[aMule]] crashes or a sample if it hangs to the [[aMule devs|aMule developers]]. If you want to compile a debug version then you can use &amp;quot;--enable-debug --enable-debug_gdb&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Compile [[aMule]] ====&lt;br /&gt;
Download [http://www.amule.org/files/files.php?cat=42 aMule source] and extract archive into the same place of wxMac (i.e. your desktop if you are following out suggestion).&lt;br /&gt;
Open a Terminal and type:&lt;br /&gt;
&lt;br /&gt;
  $ cd&lt;br /&gt;
&lt;br /&gt;
then leave a space and drag and drop aMule uncompressed folder whose path will be printed on screen, for example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/aMule-2.2.4&lt;br /&gt;
&lt;br /&gt;
Press Enter. Now it's possible to configure the sources: there are several options that can be used to activate or deactivate feature during compiling. This is only an example, that provide a full feature aMule build:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-systray --disable-gtk --enable-embedded_crypto --with-wx-config=../wxMac-2.8.10/wx-config \&lt;br /&gt;
  --enable-optimize --with-crypto-prefix=/opt/local --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local  \&lt;br /&gt;
  --enable-cas --enable-webserver --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon \&lt;br /&gt;
  --enable-geoip --with-geoip-lib=/opt/local/lib --with-geoip-headers=/opt/local/include --enable-geoip-static --enable-debug --enable-debug_gdb&lt;br /&gt;
&lt;br /&gt;
Take a look to the [[configure]] page for a complete list of options.&lt;br /&gt;
You should pay attention to these elements:&lt;br /&gt;
&lt;br /&gt;
# The given example enables debug informations. To disable them change the options ''--enable-debug --enable-debug_gdb'' with ''--disable-debug --disable-debug_gdb --enable-optimize''.&lt;br /&gt;
# The option ''--with-wx-config'' must point to the correct relative path of the compiled wxMac. The example assumes that aMule and wxMac folders are in the same directory (i.e. your desktop). You should also correct the wxMac folder's name according to its version (in the example is 2.8.10).&lt;br /&gt;
# The option ''--with-crypto-prefix'' should point to /usr/local/cryptopp if you compiled Crypto++ starting from its source, out of MacPorts.&lt;br /&gt;
# '''IMPORTANT!''' It seems that Mac OS version of ''ld'' tool is not able to make static library. So if you plan to run/install your compiled aMule on other Mac which doesn't have MacPorts installed you MUST remove the ''--enable-geoip-static'' option to avoid a crash when the program starts.&lt;br /&gt;
&lt;br /&gt;
Now it's time to make you packages with:&lt;br /&gt;
&lt;br /&gt;
  $ make -j8&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
  ./src/utils/scripts/mac_packager&lt;br /&gt;
&lt;br /&gt;
You should find the aMule package in the same source folder.&lt;br /&gt;
&lt;br /&gt;
=== APPENDIX: Universal Binary ===&lt;br /&gt;
&lt;br /&gt;
If no specific options are added, the system compile the packages for the native architecture (i.e. i386 if you are using a Mac Intel or ppc for PowerPcs).&lt;br /&gt;
If you plan to distribute your package or to use it on different platform you probably want to build a [http://en.wikipedia.org/wiki/Universal_binary universal binary] app.&lt;br /&gt;
&lt;br /&gt;
To get a UB package you should &lt;br /&gt;
&lt;br /&gt;
# Install all the libraries and tools (Step 3) through MacPorts invoking the ''+universal'' variant.&lt;br /&gt;
# Attache the option &amp;quot;--enable-universal_binary&amp;quot; to the ''configure'' command of wxMac (Step 4).&lt;br /&gt;
# Add the following options to the aMule ''config'', if you are using Leopard (change &amp;quot;MacOSX10.5.sdk&amp;quot; to &amp;quot;MacOSX10.4.sdk&amp;quot; if you are using Tiger):&lt;br /&gt;
  --disable-dependency-tracking \&lt;br /&gt;
  CFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot; \&lt;br /&gt;
  CXXFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot;&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac</id>
		<title>HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac"/>
				<updated>2009-04-14T05:58:14Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: /* Step 2: Install [http://www.macports.org MacPorts] */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_compile_on_Mac-de|Deutsch]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-es|Espa&amp;amp;ntilde;ol]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-fr|Fran&amp;amp;ccedil;ais]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to get and install [[aMule]] on [http://www.apple.com/macosx/ Apple Mac OS X].&lt;br /&gt;
&lt;br /&gt;
# You can simply download the finished application ('binary release'); &lt;br /&gt;
# You compile it from a [[aMule SVN|SVN source snapshot]] or [http://www.amule.org/files/files.php?cat=42 stable release source].&lt;br /&gt;
&lt;br /&gt;
== Binary releases ==&lt;br /&gt;
If you don't want to bother with installing and compiling all those tools and sources, then get one of the pre-compiled [[aMule]] applications. The official release is considered 'stable', but every now and then applications are built from the current source to allow more people to test new features or the like. &lt;br /&gt;
&lt;br /&gt;
# Latest official binary release: [http://www.amule.org/files/files.php?cat=30 aMule-2.1.3-Mac]&lt;br /&gt;
# Check the Mac forum for a more recent user posted binary: [http://forum.amule.org/index.php?board=49.0 aMule forum]&lt;br /&gt;
&lt;br /&gt;
Now, to install the downloaded binary, just drag the aMule application to a folder of your choice (e.g., ''/Applications'').&lt;br /&gt;
&lt;br /&gt;
To start aMule, double-click the application icon.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You might want to take a look at the [[Mac specific usage]] article.&lt;br /&gt;
&lt;br /&gt;
== Compiling from source ==&lt;br /&gt;
Compiling from source allows most current bug reports, because you can compile and test the [[aMule CVS|CVS snapshot]] of the very day.&lt;br /&gt;
&lt;br /&gt;
To compile [[aMule]] from source you need some development tools, the [[wxWidgets]] library and the [http://www.amule.org/files/files.php?cat=42 aMule source].&lt;br /&gt;
&lt;br /&gt;
=== Get the sources and development tools ===&lt;br /&gt;
==== Step 1: Download and install [http://developer.apple.com/tools/xcode Xcode] ====&lt;br /&gt;
[http://developer.apple.com/tools/xcode Xcode] is [http://www.apple.com Apple]'s development environment. We need it for the [http://gcc.gnu.org GCC] compiler. &lt;br /&gt;
&lt;br /&gt;
You will need at least version 2.1 of Xcode, a more recent version is preferable though. You can download the most recent version of Xcode from Apple, but you will need to sign up for a free-of-charge developer account first or log-in using your iTunes Store account.&lt;br /&gt;
&lt;br /&gt;
# Get Xcode from http://developer.apple.com/tools/download&lt;br /&gt;
# &amp;quot;Member Site&amp;quot;-&amp;gt;&amp;quot;Log In&amp;quot;-&amp;gt;&amp;quot;Download Software&amp;quot;-&amp;gt;&amp;quot;Developer Tools&amp;quot;-&amp;gt;&amp;quot;Download Xcode Tools last release&amp;quot;&amp;gt;&amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install [http://www.macports.org MacPorts]====&lt;br /&gt;
[http://www.macports.org MacPorts] is an open source installer for lots of open source tools ported to [http://macos.apple.com Mac OS X]. aMule needs a few of these tools to compile properly. Alternatively, &amp;lt;del&amp;gt;you can also use [http://www.finkproject.org/ Fink] to install these tools or&amp;lt;/del&amp;gt; (it seems that fink lacks many of the needed tools) you can install them manually .&lt;br /&gt;
&lt;br /&gt;
# Download the most recent version of [http://www.macports.org MacPorts]&lt;br /&gt;
# Read [http://guide.macports.org/ MacPorts' documentation] to learn how to install applications through [http://www.macports.org MacPorts].&lt;br /&gt;
&lt;br /&gt;
===== Syntax of most important commands =====&lt;br /&gt;
Packages list can be downloaded/updated through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port selfupdate&lt;br /&gt;
&lt;br /&gt;
Packages can be installed through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name''&lt;br /&gt;
&lt;br /&gt;
and removed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port uninstall ''package_name''&lt;br /&gt;
&lt;br /&gt;
Port variants can be invoked with the plus sign:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name'' +universal&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Install libraries and tools ====&lt;br /&gt;
&lt;br /&gt;
These are the package that provides (with dependancies) all needed libraries and tools to build [[wxWidgets]] and [[aMule]] with most of feature:&lt;br /&gt;
&lt;br /&gt;
# automake&lt;br /&gt;
# flex&lt;br /&gt;
# gettext&lt;br /&gt;
# libpng&lt;br /&gt;
# libcryptopp&lt;br /&gt;
# libiconv&lt;br /&gt;
# gd2&lt;br /&gt;
# jpeg&lt;br /&gt;
# libgeoip&lt;br /&gt;
# libupnp&lt;br /&gt;
# pkgconfig&lt;br /&gt;
&lt;br /&gt;
You can copy and paste this line:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install automake flex gettext libpng libcryptopp libiconv gd2 jpeg kibgeoip libupnp pkgconfig&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Compile [[wxWidgets|wxMac]] ====&lt;br /&gt;
[[wxWidgets|wxMac]] is the port of the [[wxWidgets]] library for [http://www.apple.com/macosx Mac OS X]. This library is used to make [[aMule]] 'multi-platform'.&lt;br /&gt;
&lt;br /&gt;
Get the source from: http://www.wxwidgets.org/downloads/ (Source Archives: wxMac) and extract the archive on your desktop.&lt;br /&gt;
Now open a Terminal and type&lt;br /&gt;
&lt;br /&gt;
 $ cd&lt;br /&gt;
&lt;br /&gt;
leave a space after the command, than drag and drop the wxMac uncompressed folder into the Terminal window: the complete path of the folder will be printed on screen. For example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/wxMac-2.8.10/&lt;br /&gt;
&lt;br /&gt;
Press enter.&lt;br /&gt;
Now configure and compile the package with the command:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local &amp;amp;&amp;amp; make -j8&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The above command doesn't enable debug information. Debug informations allows you to submit a helpful stacktrace if [[aMule]] crashes or a sample if it hangs to the [[aMule devs|aMule developers]]. If you want to compile a debug version then you can use &amp;quot;--enable-debug --enable-debug_gdb&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Compile [[aMule]] ====&lt;br /&gt;
Download [http://www.amule.org/files/files.php?cat=42 aMule source] and extract archive into the same place of wxMac (i.e. your desktop if you are following out suggestion).&lt;br /&gt;
Open a Terminal and type:&lt;br /&gt;
&lt;br /&gt;
  $ cd&lt;br /&gt;
&lt;br /&gt;
then leave a space and drag and drop aMule uncompressed folder whose path will be printed on screen, for example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/aMule-2.2.4&lt;br /&gt;
&lt;br /&gt;
Press Enter. Now it's possible to configure the sources: there are several options that can be used to activate or deactivate feature during compiling. This is only an example, that provide a full feature aMule build:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-systray --disable-gtk --enable-embedded_crypto --with-wx-config=../wxMac-2.8.10/wx-config \&lt;br /&gt;
  --enable-optimize --with-crypto-prefix=/opt/local --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local  \&lt;br /&gt;
  --enable-cas --enable-webserver --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon \&lt;br /&gt;
  --enable-geoip --with-geoip-lib=/opt/local/lib --with-geoip-headers=/opt/local/include --enable-geoip-static --enable-debug --enable-debug_gdb&lt;br /&gt;
&lt;br /&gt;
Take a look to the [[configure]] page for a complete list of options.&lt;br /&gt;
You should pay attention to these elements:&lt;br /&gt;
&lt;br /&gt;
# The given example enables debug informations. To disable them change the options ''--enable-debug --enable-debug_gdb'' with ''--disable-debug --disable-debug_gdb --enable-optimize''.&lt;br /&gt;
# The option ''--with-wx-config'' must point to the correct relative path of the compiled wxMac. The example assumes that aMule and wxMac folders are in the same directory (i.e. your desktop). You should also correct the wxMac folder's name according to its version (in the example is 2.8.10).&lt;br /&gt;
# The option ''--with-crypto-prefix'' should point to /usr/local/cryptopp if you compiled Crypto++ starting from its source, out of MacPorts.&lt;br /&gt;
# '''IMPORTANT!''' It seems that Mac OS version of ''ld'' tool is not able to make static library. So if you plan to run/install your compiled aMule on other Mac which doesn't have MacPorts installed you MUST remove the ''--enable-geoip-static'' option to avoid a crash when the program starts.&lt;br /&gt;
&lt;br /&gt;
Now it's time to make you packages with:&lt;br /&gt;
&lt;br /&gt;
  $ make -j8&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
  ./src/utils/scripts/mac_packager&lt;br /&gt;
&lt;br /&gt;
You should find the aMule package in the same source folder.&lt;br /&gt;
&lt;br /&gt;
=== APPENDIX: Universal Binary ===&lt;br /&gt;
&lt;br /&gt;
If no specific options are added, the system compile the packages for the native architecture (i.e. i386 if you are using a Mac Intel or ppc for PowerPcs).&lt;br /&gt;
If you plan to distribute your package or to use it on different platform you probably want to build a [http://en.wikipedia.org/wiki/Universal_binary universal binary] app.&lt;br /&gt;
&lt;br /&gt;
To get a UB package you should &lt;br /&gt;
&lt;br /&gt;
# Install all the libraries and tools (Step 3) through MacPorts invoking the ''+universal'' variant.&lt;br /&gt;
# Attache the option &amp;quot;--enable-universal_binary&amp;quot; to the ''configure'' command of wxMac (Step 4).&lt;br /&gt;
# Add the following options to the aMule ''config'', if you are using Leopard (change &amp;quot;MacOSX10.5.sdk&amp;quot; to &amp;quot;MacOSX10.4.sdk&amp;quot; if you are using Tiger):&lt;br /&gt;
  --disable-dependency-tracking \&lt;br /&gt;
  CFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot; \&lt;br /&gt;
  CXXFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot;&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac</id>
		<title>HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac"/>
				<updated>2009-04-14T05:51:43Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: /* Step 5: Compile aMule */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_compile_on_Mac-de|Deutsch]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-es|Espa&amp;amp;ntilde;ol]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-fr|Fran&amp;amp;ccedil;ais]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to get and install [[aMule]] on [http://www.apple.com/macosx/ Apple Mac OS X].&lt;br /&gt;
&lt;br /&gt;
# You can simply download the finished application ('binary release'); &lt;br /&gt;
# You compile it from a [[aMule SVN|SVN source snapshot]] or [http://www.amule.org/files/files.php?cat=42 stable release source].&lt;br /&gt;
&lt;br /&gt;
== Binary releases ==&lt;br /&gt;
If you don't want to bother with installing and compiling all those tools and sources, then get one of the pre-compiled [[aMule]] applications. The official release is considered 'stable', but every now and then applications are built from the current source to allow more people to test new features or the like. &lt;br /&gt;
&lt;br /&gt;
# Latest official binary release: [http://www.amule.org/files/files.php?cat=30 aMule-2.1.3-Mac]&lt;br /&gt;
# Check the Mac forum for a more recent user posted binary: [http://forum.amule.org/index.php?board=49.0 aMule forum]&lt;br /&gt;
&lt;br /&gt;
Now, to install the downloaded binary, just drag the aMule application to a folder of your choice (e.g., ''/Applications'').&lt;br /&gt;
&lt;br /&gt;
To start aMule, double-click the application icon.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You might want to take a look at the [[Mac specific usage]] article.&lt;br /&gt;
&lt;br /&gt;
== Compiling from source ==&lt;br /&gt;
Compiling from source allows most current bug reports, because you can compile and test the [[aMule CVS|CVS snapshot]] of the very day.&lt;br /&gt;
&lt;br /&gt;
To compile [[aMule]] from source you need some development tools, the [[wxWidgets]] library and the [http://www.amule.org/files/files.php?cat=42 aMule source].&lt;br /&gt;
&lt;br /&gt;
=== Get the sources and development tools ===&lt;br /&gt;
==== Step 1: Download and install [http://developer.apple.com/tools/xcode Xcode] ====&lt;br /&gt;
[http://developer.apple.com/tools/xcode Xcode] is [http://www.apple.com Apple]'s development environment. We need it for the [http://gcc.gnu.org GCC] compiler. &lt;br /&gt;
&lt;br /&gt;
You will need at least version 2.1 of Xcode, a more recent version is preferable though. You can download the most recent version of Xcode from Apple, but you will need to sign up for a free-of-charge developer account first or log-in using your iTunes Store account.&lt;br /&gt;
&lt;br /&gt;
# Get Xcode from http://developer.apple.com/tools/download&lt;br /&gt;
# &amp;quot;Member Site&amp;quot;-&amp;gt;&amp;quot;Log In&amp;quot;-&amp;gt;&amp;quot;Download Software&amp;quot;-&amp;gt;&amp;quot;Developer Tools&amp;quot;-&amp;gt;&amp;quot;Download Xcode Tools last release&amp;quot;&amp;gt;&amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install [http://www.macports.org MacPorts]====&lt;br /&gt;
[http://www.macports.org MacPorts] is an open source installer for lots of open source tools ported to [http://macos.apple.com Mac OS X]. aMule needs a few of these tools to compile properly. Alternatively, you can also use [http://www.finkproject.org/ Fink] to install these tools or you can install them manually.&lt;br /&gt;
&lt;br /&gt;
# Download the most recent version of [http://www.macports.org MacPorts]&lt;br /&gt;
# Read [http://guide.macports.org/ MacPorts' documentation] to learn how to install applications through [http://www.macports.org MacPorts].&lt;br /&gt;
&lt;br /&gt;
===== Syntax of most important commands =====&lt;br /&gt;
Packages list can be downloaded/updated through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port selfupdate&lt;br /&gt;
&lt;br /&gt;
Packages can be installed through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name''&lt;br /&gt;
&lt;br /&gt;
and removed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port uninstall ''package_name''&lt;br /&gt;
&lt;br /&gt;
Port variants can be invoked with the plus sign:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name'' +universal&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Install libraries and tools ====&lt;br /&gt;
&lt;br /&gt;
These are the package that provides (with dependancies) all needed libraries and tools to build [[wxWidgets]] and [[aMule]] with most of feature:&lt;br /&gt;
&lt;br /&gt;
# automake&lt;br /&gt;
# flex&lt;br /&gt;
# gettext&lt;br /&gt;
# libpng&lt;br /&gt;
# libcryptopp&lt;br /&gt;
# libiconv&lt;br /&gt;
# gd2&lt;br /&gt;
# jpeg&lt;br /&gt;
# libgeoip&lt;br /&gt;
# libupnp&lt;br /&gt;
# pkgconfig&lt;br /&gt;
&lt;br /&gt;
You can copy and paste this line:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install automake flex gettext libpng libcryptopp libiconv gd2 jpeg kibgeoip libupnp pkgconfig&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Compile [[wxWidgets|wxMac]] ====&lt;br /&gt;
[[wxWidgets|wxMac]] is the port of the [[wxWidgets]] library for [http://www.apple.com/macosx Mac OS X]. This library is used to make [[aMule]] 'multi-platform'.&lt;br /&gt;
&lt;br /&gt;
Get the source from: http://www.wxwidgets.org/downloads/ (Source Archives: wxMac) and extract the archive on your desktop.&lt;br /&gt;
Now open a Terminal and type&lt;br /&gt;
&lt;br /&gt;
 $ cd&lt;br /&gt;
&lt;br /&gt;
leave a space after the command, than drag and drop the wxMac uncompressed folder into the Terminal window: the complete path of the folder will be printed on screen. For example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/wxMac-2.8.10/&lt;br /&gt;
&lt;br /&gt;
Press enter.&lt;br /&gt;
Now configure and compile the package with the command:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local &amp;amp;&amp;amp; make -j8&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The above command doesn't enable debug information. Debug informations allows you to submit a helpful stacktrace if [[aMule]] crashes or a sample if it hangs to the [[aMule devs|aMule developers]]. If you want to compile a debug version then you can use &amp;quot;--enable-debug --enable-debug_gdb&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Compile [[aMule]] ====&lt;br /&gt;
Download [http://www.amule.org/files/files.php?cat=42 aMule source] and extract archive into the same place of wxMac (i.e. your desktop if you are following out suggestion).&lt;br /&gt;
Open a Terminal and type:&lt;br /&gt;
&lt;br /&gt;
  $ cd&lt;br /&gt;
&lt;br /&gt;
then leave a space and drag and drop aMule uncompressed folder whose path will be printed on screen, for example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/aMule-2.2.4&lt;br /&gt;
&lt;br /&gt;
Press Enter. Now it's possible to configure the sources: there are several options that can be used to activate or deactivate feature during compiling. This is only an example, that provide a full feature aMule build:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-systray --disable-gtk --enable-embedded_crypto --with-wx-config=../wxMac-2.8.10/wx-config \&lt;br /&gt;
  --enable-optimize --with-crypto-prefix=/opt/local --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local  \&lt;br /&gt;
  --enable-cas --enable-webserver --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon \&lt;br /&gt;
  --enable-geoip --with-geoip-lib=/opt/local/lib --with-geoip-headers=/opt/local/include --enable-geoip-static --enable-debug --enable-debug_gdb&lt;br /&gt;
&lt;br /&gt;
Take a look to the [[configure]] page for a complete list of options.&lt;br /&gt;
You should pay attention to these elements:&lt;br /&gt;
&lt;br /&gt;
# The given example enables debug informations. To disable them change the options ''--enable-debug --enable-debug_gdb'' with ''--disable-debug --disable-debug_gdb --enable-optimize''.&lt;br /&gt;
# The option ''--with-wx-config'' must point to the correct relative path of the compiled wxMac. The example assumes that aMule and wxMac folders are in the same directory (i.e. your desktop). You should also correct the wxMac folder's name according to its version (in the example is 2.8.10).&lt;br /&gt;
# The option ''--with-crypto-prefix'' should point to /usr/local/cryptopp if you compiled Crypto++ starting from its source, out of MacPorts.&lt;br /&gt;
# '''IMPORTANT!''' It seems that Mac OS version of ''ld'' tool is not able to make static library. So if you plan to run/install your compiled aMule on other Mac which doesn't have MacPorts installed you MUST remove the ''--enable-geoip-static'' option to avoid a crash when the program starts.&lt;br /&gt;
&lt;br /&gt;
Now it's time to make you packages with:&lt;br /&gt;
&lt;br /&gt;
  $ make -j8&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
  ./src/utils/scripts/mac_packager&lt;br /&gt;
&lt;br /&gt;
You should find the aMule package in the same source folder.&lt;br /&gt;
&lt;br /&gt;
=== APPENDIX: Universal Binary ===&lt;br /&gt;
&lt;br /&gt;
If no specific options are added, the system compile the packages for the native architecture (i.e. i386 if you are using a Mac Intel or ppc for PowerPcs).&lt;br /&gt;
If you plan to distribute your package or to use it on different platform you probably want to build a [http://en.wikipedia.org/wiki/Universal_binary universal binary] app.&lt;br /&gt;
&lt;br /&gt;
To get a UB package you should &lt;br /&gt;
&lt;br /&gt;
# Install all the libraries and tools (Step 3) through MacPorts invoking the ''+universal'' variant.&lt;br /&gt;
# Attache the option &amp;quot;--enable-universal_binary&amp;quot; to the ''configure'' command of wxMac (Step 4).&lt;br /&gt;
# Add the following options to the aMule ''config'', if you are using Leopard (change &amp;quot;MacOSX10.5.sdk&amp;quot; to &amp;quot;MacOSX10.4.sdk&amp;quot; if you are using Tiger):&lt;br /&gt;
  --disable-dependency-tracking \&lt;br /&gt;
  CFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot; \&lt;br /&gt;
  CXXFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot;&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac</id>
		<title>HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac"/>
				<updated>2009-04-14T05:49:54Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: /* APPENDIX: Universal Binary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_compile_on_Mac-de|Deutsch]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-es|Espa&amp;amp;ntilde;ol]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-fr|Fran&amp;amp;ccedil;ais]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to get and install [[aMule]] on [http://www.apple.com/macosx/ Apple Mac OS X].&lt;br /&gt;
&lt;br /&gt;
# You can simply download the finished application ('binary release'); &lt;br /&gt;
# You compile it from a [[aMule SVN|SVN source snapshot]] or [http://www.amule.org/files/files.php?cat=42 stable release source].&lt;br /&gt;
&lt;br /&gt;
== Binary releases ==&lt;br /&gt;
If you don't want to bother with installing and compiling all those tools and sources, then get one of the pre-compiled [[aMule]] applications. The official release is considered 'stable', but every now and then applications are built from the current source to allow more people to test new features or the like. &lt;br /&gt;
&lt;br /&gt;
# Latest official binary release: [http://www.amule.org/files/files.php?cat=30 aMule-2.1.3-Mac]&lt;br /&gt;
# Check the Mac forum for a more recent user posted binary: [http://forum.amule.org/index.php?board=49.0 aMule forum]&lt;br /&gt;
&lt;br /&gt;
Now, to install the downloaded binary, just drag the aMule application to a folder of your choice (e.g., ''/Applications'').&lt;br /&gt;
&lt;br /&gt;
To start aMule, double-click the application icon.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You might want to take a look at the [[Mac specific usage]] article.&lt;br /&gt;
&lt;br /&gt;
== Compiling from source ==&lt;br /&gt;
Compiling from source allows most current bug reports, because you can compile and test the [[aMule CVS|CVS snapshot]] of the very day.&lt;br /&gt;
&lt;br /&gt;
To compile [[aMule]] from source you need some development tools, the [[wxWidgets]] library and the [http://www.amule.org/files/files.php?cat=42 aMule source].&lt;br /&gt;
&lt;br /&gt;
=== Get the sources and development tools ===&lt;br /&gt;
==== Step 1: Download and install [http://developer.apple.com/tools/xcode Xcode] ====&lt;br /&gt;
[http://developer.apple.com/tools/xcode Xcode] is [http://www.apple.com Apple]'s development environment. We need it for the [http://gcc.gnu.org GCC] compiler. &lt;br /&gt;
&lt;br /&gt;
You will need at least version 2.1 of Xcode, a more recent version is preferable though. You can download the most recent version of Xcode from Apple, but you will need to sign up for a free-of-charge developer account first or log-in using your iTunes Store account.&lt;br /&gt;
&lt;br /&gt;
# Get Xcode from http://developer.apple.com/tools/download&lt;br /&gt;
# &amp;quot;Member Site&amp;quot;-&amp;gt;&amp;quot;Log In&amp;quot;-&amp;gt;&amp;quot;Download Software&amp;quot;-&amp;gt;&amp;quot;Developer Tools&amp;quot;-&amp;gt;&amp;quot;Download Xcode Tools last release&amp;quot;&amp;gt;&amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install [http://www.macports.org MacPorts]====&lt;br /&gt;
[http://www.macports.org MacPorts] is an open source installer for lots of open source tools ported to [http://macos.apple.com Mac OS X]. aMule needs a few of these tools to compile properly. Alternatively, you can also use [http://www.finkproject.org/ Fink] to install these tools or you can install them manually.&lt;br /&gt;
&lt;br /&gt;
# Download the most recent version of [http://www.macports.org MacPorts]&lt;br /&gt;
# Read [http://guide.macports.org/ MacPorts' documentation] to learn how to install applications through [http://www.macports.org MacPorts].&lt;br /&gt;
&lt;br /&gt;
===== Syntax of most important commands =====&lt;br /&gt;
Packages list can be downloaded/updated through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port selfupdate&lt;br /&gt;
&lt;br /&gt;
Packages can be installed through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name''&lt;br /&gt;
&lt;br /&gt;
and removed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port uninstall ''package_name''&lt;br /&gt;
&lt;br /&gt;
Port variants can be invoked with the plus sign:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name'' +universal&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Install libraries and tools ====&lt;br /&gt;
&lt;br /&gt;
These are the package that provides (with dependancies) all needed libraries and tools to build [[wxWidgets]] and [[aMule]] with most of feature:&lt;br /&gt;
&lt;br /&gt;
# automake&lt;br /&gt;
# flex&lt;br /&gt;
# gettext&lt;br /&gt;
# libpng&lt;br /&gt;
# libcryptopp&lt;br /&gt;
# libiconv&lt;br /&gt;
# gd2&lt;br /&gt;
# jpeg&lt;br /&gt;
# libgeoip&lt;br /&gt;
# libupnp&lt;br /&gt;
# pkgconfig&lt;br /&gt;
&lt;br /&gt;
You can copy and paste this line:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install automake flex gettext libpng libcryptopp libiconv gd2 jpeg kibgeoip libupnp pkgconfig&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Compile [[wxWidgets|wxMac]] ====&lt;br /&gt;
[[wxWidgets|wxMac]] is the port of the [[wxWidgets]] library for [http://www.apple.com/macosx Mac OS X]. This library is used to make [[aMule]] 'multi-platform'.&lt;br /&gt;
&lt;br /&gt;
Get the source from: http://www.wxwidgets.org/downloads/ (Source Archives: wxMac) and extract the archive on your desktop.&lt;br /&gt;
Now open a Terminal and type&lt;br /&gt;
&lt;br /&gt;
 $ cd&lt;br /&gt;
&lt;br /&gt;
leave a space after the command, than drag and drop the wxMac uncompressed folder into the Terminal window: the complete path of the folder will be printed on screen. For example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/wxMac-2.8.10/&lt;br /&gt;
&lt;br /&gt;
Press enter.&lt;br /&gt;
Now configure and compile the package with the command:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local &amp;amp;&amp;amp; make -j8&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The above command doesn't enable debug information. Debug informations allows you to submit a helpful stacktrace if [[aMule]] crashes or a sample if it hangs to the [[aMule devs|aMule developers]]. If you want to compile a debug version then you can use &amp;quot;--enable-debug --enable-debug_gdb&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Compile [[aMule]] ====&lt;br /&gt;
Download [http://www.amule.org/files/files.php?cat=42 aMule source] and extract archive into the same place of wxMac (i.e. your desktop if you are following out suggestion).&lt;br /&gt;
Open a Terminal and type:&lt;br /&gt;
&lt;br /&gt;
  $ cd&lt;br /&gt;
&lt;br /&gt;
then leave a space and drag and drop aMule uncompressed folder whose path will be printed on screen, for example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/aMule-2.2.4&lt;br /&gt;
&lt;br /&gt;
Press Enter. Now it's possible to configure the sources: there are several options that can be used to activate or deactivate feature during compiling. This is only an example, that provide a full feature aMule build:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-systray --disable-gtk --enable-embedded_crypto --with-wx-config=../wxMac-2.8.10/wx-config \&lt;br /&gt;
  --enable-optimize --with-crypto-prefix=/opt/local --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local  \&lt;br /&gt;
  --enable-cas --enable-webserver --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon \&lt;br /&gt;
  --enable-geoip --with-geoip-lib=/opt/local/lib --with-geoip-headers=/opt/local/include --enable-geoip-static --enable-debug --enable-debug_gdb&lt;br /&gt;
&lt;br /&gt;
You should pay attention to these elements:&lt;br /&gt;
&lt;br /&gt;
# The given example enables debug informations. To disable them change the options ''--enable-debug --enable-debug_gdb'' with ''--disable-debug --disable-debug_gdb --enable-optimize''.&lt;br /&gt;
# The option ''--with-wx-config'' must point to the correct relative path of the compiled wxMac. The example assumes that aMule and wxMac folders are in the same directory (i.e. your desktop). You should also correct the wxMac folder's name according to its version (in the example is 2.8.10).&lt;br /&gt;
# The option ''--with-crypto-prefix'' should point to /usr/local/cryptopp if you compiled Crypto++ starting from its source, out of MacPorts.&lt;br /&gt;
# '''IMPORTANT!''' It seems that Mac OS version of ''ld'' tool is not able to make static library. So if you plan to run/install your compiled aMule on other Mac which doesn't have MacPorts installed you MUST remove the ''--enable-geoip-static'' option to avoid a crash when the program starts.&lt;br /&gt;
&lt;br /&gt;
Now it's time to make you packages with:&lt;br /&gt;
&lt;br /&gt;
  $ make -j8&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
  ./src/utils/scripts/mac_packager&lt;br /&gt;
&lt;br /&gt;
You should find the aMule package in the same source folder.&lt;br /&gt;
&lt;br /&gt;
=== APPENDIX: Universal Binary ===&lt;br /&gt;
&lt;br /&gt;
If no specific options are added, the system compile the packages for the native architecture (i.e. i386 if you are using a Mac Intel or ppc for PowerPcs).&lt;br /&gt;
If you plan to distribute your package or to use it on different platform you probably want to build a [http://en.wikipedia.org/wiki/Universal_binary universal binary] app.&lt;br /&gt;
&lt;br /&gt;
To get a UB package you should &lt;br /&gt;
&lt;br /&gt;
# Install all the libraries and tools (Step 3) through MacPorts invoking the ''+universal'' variant.&lt;br /&gt;
# Attache the option &amp;quot;--enable-universal_binary&amp;quot; to the ''configure'' command of wxMac (Step 4).&lt;br /&gt;
# Add the following options to the aMule ''config'', if you are using Leopard (change &amp;quot;MacOSX10.5.sdk&amp;quot; to &amp;quot;MacOSX10.4.sdk&amp;quot; if you are using Tiger):&lt;br /&gt;
  --disable-dependency-tracking \&lt;br /&gt;
  CFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot; \&lt;br /&gt;
  CXXFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot;&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac</id>
		<title>HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac"/>
				<updated>2009-04-14T05:48:04Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: /* APPENDIX: Universal Binary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_compile_on_Mac-de|Deutsch]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-es|Espa&amp;amp;ntilde;ol]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-fr|Fran&amp;amp;ccedil;ais]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to get and install [[aMule]] on [http://www.apple.com/macosx/ Apple Mac OS X].&lt;br /&gt;
&lt;br /&gt;
# You can simply download the finished application ('binary release'); &lt;br /&gt;
# You compile it from a [[aMule SVN|SVN source snapshot]] or [http://www.amule.org/files/files.php?cat=42 stable release source].&lt;br /&gt;
&lt;br /&gt;
== Binary releases ==&lt;br /&gt;
If you don't want to bother with installing and compiling all those tools and sources, then get one of the pre-compiled [[aMule]] applications. The official release is considered 'stable', but every now and then applications are built from the current source to allow more people to test new features or the like. &lt;br /&gt;
&lt;br /&gt;
# Latest official binary release: [http://www.amule.org/files/files.php?cat=30 aMule-2.1.3-Mac]&lt;br /&gt;
# Check the Mac forum for a more recent user posted binary: [http://forum.amule.org/index.php?board=49.0 aMule forum]&lt;br /&gt;
&lt;br /&gt;
Now, to install the downloaded binary, just drag the aMule application to a folder of your choice (e.g., ''/Applications'').&lt;br /&gt;
&lt;br /&gt;
To start aMule, double-click the application icon.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You might want to take a look at the [[Mac specific usage]] article.&lt;br /&gt;
&lt;br /&gt;
== Compiling from source ==&lt;br /&gt;
Compiling from source allows most current bug reports, because you can compile and test the [[aMule CVS|CVS snapshot]] of the very day.&lt;br /&gt;
&lt;br /&gt;
To compile [[aMule]] from source you need some development tools, the [[wxWidgets]] library and the [http://www.amule.org/files/files.php?cat=42 aMule source].&lt;br /&gt;
&lt;br /&gt;
=== Get the sources and development tools ===&lt;br /&gt;
==== Step 1: Download and install [http://developer.apple.com/tools/xcode Xcode] ====&lt;br /&gt;
[http://developer.apple.com/tools/xcode Xcode] is [http://www.apple.com Apple]'s development environment. We need it for the [http://gcc.gnu.org GCC] compiler. &lt;br /&gt;
&lt;br /&gt;
You will need at least version 2.1 of Xcode, a more recent version is preferable though. You can download the most recent version of Xcode from Apple, but you will need to sign up for a free-of-charge developer account first or log-in using your iTunes Store account.&lt;br /&gt;
&lt;br /&gt;
# Get Xcode from http://developer.apple.com/tools/download&lt;br /&gt;
# &amp;quot;Member Site&amp;quot;-&amp;gt;&amp;quot;Log In&amp;quot;-&amp;gt;&amp;quot;Download Software&amp;quot;-&amp;gt;&amp;quot;Developer Tools&amp;quot;-&amp;gt;&amp;quot;Download Xcode Tools last release&amp;quot;&amp;gt;&amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install [http://www.macports.org MacPorts]====&lt;br /&gt;
[http://www.macports.org MacPorts] is an open source installer for lots of open source tools ported to [http://macos.apple.com Mac OS X]. aMule needs a few of these tools to compile properly. Alternatively, you can also use [http://www.finkproject.org/ Fink] to install these tools or you can install them manually.&lt;br /&gt;
&lt;br /&gt;
# Download the most recent version of [http://www.macports.org MacPorts]&lt;br /&gt;
# Read [http://guide.macports.org/ MacPorts' documentation] to learn how to install applications through [http://www.macports.org MacPorts].&lt;br /&gt;
&lt;br /&gt;
===== Syntax of most important commands =====&lt;br /&gt;
Packages list can be downloaded/updated through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port selfupdate&lt;br /&gt;
&lt;br /&gt;
Packages can be installed through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name''&lt;br /&gt;
&lt;br /&gt;
and removed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port uninstall ''package_name''&lt;br /&gt;
&lt;br /&gt;
Port variants can be invoked with the plus sign:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name'' +universal&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Install libraries and tools ====&lt;br /&gt;
&lt;br /&gt;
These are the package that provides (with dependancies) all needed libraries and tools to build [[wxWidgets]] and [[aMule]] with most of feature:&lt;br /&gt;
&lt;br /&gt;
# automake&lt;br /&gt;
# flex&lt;br /&gt;
# gettext&lt;br /&gt;
# libpng&lt;br /&gt;
# libcryptopp&lt;br /&gt;
# libiconv&lt;br /&gt;
# gd2&lt;br /&gt;
# jpeg&lt;br /&gt;
# libgeoip&lt;br /&gt;
# libupnp&lt;br /&gt;
# pkgconfig&lt;br /&gt;
&lt;br /&gt;
You can copy and paste this line:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install automake flex gettext libpng libcryptopp libiconv gd2 jpeg kibgeoip libupnp pkgconfig&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Compile [[wxWidgets|wxMac]] ====&lt;br /&gt;
[[wxWidgets|wxMac]] is the port of the [[wxWidgets]] library for [http://www.apple.com/macosx Mac OS X]. This library is used to make [[aMule]] 'multi-platform'.&lt;br /&gt;
&lt;br /&gt;
Get the source from: http://www.wxwidgets.org/downloads/ (Source Archives: wxMac) and extract the archive on your desktop.&lt;br /&gt;
Now open a Terminal and type&lt;br /&gt;
&lt;br /&gt;
 $ cd&lt;br /&gt;
&lt;br /&gt;
leave a space after the command, than drag and drop the wxMac uncompressed folder into the Terminal window: the complete path of the folder will be printed on screen. For example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/wxMac-2.8.10/&lt;br /&gt;
&lt;br /&gt;
Press enter.&lt;br /&gt;
Now configure and compile the package with the command:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local &amp;amp;&amp;amp; make -j8&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The above command doesn't enable debug information. Debug informations allows you to submit a helpful stacktrace if [[aMule]] crashes or a sample if it hangs to the [[aMule devs|aMule developers]]. If you want to compile a debug version then you can use &amp;quot;--enable-debug --enable-debug_gdb&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Compile [[aMule]] ====&lt;br /&gt;
Download [http://www.amule.org/files/files.php?cat=42 aMule source] and extract archive into the same place of wxMac (i.e. your desktop if you are following out suggestion).&lt;br /&gt;
Open a Terminal and type:&lt;br /&gt;
&lt;br /&gt;
  $ cd&lt;br /&gt;
&lt;br /&gt;
then leave a space and drag and drop aMule uncompressed folder whose path will be printed on screen, for example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/aMule-2.2.4&lt;br /&gt;
&lt;br /&gt;
Press Enter. Now it's possible to configure the sources: there are several options that can be used to activate or deactivate feature during compiling. This is only an example, that provide a full feature aMule build:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-systray --disable-gtk --enable-embedded_crypto --with-wx-config=../wxMac-2.8.10/wx-config \&lt;br /&gt;
  --enable-optimize --with-crypto-prefix=/opt/local --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local  \&lt;br /&gt;
  --enable-cas --enable-webserver --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon \&lt;br /&gt;
  --enable-geoip --with-geoip-lib=/opt/local/lib --with-geoip-headers=/opt/local/include --enable-geoip-static --enable-debug --enable-debug_gdb&lt;br /&gt;
&lt;br /&gt;
You should pay attention to these elements:&lt;br /&gt;
&lt;br /&gt;
# The given example enables debug informations. To disable them change the options ''--enable-debug --enable-debug_gdb'' with ''--disable-debug --disable-debug_gdb --enable-optimize''.&lt;br /&gt;
# The option ''--with-wx-config'' must point to the correct relative path of the compiled wxMac. The example assumes that aMule and wxMac folders are in the same directory (i.e. your desktop). You should also correct the wxMac folder's name according to its version (in the example is 2.8.10).&lt;br /&gt;
# The option ''--with-crypto-prefix'' should point to /usr/local/cryptopp if you compiled Crypto++ starting from its source, out of MacPorts.&lt;br /&gt;
# '''IMPORTANT!''' It seems that Mac OS version of ''ld'' tool is not able to make static library. So if you plan to run/install your compiled aMule on other Mac which doesn't have MacPorts installed you MUST remove the ''--enable-geoip-static'' option to avoid a crash when the program starts.&lt;br /&gt;
&lt;br /&gt;
Now it's time to make you packages with:&lt;br /&gt;
&lt;br /&gt;
  $ make -j8&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
  ./src/utils/scripts/mac_packager&lt;br /&gt;
&lt;br /&gt;
You should find the aMule package in the same source folder.&lt;br /&gt;
&lt;br /&gt;
=== APPENDIX: Universal Binary ===&lt;br /&gt;
&lt;br /&gt;
If no specific options are added, the system compile the packages for the native architecture (i.e. i386 if you are using a Mac Intel or ppc for PowerPcs).&lt;br /&gt;
If you plan to distribute your package or to use it on different platform you probably want to build a [http://en.wikipedia.org/wiki/Universal_binary universal binary] app.&lt;br /&gt;
&lt;br /&gt;
To get a UB package you should &lt;br /&gt;
&lt;br /&gt;
# Install all the libraries and tools (Step 3) through MacPorts invoking the ''+universal'' variant.&lt;br /&gt;
# Attache the option &amp;quot;--enable-universal_binary&amp;quot; to the ''configure'' command of wxMac (Step 4).&lt;br /&gt;
# Add the following options to the aMule ''config'', if you are using Leopard:&lt;br /&gt;
  --disable-dependency-tracking \&lt;br /&gt;
  CFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot; \&lt;br /&gt;
  CXXFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot;&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac</id>
		<title>HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac"/>
				<updated>2009-04-10T23:03:46Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: /* APPENDIX: Universal Binary */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_compile_on_Mac-de|Deutsch]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-es|Espa&amp;amp;ntilde;ol]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-fr|Fran&amp;amp;ccedil;ais]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to get and install [[aMule]] on [http://www.apple.com/macosx/ Apple Mac OS X].&lt;br /&gt;
&lt;br /&gt;
# You can simply download the finished application ('binary release'); &lt;br /&gt;
# You compile it from a [[aMule SVN|SVN source snapshot]] or [http://www.amule.org/files/files.php?cat=42 stable release source].&lt;br /&gt;
&lt;br /&gt;
== Binary releases ==&lt;br /&gt;
If you don't want to bother with installing and compiling all those tools and sources, then get one of the pre-compiled [[aMule]] applications. The official release is considered 'stable', but every now and then applications are built from the current source to allow more people to test new features or the like. &lt;br /&gt;
&lt;br /&gt;
# Latest official binary release: [http://www.amule.org/files/files.php?cat=30 aMule-2.1.3-Mac]&lt;br /&gt;
# Check the Mac forum for a more recent user posted binary: [http://forum.amule.org/index.php?board=49.0 aMule forum]&lt;br /&gt;
&lt;br /&gt;
Now, to install the downloaded binary, just drag the aMule application to a folder of your choice (e.g., ''/Applications'').&lt;br /&gt;
&lt;br /&gt;
To start aMule, double-click the application icon.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You might want to take a look at the [[Mac specific usage]] article.&lt;br /&gt;
&lt;br /&gt;
== Compiling from source ==&lt;br /&gt;
Compiling from source allows most current bug reports, because you can compile and test the [[aMule CVS|CVS snapshot]] of the very day.&lt;br /&gt;
&lt;br /&gt;
To compile [[aMule]] from source you need some development tools, the [[wxWidgets]] library and the [http://www.amule.org/files/files.php?cat=42 aMule source].&lt;br /&gt;
&lt;br /&gt;
=== Get the sources and development tools ===&lt;br /&gt;
==== Step 1: Download and install [http://developer.apple.com/tools/xcode Xcode] ====&lt;br /&gt;
[http://developer.apple.com/tools/xcode Xcode] is [http://www.apple.com Apple]'s development environment. We need it for the [http://gcc.gnu.org GCC] compiler. &lt;br /&gt;
&lt;br /&gt;
You will need at least version 2.1 of Xcode, a more recent version is preferable though. You can download the most recent version of Xcode from Apple, but you will need to sign up for a free-of-charge developer account first or log-in using your iTunes Store account.&lt;br /&gt;
&lt;br /&gt;
# Get Xcode from http://developer.apple.com/tools/download&lt;br /&gt;
# &amp;quot;Member Site&amp;quot;-&amp;gt;&amp;quot;Log In&amp;quot;-&amp;gt;&amp;quot;Download Software&amp;quot;-&amp;gt;&amp;quot;Developer Tools&amp;quot;-&amp;gt;&amp;quot;Download Xcode Tools last release&amp;quot;&amp;gt;&amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install [http://www.macports.org MacPorts]====&lt;br /&gt;
[http://www.macports.org MacPorts] is an open source installer for lots of open source tools ported to [http://macos.apple.com Mac OS X]. aMule needs a few of these tools to compile properly. Alternatively, you can also use [http://www.finkproject.org/ Fink] to install these tools or you can install them manually.&lt;br /&gt;
&lt;br /&gt;
# Download the most recent version of [http://www.macports.org MacPorts]&lt;br /&gt;
# Read [http://guide.macports.org/ MacPorts' documentation] to learn how to install applications through [http://www.macports.org MacPorts].&lt;br /&gt;
&lt;br /&gt;
===== Syntax of most important commands =====&lt;br /&gt;
Packages list can be downloaded/updated through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port selfupdate&lt;br /&gt;
&lt;br /&gt;
Packages can be installed through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name''&lt;br /&gt;
&lt;br /&gt;
and removed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port uninstall ''package_name''&lt;br /&gt;
&lt;br /&gt;
Port variants can be invoked with the plus sign:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name'' +universal&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Install libraries and tools ====&lt;br /&gt;
&lt;br /&gt;
These are the package that provides (with dependancies) all needed libraries and tools to build [[wxWidgets]] and [[aMule]] with most of feature:&lt;br /&gt;
&lt;br /&gt;
# automake&lt;br /&gt;
# flex&lt;br /&gt;
# gettext&lt;br /&gt;
# libpng&lt;br /&gt;
# libcryptopp&lt;br /&gt;
# libiconv&lt;br /&gt;
# gd2&lt;br /&gt;
# jpeg&lt;br /&gt;
# libgeoip&lt;br /&gt;
# libupnp&lt;br /&gt;
# pkgconfig&lt;br /&gt;
&lt;br /&gt;
You can copy and paste this line:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install automake flex gettext libpng libcryptopp libiconv gd2 jpeg kibgeoip libupnp pkgconfig&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Compile [[wxWidgets|wxMac]] ====&lt;br /&gt;
[[wxWidgets|wxMac]] is the port of the [[wxWidgets]] library for [http://www.apple.com/macosx Mac OS X]. This library is used to make [[aMule]] 'multi-platform'.&lt;br /&gt;
&lt;br /&gt;
Get the source from: http://www.wxwidgets.org/downloads/ (Source Archives: wxMac) and extract the archive on your desktop.&lt;br /&gt;
Now open a Terminal and type&lt;br /&gt;
&lt;br /&gt;
 $ cd&lt;br /&gt;
&lt;br /&gt;
leave a space after the command, than drag and drop the wxMac uncompressed folder into the Terminal window: the complete path of the folder will be printed on screen. For example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/wxMac-2.8.10/&lt;br /&gt;
&lt;br /&gt;
Press enter.&lt;br /&gt;
Now configure and compile the package with the command:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local &amp;amp;&amp;amp; make -j8&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The above command doesn't enable debug information. Debug informations allows you to submit a helpful stacktrace if [[aMule]] crashes or a sample if it hangs to the [[aMule devs|aMule developers]]. If you want to compile a debug version then you can use &amp;quot;--enable-debug --enable-debug_gdb&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Compile [[aMule]] ====&lt;br /&gt;
Download [http://www.amule.org/files/files.php?cat=42 aMule source] and extract archive into the same place of wxMac (i.e. your desktop if you are following out suggestion).&lt;br /&gt;
Open a Terminal and type:&lt;br /&gt;
&lt;br /&gt;
  $ cd&lt;br /&gt;
&lt;br /&gt;
then leave a space and drag and drop aMule uncompressed folder whose path will be printed on screen, for example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/aMule-2.2.4&lt;br /&gt;
&lt;br /&gt;
Press Enter. Now it's possible to configure the sources: there are several options that can be used to activate or deactivate feature during compiling. This is only an example, that provide a full feature aMule build:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-systray --disable-gtk --enable-embedded_crypto --with-wx-config=../wxMac-2.8.10/wx-config \&lt;br /&gt;
  --enable-optimize --with-crypto-prefix=/opt/local --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local  \&lt;br /&gt;
  --enable-cas --enable-webserver --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon \&lt;br /&gt;
  --enable-geoip --with-geoip-lib=/opt/local/lib --with-geoip-headers=/opt/local/include --enable-geoip-static --enable-debug --enable-debug_gdb&lt;br /&gt;
&lt;br /&gt;
You should pay attention to these elements:&lt;br /&gt;
&lt;br /&gt;
# The given example enables debug informations. To disable them change the options ''--enable-debug --enable-debug_gdb'' with ''--disable-debug --disable-debug_gdb --enable-optimize''.&lt;br /&gt;
# The option ''--with-wx-config'' must point to the correct relative path of the compiled wxMac. The example assumes that aMule and wxMac folders are in the same directory (i.e. your desktop). You should also correct the wxMac folder's name according to its version (in the example is 2.8.10).&lt;br /&gt;
# The option ''--with-crypto-prefix'' should point to /usr/local/cryptopp if you compiled Crypto++ starting from its source, out of MacPorts.&lt;br /&gt;
# '''IMPORTANT!''' It seems that Mac OS version of ''ld'' tool is not able to make static library. So if you plan to run/install your compiled aMule on other Mac which doesn't have MacPorts installed you MUST remove the ''--enable-geoip-static'' option to avoid a crash when the program starts.&lt;br /&gt;
&lt;br /&gt;
Now it's time to make you packages with:&lt;br /&gt;
&lt;br /&gt;
  $ make -j8&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
  ./src/utils/scripts/mac_packager&lt;br /&gt;
&lt;br /&gt;
You should find the aMule package in the same source folder.&lt;br /&gt;
&lt;br /&gt;
=== APPENDIX: Universal Binary ===&lt;br /&gt;
&lt;br /&gt;
If no specific options are added, the system compile the packages for the native architecture (i.e. i386 if you are using a Mac Intel or ppc for PowerPcs).&lt;br /&gt;
If you plan to distribute your package or to use it on different platform you probably want to make a [http://en.wikipedia.org/wiki/Universal_binary universal binary].&lt;br /&gt;
&lt;br /&gt;
To get a UB package you should &lt;br /&gt;
&lt;br /&gt;
# Install all the libraries and tools (Step 3) through MacPorts invoking the ''+universal'' variant.&lt;br /&gt;
# Attache the option &amp;quot;--enable-universal_binary&amp;quot; to the ''configure'' command of wxMac (Step 4).&lt;br /&gt;
# Add the following options to the aMule ''config'', if you are using Leopard:&lt;br /&gt;
  --disable-dependency-tracking \&lt;br /&gt;
  CFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot; \&lt;br /&gt;
  CXXFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot;&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac</id>
		<title>HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac"/>
				<updated>2009-04-10T23:02:49Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: /* Syntax of most important command */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_compile_on_Mac-de|Deutsch]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-es|Espa&amp;amp;ntilde;ol]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-fr|Fran&amp;amp;ccedil;ais]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to get and install [[aMule]] on [http://www.apple.com/macosx/ Apple Mac OS X].&lt;br /&gt;
&lt;br /&gt;
# You can simply download the finished application ('binary release'); &lt;br /&gt;
# You compile it from a [[aMule SVN|SVN source snapshot]] or [http://www.amule.org/files/files.php?cat=42 stable release source].&lt;br /&gt;
&lt;br /&gt;
== Binary releases ==&lt;br /&gt;
If you don't want to bother with installing and compiling all those tools and sources, then get one of the pre-compiled [[aMule]] applications. The official release is considered 'stable', but every now and then applications are built from the current source to allow more people to test new features or the like. &lt;br /&gt;
&lt;br /&gt;
# Latest official binary release: [http://www.amule.org/files/files.php?cat=30 aMule-2.1.3-Mac]&lt;br /&gt;
# Check the Mac forum for a more recent user posted binary: [http://forum.amule.org/index.php?board=49.0 aMule forum]&lt;br /&gt;
&lt;br /&gt;
Now, to install the downloaded binary, just drag the aMule application to a folder of your choice (e.g., ''/Applications'').&lt;br /&gt;
&lt;br /&gt;
To start aMule, double-click the application icon.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You might want to take a look at the [[Mac specific usage]] article.&lt;br /&gt;
&lt;br /&gt;
== Compiling from source ==&lt;br /&gt;
Compiling from source allows most current bug reports, because you can compile and test the [[aMule CVS|CVS snapshot]] of the very day.&lt;br /&gt;
&lt;br /&gt;
To compile [[aMule]] from source you need some development tools, the [[wxWidgets]] library and the [http://www.amule.org/files/files.php?cat=42 aMule source].&lt;br /&gt;
&lt;br /&gt;
=== Get the sources and development tools ===&lt;br /&gt;
==== Step 1: Download and install [http://developer.apple.com/tools/xcode Xcode] ====&lt;br /&gt;
[http://developer.apple.com/tools/xcode Xcode] is [http://www.apple.com Apple]'s development environment. We need it for the [http://gcc.gnu.org GCC] compiler. &lt;br /&gt;
&lt;br /&gt;
You will need at least version 2.1 of Xcode, a more recent version is preferable though. You can download the most recent version of Xcode from Apple, but you will need to sign up for a free-of-charge developer account first or log-in using your iTunes Store account.&lt;br /&gt;
&lt;br /&gt;
# Get Xcode from http://developer.apple.com/tools/download&lt;br /&gt;
# &amp;quot;Member Site&amp;quot;-&amp;gt;&amp;quot;Log In&amp;quot;-&amp;gt;&amp;quot;Download Software&amp;quot;-&amp;gt;&amp;quot;Developer Tools&amp;quot;-&amp;gt;&amp;quot;Download Xcode Tools last release&amp;quot;&amp;gt;&amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install [http://www.macports.org MacPorts]====&lt;br /&gt;
[http://www.macports.org MacPorts] is an open source installer for lots of open source tools ported to [http://macos.apple.com Mac OS X]. aMule needs a few of these tools to compile properly. Alternatively, you can also use [http://www.finkproject.org/ Fink] to install these tools or you can install them manually.&lt;br /&gt;
&lt;br /&gt;
# Download the most recent version of [http://www.macports.org MacPorts]&lt;br /&gt;
# Read [http://guide.macports.org/ MacPorts' documentation] to learn how to install applications through [http://www.macports.org MacPorts].&lt;br /&gt;
&lt;br /&gt;
===== Syntax of most important commands =====&lt;br /&gt;
Packages list can be downloaded/updated through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port selfupdate&lt;br /&gt;
&lt;br /&gt;
Packages can be installed through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name''&lt;br /&gt;
&lt;br /&gt;
and removed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port uninstall ''package_name''&lt;br /&gt;
&lt;br /&gt;
Port variants can be invoked with the plus sign:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name'' +universal&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Install libraries and tools ====&lt;br /&gt;
&lt;br /&gt;
These are the package that provides (with dependancies) all needed libraries and tools to build [[wxWidgets]] and [[aMule]] with most of feature:&lt;br /&gt;
&lt;br /&gt;
# automake&lt;br /&gt;
# flex&lt;br /&gt;
# gettext&lt;br /&gt;
# libpng&lt;br /&gt;
# libcryptopp&lt;br /&gt;
# libiconv&lt;br /&gt;
# gd2&lt;br /&gt;
# jpeg&lt;br /&gt;
# libgeoip&lt;br /&gt;
# libupnp&lt;br /&gt;
# pkgconfig&lt;br /&gt;
&lt;br /&gt;
You can copy and paste this line:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install automake flex gettext libpng libcryptopp libiconv gd2 jpeg kibgeoip libupnp pkgconfig&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Compile [[wxWidgets|wxMac]] ====&lt;br /&gt;
[[wxWidgets|wxMac]] is the port of the [[wxWidgets]] library for [http://www.apple.com/macosx Mac OS X]. This library is used to make [[aMule]] 'multi-platform'.&lt;br /&gt;
&lt;br /&gt;
Get the source from: http://www.wxwidgets.org/downloads/ (Source Archives: wxMac) and extract the archive on your desktop.&lt;br /&gt;
Now open a Terminal and type&lt;br /&gt;
&lt;br /&gt;
 $ cd&lt;br /&gt;
&lt;br /&gt;
leave a space after the command, than drag and drop the wxMac uncompressed folder into the Terminal window: the complete path of the folder will be printed on screen. For example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/wxMac-2.8.10/&lt;br /&gt;
&lt;br /&gt;
Press enter.&lt;br /&gt;
Now configure and compile the package with the command:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local &amp;amp;&amp;amp; make -j8&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The above command doesn't enable debug information. Debug informations allows you to submit a helpful stacktrace if [[aMule]] crashes or a sample if it hangs to the [[aMule devs|aMule developers]]. If you want to compile a debug version then you can use &amp;quot;--enable-debug --enable-debug_gdb&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Compile [[aMule]] ====&lt;br /&gt;
Download [http://www.amule.org/files/files.php?cat=42 aMule source] and extract archive into the same place of wxMac (i.e. your desktop if you are following out suggestion).&lt;br /&gt;
Open a Terminal and type:&lt;br /&gt;
&lt;br /&gt;
  $ cd&lt;br /&gt;
&lt;br /&gt;
then leave a space and drag and drop aMule uncompressed folder whose path will be printed on screen, for example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/aMule-2.2.4&lt;br /&gt;
&lt;br /&gt;
Press Enter. Now it's possible to configure the sources: there are several options that can be used to activate or deactivate feature during compiling. This is only an example, that provide a full feature aMule build:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-systray --disable-gtk --enable-embedded_crypto --with-wx-config=../wxMac-2.8.10/wx-config \&lt;br /&gt;
  --enable-optimize --with-crypto-prefix=/opt/local --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local  \&lt;br /&gt;
  --enable-cas --enable-webserver --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon \&lt;br /&gt;
  --enable-geoip --with-geoip-lib=/opt/local/lib --with-geoip-headers=/opt/local/include --enable-geoip-static --enable-debug --enable-debug_gdb&lt;br /&gt;
&lt;br /&gt;
You should pay attention to these elements:&lt;br /&gt;
&lt;br /&gt;
# The given example enables debug informations. To disable them change the options ''--enable-debug --enable-debug_gdb'' with ''--disable-debug --disable-debug_gdb --enable-optimize''.&lt;br /&gt;
# The option ''--with-wx-config'' must point to the correct relative path of the compiled wxMac. The example assumes that aMule and wxMac folders are in the same directory (i.e. your desktop). You should also correct the wxMac folder's name according to its version (in the example is 2.8.10).&lt;br /&gt;
# The option ''--with-crypto-prefix'' should point to /usr/local/cryptopp if you compiled Crypto++ starting from its source, out of MacPorts.&lt;br /&gt;
# '''IMPORTANT!''' It seems that Mac OS version of ''ld'' tool is not able to make static library. So if you plan to run/install your compiled aMule on other Mac which doesn't have MacPorts installed you MUST remove the ''--enable-geoip-static'' option to avoid a crash when the program starts.&lt;br /&gt;
&lt;br /&gt;
Now it's time to make you packages with:&lt;br /&gt;
&lt;br /&gt;
  $ make -j8&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
  ./src/utils/scripts/mac_packager&lt;br /&gt;
&lt;br /&gt;
You should find the aMule package in the same source folder.&lt;br /&gt;
&lt;br /&gt;
=== APPENDIX: Universal Binary ===&lt;br /&gt;
&lt;br /&gt;
If no specific options are added, the system compile the packages for the native architecture (i.e. i386 if you are using a Mac Intel or ppc for PowerPcs).&lt;br /&gt;
If you plan to distribute your package or to use it on different platform you probably want to make a [http://en.wikipedia.org/wiki/Universal_binary universal binary].&lt;br /&gt;
&lt;br /&gt;
To get a UB package you should &lt;br /&gt;
&lt;br /&gt;
# Install all the libraries and tools (Step 3) through MacPorts invoking the ''+universal'' variant.&lt;br /&gt;
# Attache the option &amp;quot;--enable-universal_binary&amp;quot; to the ''configure'' command of wxMac.&lt;br /&gt;
# Add the following options to the aMule ''config'', if you are using Leopard:&lt;br /&gt;
  --disable-dependency-tracking \&lt;br /&gt;
  CFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot; \&lt;br /&gt;
  CXXFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot;&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac</id>
		<title>HowTo compile on Mac</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/HowTo_compile_on_Mac"/>
				<updated>2009-04-10T23:02:19Z</updated>
		
		<summary type="html">&lt;p&gt;Mirko.grewing: Page update...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
'''English''' | &lt;br /&gt;
[[HowTo_compile_on_Mac-de|Deutsch]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-es|Espa&amp;amp;ntilde;ol]] | &lt;br /&gt;
[[HowTo_compile_on_Mac-fr|Fran&amp;amp;ccedil;ais]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to get and install [[aMule]] on [http://www.apple.com/macosx/ Apple Mac OS X].&lt;br /&gt;
&lt;br /&gt;
# You can simply download the finished application ('binary release'); &lt;br /&gt;
# You compile it from a [[aMule SVN|SVN source snapshot]] or [http://www.amule.org/files/files.php?cat=42 stable release source].&lt;br /&gt;
&lt;br /&gt;
== Binary releases ==&lt;br /&gt;
If you don't want to bother with installing and compiling all those tools and sources, then get one of the pre-compiled [[aMule]] applications. The official release is considered 'stable', but every now and then applications are built from the current source to allow more people to test new features or the like. &lt;br /&gt;
&lt;br /&gt;
# Latest official binary release: [http://www.amule.org/files/files.php?cat=30 aMule-2.1.3-Mac]&lt;br /&gt;
# Check the Mac forum for a more recent user posted binary: [http://forum.amule.org/index.php?board=49.0 aMule forum]&lt;br /&gt;
&lt;br /&gt;
Now, to install the downloaded binary, just drag the aMule application to a folder of your choice (e.g., ''/Applications'').&lt;br /&gt;
&lt;br /&gt;
To start aMule, double-click the application icon.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You might want to take a look at the [[Mac specific usage]] article.&lt;br /&gt;
&lt;br /&gt;
== Compiling from source ==&lt;br /&gt;
Compiling from source allows most current bug reports, because you can compile and test the [[aMule CVS|CVS snapshot]] of the very day.&lt;br /&gt;
&lt;br /&gt;
To compile [[aMule]] from source you need some development tools, the [[wxWidgets]] library and the [http://www.amule.org/files/files.php?cat=42 aMule source].&lt;br /&gt;
&lt;br /&gt;
=== Get the sources and development tools ===&lt;br /&gt;
==== Step 1: Download and install [http://developer.apple.com/tools/xcode Xcode] ====&lt;br /&gt;
[http://developer.apple.com/tools/xcode Xcode] is [http://www.apple.com Apple]'s development environment. We need it for the [http://gcc.gnu.org GCC] compiler. &lt;br /&gt;
&lt;br /&gt;
You will need at least version 2.1 of Xcode, a more recent version is preferable though. You can download the most recent version of Xcode from Apple, but you will need to sign up for a free-of-charge developer account first or log-in using your iTunes Store account.&lt;br /&gt;
&lt;br /&gt;
# Get Xcode from http://developer.apple.com/tools/download&lt;br /&gt;
# &amp;quot;Member Site&amp;quot;-&amp;gt;&amp;quot;Log In&amp;quot;-&amp;gt;&amp;quot;Download Software&amp;quot;-&amp;gt;&amp;quot;Developer Tools&amp;quot;-&amp;gt;&amp;quot;Download Xcode Tools last release&amp;quot;&amp;gt;&amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Step 2: Install [http://www.macports.org MacPorts]====&lt;br /&gt;
[http://www.macports.org MacPorts] is an open source installer for lots of open source tools ported to [http://macos.apple.com Mac OS X]. aMule needs a few of these tools to compile properly. Alternatively, you can also use [http://www.finkproject.org/ Fink] to install these tools or you can install them manually.&lt;br /&gt;
&lt;br /&gt;
# Download the most recent version of [http://www.macports.org MacPorts]&lt;br /&gt;
# Read [http://guide.macports.org/ MacPorts' documentation] to learn how to install applications through [http://www.macports.org MacPorts].&lt;br /&gt;
&lt;br /&gt;
===== Syntax of most important command =====&lt;br /&gt;
Packages list can be downloaded/updated through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port selfupdate&lt;br /&gt;
&lt;br /&gt;
Packages can be installed through&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name''&lt;br /&gt;
&lt;br /&gt;
and removed with&lt;br /&gt;
&lt;br /&gt;
  $ sudo port uninstall ''package_name''&lt;br /&gt;
&lt;br /&gt;
Port variants can be invoked with the plus sign:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install ''package_name'' +universal&lt;br /&gt;
&lt;br /&gt;
==== Step 3: Install libraries and tools ====&lt;br /&gt;
&lt;br /&gt;
These are the package that provides (with dependancies) all needed libraries and tools to build [[wxWidgets]] and [[aMule]] with most of feature:&lt;br /&gt;
&lt;br /&gt;
# automake&lt;br /&gt;
# flex&lt;br /&gt;
# gettext&lt;br /&gt;
# libpng&lt;br /&gt;
# libcryptopp&lt;br /&gt;
# libiconv&lt;br /&gt;
# gd2&lt;br /&gt;
# jpeg&lt;br /&gt;
# libgeoip&lt;br /&gt;
# libupnp&lt;br /&gt;
# pkgconfig&lt;br /&gt;
&lt;br /&gt;
You can copy and paste this line:&lt;br /&gt;
&lt;br /&gt;
  $ sudo port install automake flex gettext libpng libcryptopp libiconv gd2 jpeg kibgeoip libupnp pkgconfig&lt;br /&gt;
&lt;br /&gt;
==== Step 4: Compile [[wxWidgets|wxMac]] ====&lt;br /&gt;
[[wxWidgets|wxMac]] is the port of the [[wxWidgets]] library for [http://www.apple.com/macosx Mac OS X]. This library is used to make [[aMule]] 'multi-platform'.&lt;br /&gt;
&lt;br /&gt;
Get the source from: http://www.wxwidgets.org/downloads/ (Source Archives: wxMac) and extract the archive on your desktop.&lt;br /&gt;
Now open a Terminal and type&lt;br /&gt;
&lt;br /&gt;
 $ cd&lt;br /&gt;
&lt;br /&gt;
leave a space after the command, than drag and drop the wxMac uncompressed folder into the Terminal window: the complete path of the folder will be printed on screen. For example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/wxMac-2.8.10/&lt;br /&gt;
&lt;br /&gt;
Press enter.&lt;br /&gt;
Now configure and compile the package with the command:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-shared --enable-unicode --disable-debug --disable-debug_gdb --with-libiconv-prefix=/opt/local &amp;amp;&amp;amp; make -j8&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The above command doesn't enable debug information. Debug informations allows you to submit a helpful stacktrace if [[aMule]] crashes or a sample if it hangs to the [[aMule devs|aMule developers]]. If you want to compile a debug version then you can use &amp;quot;--enable-debug --enable-debug_gdb&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
==== Step 5: Compile [[aMule]] ====&lt;br /&gt;
Download [http://www.amule.org/files/files.php?cat=42 aMule source] and extract archive into the same place of wxMac (i.e. your desktop if you are following out suggestion).&lt;br /&gt;
Open a Terminal and type:&lt;br /&gt;
&lt;br /&gt;
  $ cd&lt;br /&gt;
&lt;br /&gt;
then leave a space and drag and drop aMule uncompressed folder whose path will be printed on screen, for example:&lt;br /&gt;
&lt;br /&gt;
  $ cd /Users/mirko/Desktop/aMule-2.2.4&lt;br /&gt;
&lt;br /&gt;
Press Enter. Now it's possible to configure the sources: there are several options that can be used to activate or deactivate feature during compiling. This is only an example, that provide a full feature aMule build:&lt;br /&gt;
&lt;br /&gt;
  $ ./configure --disable-systray --disable-gtk --enable-embedded_crypto --with-wx-config=../wxMac-2.8.10/wx-config \&lt;br /&gt;
  --enable-optimize --with-crypto-prefix=/opt/local --with-gdlib-config=/opt/local/bin/gdlib-config  --with-libiconv-prefix=/opt/local  \&lt;br /&gt;
  --enable-cas --enable-webserver --enable-amulecmd --enable-amule-gui --enable-wxcas --enable-alc --enable-alcc --enable-amule-daemon \&lt;br /&gt;
  --enable-geoip --with-geoip-lib=/opt/local/lib --with-geoip-headers=/opt/local/include --enable-geoip-static --enable-debug --enable-debug_gdb&lt;br /&gt;
&lt;br /&gt;
You should pay attention to these elements:&lt;br /&gt;
&lt;br /&gt;
# The given example enables debug informations. To disable them change the options ''--enable-debug --enable-debug_gdb'' with ''--disable-debug --disable-debug_gdb --enable-optimize''.&lt;br /&gt;
# The option ''--with-wx-config'' must point to the correct relative path of the compiled wxMac. The example assumes that aMule and wxMac folders are in the same directory (i.e. your desktop). You should also correct the wxMac folder's name according to its version (in the example is 2.8.10).&lt;br /&gt;
# The option ''--with-crypto-prefix'' should point to /usr/local/cryptopp if you compiled Crypto++ starting from its source, out of MacPorts.&lt;br /&gt;
# '''IMPORTANT!''' It seems that Mac OS version of ''ld'' tool is not able to make static library. So if you plan to run/install your compiled aMule on other Mac which doesn't have MacPorts installed you MUST remove the ''--enable-geoip-static'' option to avoid a crash when the program starts.&lt;br /&gt;
&lt;br /&gt;
Now it's time to make you packages with:&lt;br /&gt;
&lt;br /&gt;
  $ make -j8&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
  ./src/utils/scripts/mac_packager&lt;br /&gt;
&lt;br /&gt;
You should find the aMule package in the same source folder.&lt;br /&gt;
&lt;br /&gt;
=== APPENDIX: Universal Binary ===&lt;br /&gt;
&lt;br /&gt;
If no specific options are added, the system compile the packages for the native architecture (i.e. i386 if you are using a Mac Intel or ppc for PowerPcs).&lt;br /&gt;
If you plan to distribute your package or to use it on different platform you probably want to make a [http://en.wikipedia.org/wiki/Universal_binary universal binary].&lt;br /&gt;
&lt;br /&gt;
To get a UB package you should &lt;br /&gt;
&lt;br /&gt;
# Install all the libraries and tools (Step 3) through MacPorts invoking the ''+universal'' variant.&lt;br /&gt;
# Attache the option &amp;quot;--enable-universal_binary&amp;quot; to the ''configure'' command of wxMac.&lt;br /&gt;
# Add the following options to the aMule ''config'', if you are using Leopard:&lt;br /&gt;
  --disable-dependency-tracking \&lt;br /&gt;
  CFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot; \&lt;br /&gt;
  CXXFLAGS=&amp;quot;-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk&amp;quot;&lt;/div&gt;</summary>
		<author><name>Mirko.grewing</name></author>	</entry>

	</feed>