HowTo Compile In FC3
From AMule Project FAQ
Contents |
Someone should check how recent this Article is, and update it for 2.1.3 or better 2.2.0
This HowTo explains compiling aMule and wxGTK from source under Fedora Core 3 and 4
First of all, you need a sane toolchain for GCC - This means you need to have the GCC package and its dependencies installed. Then, you need several development packages. The one I found most surprising was gettext-devel, because in FC2 and FC1 there was one single package for gettext. So be sure to have gettext-devel installed, as well as gtk+-devel, curl-devel and gd-devel. The easiest way to achieve this is usually using yum, the Fedora package manager.
yum install gettext-devel gtk+-devel curl-devel gd-devel
This should install all necessary devel packages, as well as the libraries/packages itself if they are not installed.
Now, we're ready to go for the compilation of wxGTK
- wxGTK-2.4.2 & wxBase-2.4.2: You need to compile two libraries to compile all programs that are included within the aMule source package, but 2.4.2 is the stable release of the wxWidgets library at the moment.
- wxGTK-2.5.4 : This package includes wxGTK and wxBase and it is generally much less cpu hungry, but it is marked unstable and you might probably get troubles due to that. (I didn't encounter any trouble, btw)
So, decide for one of the two options and let's go!
First of all, download all necessary packages:
If you decided for wxGTK-2.4.2:
- wxGTK-2.4.2.tar.bz2
- wxBase-2.4.2.tar.bz2
If you decided for wxGTK-2.5.4:
- wxGTK-2.5.4.tar.bz2
And finally
- aMule-2.0.0rc8.tar.bz2
For wxGTK-2.4.2 & wxBase-2.4.2
tar xfj wxGTK-2.4.2.tar.bz2
cd into the new directory
cd wxGTK-2.4.2/
and run the configure script
./configure --prefix=/usr --disable-gtk2
Once that is finished without errors, you can go and build the package! Simply type
make
After that has finished, become super-user (generally root) with
su (Type in super-user's password)
run
make install
and exit super-user mode
exit
Next, let's install the wxBase package
tar xfj wxBase-2.4.2.tar.bz2
cd into it
cd wxBase-2.4.2/
run configure
./configure --prefix=/usr
run make
make
and install as super-user again:
su (Type in super-user's password)
make install
ln -sf /usr/bin/wxgtk-2.4-config /usr/bin/wx-config
ln -sf /usr/bin/wxbase-2.4-config /usr/bin/wxbase-config
Now exit super-user mode:
exit
For wxGTK-2.5.4
NOTE: There is support in aMule for a wxWidgets that is linked against GTK2 - But be warned, wxWidgets will leak HELL of a lot memory (about 100MB of RAM per day!) and so I really do not recommend this!
tar xfj wxGTK-2.5.4.tar.bz2
cd into the new directory
cd wxGTK-2.5.4/
configure wxWidgets
./configure --prefix=/usr --disable-gtk2
run make
make
and install as super-user
su (Type in super-user's password)
make install
Now exit super-user mode
exit
Good, you have wxWidgets now.
Compilation of aMule
tar xfj aMule-2.0.0rc7.tar.bz2
cd into the new directory
cd aMule-2.0.0rc8/
Configure aMule (please take a look at this article)
./configure --prefix=/usr --enable-optimize --disable-debug --enable-wxcas --enable-cas --enable-alc --enable-alcc --enable-amule-daemon --enable-amulecmd --enable-webserver
(This command tells the configure system to build every single program included in the aMule source package)
make it:
make
and as super-user, install:
su (Type in super-user's password)
make install
That's it! You're done!
Comments and problems
Comments / corrections are welcome, you can find me usually on IRC in #amule at irc://irc.freenode.net or reach me by mail: citroklar at amule dot org
2005-03-11: Updated by Citroklar to version numbers wxGTK-2.5.4 and aMule-2.0.0rc8 after I got a tip to do so from bannerman in #amule. Thanks!
2005-10-07: it works also with wxWidgets CVS (2.7.0); I tried to build aMule on FC4 against wx compiled in ANSI+release mode.
