Difference between revisions of "HowTo compile on Mac"

From AMule Project FAQ
Jump to: navigation, search
(completely rc6 now :))
Line 20: Line 20:
 
# get source from the internet and unpack it
 
# get source from the internet and unpack it
 
curl -O http://heanet.dl.sourceforge.net/sourceforge/wxwindows/wxMac-2.5.2.tar.gz
 
curl -O http://heanet.dl.sourceforge.net/sourceforge/wxwindows/wxMac-2.5.2.tar.gz
curl -O http://amule.hirnriss.net/cvs/aMule-cvs-20040927.tar.bz2
+
curl -O http://download.berlios.de/amule/aMule-2.0.0rc6.tar.bz2
tar -xjf aMule-cvs-20040927.tar.bz2
+
 
tar -xzf wxMac-2.5.2.tar.gz
 
tar -xzf wxMac-2.5.2.tar.gz
 +
tar -xjf aMule-2.0.0rc6.tar.bz2
  
 
# remove downloaded archives after unpacking
 
# remove downloaded archives after unpacking
Line 39: Line 39:
  
 
# compile aMule
 
# compile aMule
cd aMule-cvs
+
cd aMule-2.0.0rc6
 
./configure --disable-systray  --disable-gtk --enable-embedded_crypto --with-wx-prefix=/usr/local --with-wx-config=/usr/local/bin/wx-config  
 
./configure --disable-systray  --disable-gtk --enable-embedded_crypto --with-wx-prefix=/usr/local --with-wx-config=/usr/local/bin/wx-config  
 
make
 
make

Revision as of 13:12, 4 October 2004

The following is the commands you should type to install aMule on MacOS X.
This HowTo is written to install aMule cvs but should work for any other version. Please note that you should always download the latest aMule version available.
Whenever curl is used, if it isn't installed on your system, just download the file manually. Lines beginning with a # character are comments on what the following lines do.

# install Xcode Tools
# http://developer.apple.com/tools/download/
# Getting ADC ID > Log In > Download Software > Developer Tools > Download Xcode Tools last release > Install

# install Fink too, since gettext is needed
# http://fink.sourceforge.net
# read the info at http://fink.sourceforge.net/download to learn how to install gettext

# make amule dir in home
cd ~
mkdir amule
cd amule

# get source from the internet and unpack it
curl -O http://heanet.dl.sourceforge.net/sourceforge/wxwindows/wxMac-2.5.2.tar.gz
curl -O http://download.berlios.de/amule/aMule-2.0.0rc6.tar.bz2
tar -xzf wxMac-2.5.2.tar.gz
tar -xjf aMule-2.0.0rc6.tar.bz2

# remove downloaded archives after unpacking
rm wxMac-2.5.2.tar.gz aMule-cvs-20040927.tar.bz2

# install wxMac
cd wxMac-2.5.2
# directory "build" should already be there. if not, create it with 
# "mkdir build":
cd build
../configure
make
sudo make install
cd ..
cd ..

# compile aMule
cd aMule-2.0.0rc6
./configure --disable-systray  --disable-gtk --enable-embedded_crypto --with-wx-prefix=/usr/local --with-wx-config=/usr/local/bin/wx-config 
make
cd ..

# optional: reduce size of amule from 44 MB to 3 MB while loosing
# debug info :-(
strip src/amule

# create app-Container
curl -O http://one2one.no.sapo.pt/amule.tar.bz2
tar -xjf amule.tar.bz2
rm amule.tar.bz2
cp aMule-cvs/src/amule amule.app/Contents/MacOS/

# move amule to your Applications folder
mv amule.app /Applications


If you get an error like this: You cannot open the application "amule" because it may be damaged or incomplete, right click on amule then click on Show Packages Contents, go to Contents>MacOS> and double click on amule. Next time you start from amule.app it will run fine. If you still get the same error, move amule.app to the desktop and run it from there.