Difference between revisions of "Compilation Installation"

From AMule Project FAQ
Jump to: navigation, search
(=Step 1: wxGTK=)
m (Step 1: wxWidgets: Update wxWidgets version to 2.8.12)
 
(39 intermediate revisions by 19 users not shown)
Line 1: Line 1:
 
<center>
 
<center>
'''English''' | [[Compilation_Installation-fr|Français]] | [[Compilation_Installation-nl|Nederlands]] | [[Compilation_Installation-br|Português]]
+
[[Compilation_Installation|English]] |  
 +
[[Compilation_Installation-de|Deutsch]] |
 +
[[Compilation_Installation-es|Espa&ntilde;ol]] |
 +
[[Compilation_Installation-fr|Fran&ccedil;ais]] |  
 +
[[Compilation_Installation-it|Italiano]] |
 +
[[Compilation_Installation-nl|Nederlands]] |  
 +
[[Compilation_Installation-pl|Polish]] |
 +
[[Compilation_Installation-br|Português]] |
 +
[[Compilation_Installation-ru|Russian]]
 
</center>
 
</center>
  
== Manual Installation ==
+
== Compiling from Sources ==
 +
'''WARNING:''' Make sure you have '''no''' copies of [[wxWidgets]] installed. If you already have [[wxWidgets]] installed, check [[How to uninstall wxWidgets]] before starting a new installation. If you continue have problems, then [[Check_if_wx_is_installed_twice|check if wx is installed twice]], since that's a common compilation and runtime problem.
  
