Difference between revisions of "HowTo Compile In Ubuntu"
(temp) |
|||
Line 1: | Line 1: | ||
− | + | This page describes how to compile aMule and its required libraries CryptoPP and wxWidgets on Ubuntu 9.04. We will install everything in our home directory in this example. Make a directory where you want to build and install aMule (we will use <code>/home/me/amule</code> and I'll call it <code>"amule"</code>). | |
− | + | ||
− | + | ||
− | This page describes how to compile aMule and its required libraries CryptoPP and wxWidgets on Ubuntu 9.04. We will install everything in our home directory in this example. | + | |
= Install packages = | = Install packages = | ||
Line 9: | Line 6: | ||
* g++ | * g++ | ||
* binutils-dev | * binutils-dev | ||
+ | * libcrypto++-dev | ||
* libgtk2.0-dev | * libgtk2.0-dev | ||
* libgd2-xpm-dev | * libgd2-xpm-dev | ||
Line 16: | Line 14: | ||
= Build CryptoPP = | = Build CryptoPP = | ||
− | + | You shouldn't try to build CryptoPP on Ubuntu from source. The original CryptoPP headers are broken and cause a zillion warnings later building aMule. The Ubuntu developers provide fixed headers so you should use the lib that comes with it. However you should also install the cryptest tool and verify if CryptoPP really runs on your machine: | |
+ | |||
+ | <code>sudo apt-get install libcrypto++-utils</code> | ||
+ | |||
+ | <code>cryptest v</code> | ||
+ | |||
+ | If you still want to build it, download [http://www.cryptopp.com/cryptopp560.zip CryptoPP 5.6.0]. Unzip it to <code>/home/me/amule/cryptopp</code> . Run <code>make</code>. Then run <code>./cryptest.exe v</code> to validate it (it must print <code>All tests passed!</code>). | ||
= Build wxWidgets = | = Build wxWidgets = | ||
Line 28: | Line 32: | ||
= Build aMule = | = Build aMule = | ||
+ | Make dir and dowload source (I'm tired and will fix this), then | ||
+ | <code>./configure --prefix=/home/me/amule/bin --enable-debug --enable-optimize --with-denoise-level=3 --enable-upnp --enable-geoip --enable-nls --enable-amule-gui --enable-amule-daemon --enable-amulecmd --enable-webserver --enable-alcc -enable-alc --enable-cas --enable-wxcas --enable-mmap --with-wx-config=/home/me/amule/wx/bin/wx-config --with-crypto-prefix=/home/me/amule/cryptopp</code> | ||
− | + | Leave out the --with-crypto-prefix when using the Ubuntu CryptoPP. Also leave out the --enable-upnp if you don't need UPnP (that is if you are able to set up port forwarding in your router). | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | Now just run make and that's it! You can start aMule with command "/home/me/amule/bin/amule". |
Revision as of 23:13, 19 September 2009
This page describes how to compile aMule and its required libraries CryptoPP and wxWidgets on Ubuntu 9.04. We will install everything in our home directory in this example. Make a directory where you want to build and install aMule (we will use /home/me/amule
and I'll call it "amule"
).
Install packages
Use Synaptic Package Manager (if you use GNOME) or KPackageKit/Adept (if you use KDE) to install the following packages:
- g++
- binutils-dev
- libcrypto++-dev
- libgtk2.0-dev
- libgd2-xpm-dev
- libgeoip-dev
- libupnp3-dev
- zlib1g-dev
Build CryptoPP
You shouldn't try to build CryptoPP on Ubuntu from source. The original CryptoPP headers are broken and cause a zillion warnings later building aMule. The Ubuntu developers provide fixed headers so you should use the lib that comes with it. However you should also install the cryptest tool and verify if CryptoPP really runs on your machine:
sudo apt-get install libcrypto++-utils
cryptest v
If you still want to build it, download CryptoPP 5.6.0. Unzip it to /home/me/amule/cryptopp
. Run make
. Then run ./cryptest.exe v
to validate it (it must print All tests passed!
).
Build wxWidgets
Make directory amule/wx
. Download latest stable wxGTK (2.8.10 writing this). Wx 2.9 is still experimental, if you feel adventurous you can try it (but only with aMule 2.3).
Extract it with tar xzf wxGTK-2.8.10.tar.gz
. Make and cd to wx/build and run
../wxGTK-2.8.10/configure --prefix=/home/me/amule/wx --with-gtk --enable-unicode --enable-optimise --disable-shared
then make
and make install
.
Build aMule
Make dir and dowload source (I'm tired and will fix this), then
./configure --prefix=/home/me/amule/bin --enable-debug --enable-optimize --with-denoise-level=3 --enable-upnp --enable-geoip --enable-nls --enable-amule-gui --enable-amule-daemon --enable-amulecmd --enable-webserver --enable-alcc -enable-alc --enable-cas --enable-wxcas --enable-mmap --with-wx-config=/home/me/amule/wx/bin/wx-config --with-crypto-prefix=/home/me/amule/cryptopp
Leave out the --with-crypto-prefix when using the Ubuntu CryptoPP. Also leave out the --enable-upnp if you don't need UPnP (that is if you are able to set up port forwarding in your router).
Now just run make and that's it! You can start aMule with command "/home/me/amule/bin/amule".