Difference between revisions of "HowTo Compile In MDK"

From AMule Project FAQ
Jump to: navigation, search
m (Adjusted Links)
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 +
<h1><font color=red>Someone should check how recent this Article is, and update it for 2.1.3 or better 2.2.0</font></h1>
 +
 
<center><h2>by ''elui''</h2><br>
 
<center><h2>by ''elui''</h2><br>
 
'''English''' | [[HowTo_Compile_In_MDK-es|Español]] | [[HowTo_Compile_In_MDK-fr|Français]]</center>
 
'''English''' | [[HowTo_Compile_In_MDK-es|Español]] | [[HowTo_Compile_In_MDK-fr|Français]]</center>
  
+
== Before we start ==
 
+
 
This how-to explains the way to install and compile [[aMule]] on [http://www.mandrake.com Mandrake] 10.0 by using [http://www.urpmi.org urpmi]. I guess it would work in any other [http://www.mandrake.com Mandrake] version but I haven't tried it.
 
This how-to explains the way to install and compile [[aMule]] on [http://www.mandrake.com Mandrake] 10.0 by using [http://www.urpmi.org urpmi]. I guess it would work in any other [http://www.mandrake.com Mandrake] version but I haven't tried it.
  
Line 12: Line 13:
 
There are others packages needed to install [[aMule]] on [http://www.mandrake.com Mandrake]. However, in this case, [http://www.mandrake.com Mandrake] official packages are fine. These packages are:
 
There are others packages needed to install [[aMule]] on [http://www.mandrake.com Mandrake]. However, in this case, [http://www.mandrake.com Mandrake] official packages are fine. These packages are:
  
 
'''curl'''<br>
 
 
'''libgd'''  <----- this is needed only to use the ''-o'' option of [[CAS]]. If you're not going to use that option, you don't have to install it.
 
'''libgd'''  <----- this is needed only to use the ''-o'' option of [[CAS]]. If you're not going to use that option, you don't have to install it.
 
  
 
If you also want to compile [[aMule]], you must install the devel packages corresponding to those:
 
If you also want to compile [[aMule]], you must install the devel packages corresponding to those:
  
'''curl-devel'''<br>
 
 
'''libgd-devel'''<br>
 
'''libgd-devel'''<br>
 
  
 
To install all this packages, you must have well-configured [http://urpmi.org urpmi] sources (look [http://easyurpmi.zarb.org easyurpmi] or [http://bailandodesvan.webcindario.com/urpmidor urpmidor] to verify). If you have them well-configured, you only must do:
 
To install all this packages, you must have well-configured [http://urpmi.org urpmi] sources (look [http://easyurpmi.zarb.org easyurpmi] or [http://bailandodesvan.webcindario.com/urpmidor urpmidor] to verify). If you have them well-configured, you only must do:
  
''urpmi curl''<br>
 
 
''urpmi libgd''
 
''urpmi libgd''
  
''urpmi curl-devel''<br>
 
 
''urpmi libgd-devel''
 
''urpmi libgd-devel''
  
 +
Let's start!
  
Let's start
+
== [[aMule]] version 2.0.0rc5 or earlier (For 9.2-10.0 only) ==
 
+
<h1>[[aMule]] version <= 2.0.0rc5 (For 9.2-10.0 only)</h1>
+
 
+
 
Always remember:
 
Always remember:
 
<ul>
 
<ul>
Line 42: Line 34:
 
</ul>
 
</ul>
  
The problem when installing [[aMule]] on [http://www.mandrake.com Mandrake]] 10 (and 9.X), is that [[wxWidgets|wxGTK]] official [http://www.mandrake.com Mandrake] package is linked against [http://www.gtk.org GTK2] and [[aMule]] needs it to be linked against [http://www.gtk.org GTK1]. The solution is to use the [[wxWidgets|wx]] RPM packages from the [http://dl.amule.org aMule website].
+
The problem when installing [[aMule]] on [http://www.mandrake.com Mandrake]] 10 (and 9.X), is that [[wxWidgets|wxGTK]] official [http://www.mandrake.com Mandrake] package is linked against [http://www.gtk.org GTK2] and [[aMule]] needs it to be linked against [http://www.gtk.org GTK1]. The solution is to use the [[wxWidgets]] [http://www.rpm.org RPM] packages from the [http://dl.amule.org aMule website].
  
 
This can be done following the [[Compilation_Installation|compilation how-to]] in the [[Main_Page|wiki of aMule]], but when doing it with [http://urpmi.org urpmi], you have the advantage of controlling the version conflict between [http://www.mandrake.com Mandrake]'s [[wxWidgets|wxGTK]] package and [[aMule]]'s [http://dl.amule.org website] package every time you update your system.
 
This can be done following the [[Compilation_Installation|compilation how-to]] in the [[Main_Page|wiki of aMule]], but when doing it with [http://urpmi.org urpmi], you have the advantage of controlling the version conflict between [http://www.mandrake.com Mandrake]'s [[wxWidgets|wxGTK]] package and [[aMule]]'s [http://dl.amule.org website] package every time you update your system.
1. Create a directory to put in [[wxWidgets|wxGTK]] and [[wxBase]] RPM packages from the [[aMule]] [http://dl.amule.org website].
+
1. Create a directory to put in [[wxWidgets|wxGTK]] and [[wxBase]] RPM packages from the [[aMule]] [http://dl.amule.org website]:
  
 
''mkdir /home/user/RPMS''
 
''mkdir /home/user/RPMS''
  
copy there:
+
Copy there:
  
 
'''wxGTK-2.4.2.rpm'''<br>
 
'''wxGTK-2.4.2.rpm'''<br>
Line 58: Line 50:
  
 
'''wxGTK-devel-2.4.2.rpm'''
 
'''wxGTK-devel-2.4.2.rpm'''
 
  
 
2. Get in the new directory,
 
2. Get in the new directory,
Line 67: Line 58:
  
 
''genhdlist''
 
''genhdlist''
 
  
 
3. Add that directory as a new source to [http://www.urpmi.org urpmi]
 
3. Add that directory as a new source to [http://www.urpmi.org urpmi]
  
 
''urpmi.addmedia dirRPMS file://home/user/RPMS with hdlist.cz''
 
''urpmi.addmedia dirRPMS file://home/user/RPMS with hdlist.cz''
 
  
 
4. Go to '''RPMDRAKE''' -> '''Remove Software''', and search for ''[[wxWidgets|wx]]''. Select ''wxBase'', ''wxGTK'' and ''wxGTK-devel'' and remove all of them from your computer. If your computer doesn't find any of them, it just wasn't installed, so there's no need to remove it ;)<br>
 
4. Go to '''RPMDRAKE''' -> '''Remove Software''', and search for ''[[wxWidgets|wx]]''. Select ''wxBase'', ''wxGTK'' and ''wxGTK-devel'' and remove all of them from your computer. If your computer doesn't find any of them, it just wasn't installed, so there's no need to remove it ;)<br>
 
Make sure you uninstall '''all''' [[wxWidgets]], since it could happen that more than one version is installed.
 
Make sure you uninstall '''all''' [[wxWidgets]], since it could happen that more than one version is installed.
  
5. Install [[wxWidgets|wxGTK]] packages from dirRPMS source by doing:
+
5. Install [[WxWidgets|wxGTK]] packages from dirRPMS source by doing:
  
 
''urpmi wxGTK-2.4.2''
 
''urpmi wxGTK-2.4.2''
  
if you also want to compile [[aMule]] you must also install
+
If you also want to compile [[aMule]] you must also install:
  
 
''urpmi wxGTK-devel-2.4.2''
 
''urpmi wxGTK-devel-2.4.2''
  
6. Install [[wxBase]] package
+
6. Install [[wxBase]] package:
  
 
''urpmi wxBase-2.4.2''
 
''urpmi wxBase-2.4.2''
  
Make sure you install the right packages from dirRPMS copying their exact name after [http://www.urpmi.org urpmi].
+
Make sure you install the right packages from dirRPMS copying their exact name after [http://www.urpmi.org urpmi]:
  
 
''urpmi wxGTK-devel-2.4.2''
 
''urpmi wxGTK-devel-2.4.2''
  
then you must create the following symbolic links:
+
Then you must create the following symbolic links:
  
 
''ln -sf /usr/bin/wxgtk-2.4-config /usr/bin/wx-config''<br>
 
''ln -sf /usr/bin/wxgtk-2.4-config /usr/bin/wx-config''<br>
 
''ln -sf /usr/bin/wxbase-2.4-config /usr/bin/wxbase-config''
 
''ln -sf /usr/bin/wxbase-2.4-config /usr/bin/wxbase-config''
  
 
+
7. Now you can do:
7. Now you can do
+
  
 
''urpmi aMule-2.0.0rc5-MDK_9.2-10.rpm''
 
''urpmi aMule-2.0.0rc5-MDK_9.2-10.rpm''
  
or compile [[aMule]] from the sources .tar.gz
+
Or compile [[aMule]] from the sources .tar.gz
  
 
Following this how-to, you get an easy way to install back all of the packages that [http://www.urpmi.org urpmi] will remove each time you update your system with ''urpmi --auto-select''.
 
Following this how-to, you get an easy way to install back all of the packages that [http://www.urpmi.org urpmi] will remove each time you update your system with ''urpmi --auto-select''.
Line 109: Line 97:
 
After updating the system with [http://urpmi.org urpmi] you must remove back [[wxBase]] (and [[wxWidgets|wxGTK]] if it also changes it), and then install the packages from dirRPMS as we have done before.
 
After updating the system with [http://urpmi.org urpmi] you must remove back [[wxBase]] (and [[wxWidgets|wxGTK]] if it also changes it), and then install the packages from dirRPMS as we have done before.
  
 +
== [[aMule]] version 2.0.0rc6 or newer (For 9.2-10.0 only) ==
 +
There are also two ways to proceed here, by using [[wxWidgets]] packages directly from [http://www.mandrake.com Mandrake], or using custom [[wxWidgets|wx]] [http://www.rpm.org rpm]s.
  
<h1>[[aMule]] version >= 2.0.0rc6 (For 9.2-10.0 only)</h1>
+
<font color=#ff0000>Some users have reported problems using [[wxWidgets]] from [http://www.mandrake.com Mandrake], so you are warned!</font>
 
+
There are also two ways to proceed here, by using [[wxWidgets|wx]] packages directly from [http://www.mandrake.com Mandrake], or using Custom [[wxWidgets|wx]] rpms.
+
 
+
<font color=#ff0000>Some users have reported problems using wx from [http://www.mandrake.com Mandrake], so you are warned !</font>
+
  
 
As usual, clean your computer before by suppressing all previous [[wxWidgets|wx]] rpms:
 
As usual, clean your computer before by suppressing all previous [[wxWidgets|wx]] rpms:
Line 120: Line 106:
 
Go to '''RPMDRAKE''' -> '''Remove Software''', and search for ''[[wxWidgets|wx]]'' and remove all.
 
Go to '''RPMDRAKE''' -> '''Remove Software''', and search for ''[[wxWidgets|wx]]'' and remove all.
  
<h3>1. Installation with [http://www.mandrake.com Mandrake] [[wxWidgets|wx]] RPM:</h3>
+
=== Installation with [http://www.mandrake.com Mandrake] [[wxWidgets]] [http://www.rpm.org RPM] ===
 
+
 
Go to '''RPMDRAKE''' -> '''Install Software''' and select '''libwxGTK2ud''' (and '''libwxGTK2ud-devel''' if you want to compile [[aMule]] yourself)
 
Go to '''RPMDRAKE''' -> '''Install Software''' and select '''libwxGTK2ud''' (and '''libwxGTK2ud-devel''' if you want to compile [[aMule]] yourself)
  
 
Then, install [http://download.berlios.de/amule/aMule-2.0.0rc6-1mdk-10.0.i586.rpm aMule-2.0.0rc6-1mdk-10.0.i586.rpm].
 
Then, install [http://download.berlios.de/amule/aMule-2.0.0rc6-1mdk-10.0.i586.rpm aMule-2.0.0rc6-1mdk-10.0.i586.rpm].
  
<h3>2. Installation with Customs [[wxWidgets|wx]] RPM:</h3>
+
=== Installation with customs [[wxWidgets]] [http://www.rpm.org RPM] ===
 +
Install [http://download.berlios.de/amule/libwxgtk-gtk2u_2.5_3-2.5.3-4mdk-10.0.i586.rpm libwxgtk-gtk2u_2.5_3-2.5.3-4mdk-10.0.i586.rpm] and if you want to compile [[aMule]] yourself [http://download.berlios.de/amule/libwxgtk-gtk2u_2.5_3-devel-2.5.3-4mdk-10.0.i586.rpm libwxgtk-gtk2u_2.5_3-devel-2.5.3-4mdk-10.0.i586.rpm]. Then [http://download.berlios.de/amule/aMule-2.0.0rc7-1mdk-10.0.i586.rpm aMule-2.0.0rc7-1mdk-10.0.i586.rpm]
  
Install:
+
== [[aMule]] version 2.0.0rc6 or newer (For 10.1 only) ==
 +
There is two way to proceed here, by using [[wxWidgets|wx]] packages directly from [http://www.mandrake.co Mandrake], or using custom [[wxWidgets]] [http://www.rpm.org rpm]s.
  
[http://download.berlios.de/amule/libwxgtk-gtk2u_2.5_3-2.5.3-4mdk-10.0.i586.rpm libwxgtk-gtk2u_2.5_3-2.5.3-4mdk-10.0.i586.rpm]
+
<font color=#ff0000>Some users have reported problems using [[wxWidgets|wx]] from [http://www.mandrake.com Mandrake], so you are warned!</font>
 
+
and if you want to compile [[aMule]] yourself:
+
 
+
[http://download.berlios.de/amule/libwxgtk-gtk2u_2.5_3-devel-2.5.3-4mdk-10.0.i586.rpm libwxgtk-gtk2u_2.5_3-devel-2.5.3-4mdk-10.0.i586.rpm]
+
 
+
Then:
+
 
+
[http://download.berlios.de/amule/aMule-2.0.0rc7-1mdk-10.0.i586.rpm aMule-2.0.0rc7-1mdk-10.0.i586.rpm]
+
 
+
 
+
<h1>[[aMule]] version >= 2.0.0rc6 (For 10.1 only)</h1>
+
 
+
There is two way to proceed here, by using [[wxWidgets|wx]] packages directly from Mandrake, or using Custom [[wxWidgets|wx]] rpms.
+
 
+
<font color=#ff0000>Some users have reported problems using [[wxWidgets|wx]] from [http://www.mandrake.com Mandrake], so you are warned !</font>
+
  
 
As usual, clean your computer before by suppressing all previous [[wxWidgets|wx]] rpms:
 
As usual, clean your computer before by suppressing all previous [[wxWidgets|wx]] rpms:
Line 151: Line 123:
 
Go to '''RPMDRAKE''' -> '''Remove Software''', and search for ''[[wxWidgets|wx]]'' and remove all.
 
Go to '''RPMDRAKE''' -> '''Remove Software''', and search for ''[[wxWidgets|wx]]'' and remove all.
  
<h3>1. Installation with Mandrake wx RPM:</h3>
+
=== Installation with [http://www.mandrake.co Mandrake] [[wxWidgets]] [http://www.rpm.prg RPM] ===
 
+
 
Go to '''RPMDRAKE''' -> '''Install Software''' and select '''wxGTK2.5''' (and '''wxGTK2.5-devel''' if you want to compile [[aMule]] yourself)
 
Go to '''RPMDRAKE''' -> '''Install Software''' and select '''wxGTK2.5''' (and '''wxGTK2.5-devel''' if you want to compile [[aMule]] yourself)
  
 
Then, install [http://download.berlios.de/amule/aMule-2.0.0rc6-2mdk-10.1.i586.rpm aMule-2.0.0rc6-2mdk-10.1.i586.rpm].
 
Then, install [http://download.berlios.de/amule/aMule-2.0.0rc6-2mdk-10.1.i586.rpm aMule-2.0.0rc6-2mdk-10.1.i586.rpm].
  
<h3>2. Installation with Custom [[wxWidgets|wx]] RPMs:</h3>
+
=== Installation with Custom [[wxWidgets|wx]] RPMs ===
 +
Install [http://download.berlios.de/amule/libwxgtk-gtk2u_2.5_3-2.5.3-5mdk-10.1.i586.rpm libwxgtk-gtk2u_2.5_3-2.5.3-5mdk-10.1.i586.rpm] and if you want to compile [[aMule]] yourself, [http://download.berlios.de/amule/libwxgtk-gtk2u_2.5_3-devel-2.5.3-5mdk-10.1.i586.rpm libwxgtk-gtk2u_2.5_3-devel-2.5.3-5mdk-10.1.i586.rpm]. Then [http://download.berlios.de/amule/aMule-2.0.0rc7-2mdk-10.1.i586.rpm aMule-2.0.0rc7-2mdk-10.1.i586.rpm]
  
Install:
+
== [[aMule]] version >= 2.0.3 CVS (For 10.2 only) ==
 +
<h3>by ''iDAREK''</h3>
  
[http://download.berlios.de/amule/libwxgtk-gtk2u_2.5_3-2.5.3-5mdk-10.1.i586.rpm libwxgtk-gtk2u_2.5_3-2.5.3-5mdk-10.1.i586.rpm]  
+
#First remove all [[wxWidgets]] [http://www.rpm.org rmp]s
 +
#Download [http://www.rpm.org RPM]s and install it:
 +
#Install (only this [[wxWidgets]] packages):
  
and if you want to compile [[aMule]] yourself:
+
libwxgtkgl2.5_3-2.5.3-6mdk<br>
 +
libwxgtk2.5_3-devel-2.5.3-6mdk<br>
 +
wxGTK2.5-2.5.3-6mdk<br>
 +
libwxgtk2.5_3-2.5.3-6mdk<br>
  
[http://download.berlios.de/amule/libwxgtk-gtk2u_2.5_3-devel-2.5.3-5mdk-10.1.i586.rpm libwxgtk-gtk2u_2.5_3-devel-2.5.3-5mdk-10.1.i586.rpm]
+
You can find it on http://rpm.pbone.net/
  
Then:
+
Then you may install [[aMule]] from [http://www.rpm.org RPM] or try to compile from sources.
  
[http://download.berlios.de/amule/aMule-2.0.0rc7-2mdk-10.1.i586.rpm aMule-2.0.0rc7-2mdk-10.1.i586.rpm]
+
Good luck!

Latest revision as of 14:19, 22 January 2008

Someone should check how recent this Article is, and update it for 2.1.3 or better 2.2.0

by elui


English | Español | Français

Before we start

This how-to explains the way to install and compile aMule on Mandrake 10.0 by using urpmi. I guess it would work in any other Mandrake version but I haven't tried it.

There is 2 ways to do it now, for aMule until 2.0.0rc5 and for versions above (beginning at rc6).

This is because we can link aMule with wx-2.5.x from 2.0.0rc6

There are others packages needed to install aMule on Mandrake. However, in this case, Mandrake official packages are fine. These packages are:

libgd <----- this is needed only to use the -o option of CAS. If you're not going to use that option, you don't have to install it.

If you also want to compile aMule, you must install the devel packages corresponding to those:

libgd-devel

To install all this packages, you must have well-configured urpmi sources (look easyurpmi or urpmidor to verify). If you have them well-configured, you only must do:

urpmi libgd

urpmi libgd-devel

Let's start!

aMule version 2.0.0rc5 or earlier (For 9.2-10.0 only)

Always remember:

The problem when installing aMule on Mandrake] 10 (and 9.X), is that wxGTK official Mandrake package is linked against GTK2 and aMule needs it to be linked against GTK1. The solution is to use the wxWidgets RPM packages from the aMule website.

This can be done following the compilation how-to in the wiki of aMule, but when doing it with urpmi, you have the advantage of controlling the version conflict between Mandrake's wxGTK package and aMule's website package every time you update your system. 1. Create a directory to put in wxGTK and wxBase RPM packages from the aMule website:

mkdir /home/user/RPMS

Copy there:

wxGTK-2.4.2.rpm
wxBase-2.4.2.rpm
aMule-2.0.0rc5-MDK_9.2-10.rpm

if you also want to compile aMule you must also copy:

wxGTK-devel-2.4.2.rpm

2. Get in the new directory,

cd /home/user/RPMS

and run genhdlist to create hdlist.cz:

genhdlist

3. Add that directory as a new source to urpmi

urpmi.addmedia dirRPMS file://home/user/RPMS with hdlist.cz

4. Go to RPMDRAKE -> Remove Software, and search for wx. Select wxBase, wxGTK and wxGTK-devel and remove all of them from your computer. If your computer doesn't find any of them, it just wasn't installed, so there's no need to remove it ;)
Make sure you uninstall all wxWidgets, since it could happen that more than one version is installed.

5. Install wxGTK packages from dirRPMS source by doing:

urpmi wxGTK-2.4.2

If you also want to compile aMule you must also install:

urpmi wxGTK-devel-2.4.2

6. Install wxBase package:

urpmi wxBase-2.4.2

Make sure you install the right packages from dirRPMS copying their exact name after urpmi:

urpmi wxGTK-devel-2.4.2

Then you must create the following symbolic links:

ln -sf /usr/bin/wxgtk-2.4-config /usr/bin/wx-config
ln -sf /usr/bin/wxbase-2.4-config /usr/bin/wxbase-config

7. Now you can do:

urpmi aMule-2.0.0rc5-MDK_9.2-10.rpm

Or compile aMule from the sources .tar.gz

Following this how-to, you get an easy way to install back all of the packages that urpmi will remove each time you update your system with urpmi --auto-select.

After updating the system with urpmi you must remove back wxBase (and wxGTK if it also changes it), and then install the packages from dirRPMS as we have done before.

aMule version 2.0.0rc6 or newer (For 9.2-10.0 only)

There are also two ways to proceed here, by using wxWidgets packages directly from Mandrake, or using custom wx rpms.

Some users have reported problems using wxWidgets from Mandrake, so you are warned!

As usual, clean your computer before by suppressing all previous wx rpms:

Go to RPMDRAKE -> Remove Software, and search for wx and remove all.

Installation with Mandrake wxWidgets RPM

Go to RPMDRAKE -> Install Software and select libwxGTK2ud (and libwxGTK2ud-devel if you want to compile aMule yourself)

Then, install aMule-2.0.0rc6-1mdk-10.0.i586.rpm.

Installation with customs wxWidgets RPM

Install libwxgtk-gtk2u_2.5_3-2.5.3-4mdk-10.0.i586.rpm and if you want to compile aMule yourself libwxgtk-gtk2u_2.5_3-devel-2.5.3-4mdk-10.0.i586.rpm. Then aMule-2.0.0rc7-1mdk-10.0.i586.rpm

aMule version 2.0.0rc6 or newer (For 10.1 only)

There is two way to proceed here, by using wx packages directly from Mandrake, or using custom wxWidgets rpms.

Some users have reported problems using wx from Mandrake, so you are warned!

As usual, clean your computer before by suppressing all previous wx rpms:

Go to RPMDRAKE -> Remove Software, and search for wx and remove all.

Installation with Mandrake wxWidgets RPM

Go to RPMDRAKE -> Install Software and select wxGTK2.5 (and wxGTK2.5-devel if you want to compile aMule yourself)

Then, install aMule-2.0.0rc6-2mdk-10.1.i586.rpm.

Installation with Custom wx RPMs

Install libwxgtk-gtk2u_2.5_3-2.5.3-5mdk-10.1.i586.rpm and if you want to compile aMule yourself, libwxgtk-gtk2u_2.5_3-devel-2.5.3-5mdk-10.1.i586.rpm. Then aMule-2.0.0rc7-2mdk-10.1.i586.rpm

aMule version >= 2.0.3 CVS (For 10.2 only)

by iDAREK

  1. First remove all wxWidgets rmps
  2. Download RPMs and install it:
  3. Install (only this wxWidgets packages):

libwxgtkgl2.5_3-2.5.3-6mdk
libwxgtk2.5_3-devel-2.5.3-6mdk
wxGTK2.5-2.5.3-6mdk
libwxgtk2.5_3-2.5.3-6mdk

You can find it on http://rpm.pbone.net/

Then you may install aMule from RPM or try to compile from sources.

Good luck!