To install [[aMule]] you can either install it from scratch, as described in [[Compilation_Installation#Compiling From Sources|Compiling From Sources]], or use [http://www.rpm.org RPM]s, as described in the [[Compilation_Installation#Installing using RPMs|Installing using RPMs]] section. Using [http://www.rpm.org RPM]s will speed things up a lot but is not available by default with all [http://www.kernel.org linux] distributions.
+
There are different versions of the wxWidgets for different platforms. wxGTK is used for Linux, Solaris and BSD, wxMSW for Windows and wxMac for Mac OS X. Here we'll explain the compilation using wxGTK, but it differs only slightly for other toolkits.
  
== Compiling From Sources ==
+
Please see the specific articles for more detailed instructions.
 +
*[[HowTo_compile_on_Mac|Compile aMule on Mac]]
 +
*[[HowTo compile on Win32|Compile aMule on Windows]]
  
'''WARNING:''' Make sure you have '''no''' copies of [[wxWidgets]] installed. If you already have [[wxWidgets]] installed, check [[How to uninstall wxWidgets]] before starting a new installation. If you continue have problems, then [[Check_if_wx_is_installed_twice|check if wx is installed twice]], since that's a common compilation and runtime problem.
+
=== Step 1: [[wxWidgets]] ===
 +
*Download [[wxWidgets]]: [http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.8.12.tar.gz wxWidgets-2.8.12.tar.gz]
  
'''NOTE:''' In [[wxWidgets]] >= 2.5.1, [[wxBase]] is not distributed as a separate tarball.
+
*Compile [[wxWidgets]]
 +
**''tar -zxvf wxWidgets-2.8.12.tar.gz''
 +
**''cd wxWidgets-2.8.12''
 +
**''Linked against [http://www.gtk.org GTK]2: ./configure --enable-unicode --enable-optimise
 +
**''make''
  
==== Step 1: [[wxWidgets|wxGTK]] ====
+
*As '''root''' (in some distributions simply use "sudo" before):
 
+
*Download [[wxWidgets|wxGTK]] ->
+
**[ftp://biolpc22.york.ac.uk/pub/2.6.1/wxGTK-2.6.1.tar.gz wxGTK-2.6.1.tar.gz]
+
 
+
*Compile [[wxWidgets|wxGTK]]
+
**''tar -zxvf wxGTK-2.6.1.tar.gz''
+
**''cd wxGTK-2.6.1''
+
**Link against the [http://www.gtk.org GTK] version you have on your system (choose one):
+
***''Linked against [http://www.gtk.org GTK]1: ./configure --prefix=/usr --disable-gtk2 && make''
+
***''Linked against [http://www.gtk.org GTK]2: ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise && make
+
*As '''root''':
+
 
**''make install''
 
**''make install''
 
**''ldconfig''
 
**''ldconfig''
  
==== Step 2: [[wxBase]] ====
+
==== Disable the GUI ====
 +
*To compile wxWidgets without a graphical User Interface, ''use the option --disable-gui''
  
*Since [[wxGTK]] 2.5.x, you don't need [[wxBase]] anymore unless you want to compile [[aMule|aMule daemon]] without X.
+
=== Step 2: [[aMule]] ===
 
+
*Download the latest [[aMule SVN|source tarball]]: [http://amule.sourceforge.net/tarballs/tarballs.xml Download aMule]
==== Step 3: [[aMule]] ====
+
 
+
*Download the latest [[aMule]] version ->
+
**[http://developer.berlios.de/project/showfiles.php?group_id=1296 Latest aMule]
+
  
 
*Compile [[aMule]] (please check the [[configure|configure article]]) ->
 
*Compile [[aMule]] (please check the [[configure|configure article]]) ->
 
**''tar -zxvf aMule-X.X.X.tar.gz'' (replace X with the right version number..)
 
**''tar -zxvf aMule-X.X.X.tar.gz'' (replace X with the right version number..)
 
**''cd aMule-X.X.X''
 
**''cd aMule-X.X.X''
**''./configure --disable-debug --enable-optimize && make''
+
**''./configure --disable-debug --enable-optimize''
 +
**''make''
  
*As '''root''':
+
*As '''root''' (in some distributions simply use "sudo" before):
 
**''make install''
 
**''make install''
  
*Run [[aMule]] as a regular user from console by typing -> ''amule''
+
*Run [[aMule]] as a regular user from console by typing ''amule'', or run [[aMule]] through a link from the proper application menu of your operating system
 
+
== Installing using RPMs ==
+
 
+
==== Step 1: [[wxWidgets|wxGTK]] ====
+
 
+
*Download [[wxWidgets|wxGTK]] for your [http://www.kernel.org Linux] distribution ->
+
**[http://www.amule.org/files/files.php?cat=12 wxGTK-2.6.1]
+
 
+
*Install [[wxWidgets|wxGTK]] ->
+
**As '''root''':
+
***''rpm -Uvh wxGTK-2.6.1-X.rpm'' (replace X with the right name..)
+
***''ldconfig''
+
 
+
==== Step 2: [[aMule]] ====
+
 
+
*Download latest [[aMule]] version ->
+
**[http://developer.berlios.de/project/showfiles.php?group_id=1296 Latest aMule]
+
 
+
*Install [[aMule]] ->
+
**As '''root''':
+
***''rpm -Uvh aMule-X.rpm'' (replace X with the right name and version number..)
+
 
+
* Run [[aMule]] as a regular user from your console by typing -> ''amule''
+

Latest revision as of 10:34, 10 July 2020

English | Deutsch | Español | Français | Italiano | Nederlands | Polish | Português | Russian

Compiling from Sources

WARNING: Make sure you have no copies of wxWidgets installed. If you already have wxWidgets installed, check How to uninstall wxWidgets before starting a new installation. If you continue have problems, then check if wx is installed twice, since that's a common compilation and runtime problem.

There are different versions of the wxWidgets for different platforms. wxGTK is used for Linux, Solaris and BSD, wxMSW for Windows and wxMac for Mac OS X. Here we'll explain the compilation using wxGTK, but it differs only slightly for other toolkits.

Please see the specific articles for more detailed instructions.

Step 1: wxWidgets

  • Compile wxWidgets
    • tar -zxvf wxWidgets-2.8.12.tar.gz
    • cd wxWidgets-2.8.12
    • Linked against GTK2: ./configure --enable-unicode --enable-optimise
    • make
  • As root (in some distributions simply use "sudo" before):
    • make install
    • ldconfig

Disable the GUI

  • To compile wxWidgets without a graphical User Interface, use the option --disable-gui

Step 2: aMule

  • Compile aMule (please check the configure article) ->
    • tar -zxvf aMule-X.X.X.tar.gz (replace X with the right version number..)
    • cd aMule-X.X.X
    • ./configure --disable-debug --enable-optimize
    • make
  • As root (in some distributions simply use "sudo" before):
    • make install
  • Run aMule as a regular user from console by typing amule, or run aMule through a link from the proper application menu of your operating system