Difference between revisions of "Compilation Installation"

From AMule Project FAQ
Jump to: navigation, search
m (Step 1: wxWidgets: Update wxWidgets version to 2.8.12)
 
(88 intermediate revisions by 23 users not shown)
Line 1: Line 1:
== Part "A" describes manual compilation from a tarball, part "B" rpm installation! ==
+
<center>
 +
[[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>
  
 +
== 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.
  
<u><b><font color="red">A)</font> [[wxWidgets|wxGTK]] - [[wxBase]] - [[libcrypto]] - [[aMule]] manual compilation</b></u>
+
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.
  
*Step 1. wxGTK
+
Please see the specific articles for more detailed instructions.
**download wxGTK ->
+
*[[HowTo_compile_on_Mac|Compile aMule on Mac]]
***[http://download.berlios.de/amule/wxGTK-2.4.2.tar.gz wxGTK-2.4.2.tar.gz]
+
*[[HowTo compile on Win32|Compile aMule on Windows]]
***(mirror) [http://download.gna.org/amule/wxGTK-wxBase/wxGTK-2.4.2.tar.gz wxGTK-2.4.2.tar.gz]
+
  
* compile wxGTK ->
+
=== Step 1: [[wxWidgets]] ===
**tar -zxvf wxGTK-2.4.2.tar.gz
+
*Download [[wxWidgets]]: [http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.8.12.tar.gz wxWidgets-2.8.12.tar.gz]
***cd wxGTK-2.4.2
+
***./configure --prefix=/usr --disable-gtk2 --enable-timedate --enable-gui --enable-protocol --enable-http --enable-ftp --enable-resources --enable-prologio --disable-debug --enable-final --enable-timer --with-gtk --disable-profile && make
+
  
*as root:
+
*Compile [[wxWidgets]]
**make install
+
**''tar -zxvf wxWidgets-2.8.12.tar.gz''
**ldconfig
+
**''cd wxWidgets-2.8.12''
 +
**''Linked against [http://www.gtk.org GTK]2: ./configure --enable-unicode --enable-optimise
 +
**''make''
  
 +
*As '''root''' (in some distributions simply use "sudo" before):
 +
**''make install''
 +
**''ldconfig''
  
*Step 2. wxBase
+
==== Disable the GUI ====
**download wxBase ->
+
*To compile wxWidgets without a graphical User Interface, ''use the option --disable-gui''
***[http://download.berlios.de/amule/wxBase-2.4.2.tar.gz wxBase-2.4.2.tar.gz]
+
***(mirror) [http://download.gna.org/amule/wxGTK-wxBase/wxBase-2.4.2.tar.gz wxBase-2.4.2.tar.gz]
+
  
* compile wxBase ->
+
=== Step 2: [[aMule]] ===
**tar -zxvf wxBase-2.4.2.tar.gz
+
*Download the latest [[aMule SVN|source tarball]]: [http://amule.sourceforge.net/tarballs/tarballs.xml Download aMule]
**cd wxBase-2.4.2
+
**./configure --prefix=/usr && make
+
  
*as root:
+
*Compile [[aMule]] (please check the [[configure|configure article]]) ->
**make install
+
**''tar -zxvf aMule-X.X.X.tar.gz'' (replace X with the right version number..)
**<font color="blue">ln -sf /usr/bin/wxgtk-2.4-config /usr/bin/wx-config
+
**''cd aMule-X.X.X''
**ln -sf /usr/bin/wxbase-2.4-config /usr/bin/wxbase-config</font>
+
**''./configure --disable-debug --enable-optimize''
**ldconfig
+
**''make''
  
 +
*As '''root''' (in some distributions simply use "sudo" before):
 +
**''make install''
  
*Step 3. libcrypto
+
*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
**download libcrypto ->
+
***[http://download.berlios.de/amule/crypto-5.1.tar.bz2 crypto-5.1.tar.bz2]
+
***(mirror) [http://download.gna.org/amule/libcrypto/crypto-5.1.tar.bz2 crypto-5.1.tar.bz2]
+
 
+
*compile libcrypto ->
+
**tar xvjf crypto-5.1.tar.bz2
+
**cd crypto-5.1
+
**make
+
 
+
*as root:
+
**make install && ldconfig
+
 
+
 
+
*Step 4. aMule
+
**download latest aMule version ->
+
***[https://developer.berlios.de/project/showfiles.php?group_id=1296 latest aMule]
+
***(mirror) [http://download.gna.org/amule/ latest aMule]
+
 
+
* compile aMule ->
+
**tar -zxvf aMule-X.X.X.tar.gz (replace X with the right version nr..)
+
**cd aMule-X.X.X
+
**./configure --disable-debug --enable-optimise && make
+
 
+
*as root:
+
**make install
+
 
+
*run aMule as user from your console by typing -> amule
+
 
+
 
+
 
+
<u><b><font color="red">B)</font> wxGTK - wxBase - libcrypto - aMule rpms</b></u>
+
 
+
 
+
*Step 1. wxGTK
+
**download wxGTK and wxGTK-devel ->
+
***[http://download.berlios.de/amule/wxGTK-2.4.2-1.i386.rpm wxGTK-2.4.2-1.i386.rpm]&nbsp;&nbsp; [http://download.berlios.de/amule/wxGTK-devel-2.4.2-1.i386.rpm wxGTK-devel-2.4.2-1.i386.rpm]
+
***(mirror) [http://download.gna.org/amule/wxGTK-wxBase/wxGTK-2.4.2-1.i386.rpm wxGTK-2.4.2-1.i386.rpm]&nbsp;&nbsp; [http://download.gna.org/amule/wxGTK-wxBase/wxGTK-devel-2.4.2-1.i386.rpm wxGTK-devel-2.4.2-1.i386.rpm]
+
 
+
* install wxGTK ->
+
**as root:
+
***rpm -Uvh wxGTK-2.4.2-1.i386.rpm wxGTK-devel-2.4.2-1.i386.rpm
+
***ldconfig
+
 
+
*Step 2. wxBase
+
**download wxBase ->
+
***[http://download.berlios.de/amule/wxBase-2.4.2-1.i586.rpm wxBase-2.4.2-1.i586.rpm]
+
***(mirror) [http://download.gna.org/amule/wxGTK-wxBase/wxBase-2.4.2-1.i586.rpm wxBase-2.4.2-1.i586.rpm]
+
 
+
*install wxBase ->
+
**as root:
+
***rpm -Uvh wxBase-2.4.2-1.i586.rpm
+
***<font color="blue">ln -sf /usr/bin/wxgtk-2.4-config /usr/bin/wx-config
+
***ln -sf /usr/bin/wxbase-2.4-config /usr/bin/wxbase-config</font>
+
***ldconfig
+
 
+
 
+
*Step 3. libcrypto
+
**download libcrypto ->
+
***RH & SuSE: [http://download.berlios.de/amule/libcryptopp-5.1-4_rh9-suse.i686.rpm libcryptopp-5.1-4_rh9-suse.i686.rpm]&nbsp;&nbsp; [http://download.berlios.de/amule/libcryptopp-devel-5.1-4_rh9-suse.i686.rpm libcryptopp-devel-5.1-4_rh9-suse.i686.rpm]
+
***RH & SuSE (mirror): [http://download.gna.org/amule/libcrypto/libcryptopp-5.1-4_rh9-suse.i686.rpm libcryptopp-5.1-4_rh9-suse.i686.rpm]&nbsp;&nbsp; [http://download.gna.org/amule/libcrypto/libcryptopp-devel-5.1-4_rh9-suse.i686.rpm libcryptopp-devel-5.1-4_rh9-suse.i686.rpm] 
+
***FC1: [http://download.berlios.de/amule/libcryptopp-5.1-4_fc1.i686.rpm libcryptopp-5.1-4_fc1.i686.rpm]&nbsp;&nbsp; [http://download.berlios.de/amule/libcryptopp-devel-5.1-4_fc1.i686.rpm libcryptopp-devel-5.1-4_fc1.i686.rpm]
+
***FC1 (mirror): [http://download.gna.org/amule/libcrypto/libcryptopp-5.1-4_fc1.i686.rpm libcryptopp-5.1-4_fc1.i686.rpm]&nbsp;&nbsp; [http://download.gna.org/amule/libcrypto/libcryptopp-devel-5.1-4_fc1.i686.rpm libcryptopp-devel-5.1-4_fc1.i686.rpm]
+
***MDK: [http://download.berlios.de/amule/libcryptopp5-5.1-1mdk.i586.rpm libcryptopp5-5.1-1mdk.i586.rpm]&nbsp;&nbsp; [http://download.berlios.de/amule/libcryptopp5-devel-5.1-1mdk.i586.rpm libcryptopp5-devel-5.1-1mdk.i586.rpm]
+
***MDK (mirror): [http://download.gna.org/amule/libcrypto/libcryptopp5-5.1-1mdk.i586.rpm libcryptopp5-5.1-1mdk.i586.rpm]&nbsp;&nbsp; [http://download.gna.org/amule/libcrypto/libcryptopp5-devel-5.1-1mdk.i586.rpm libcryptopp5-devel-5.1-1mdk.i586.rpm]
+
**as root:
+
***rpm -Uvh the-above-downloaded-package.rpm
+
 
+
*Step 4. aMule
+
**download latest aMule version ->
+
***[https://developer.berlios.de/project/showfiles.php?group_id=1296 latest aMule]
+
***(mirror) [http://download.gna.org/amule/ latest aMule]
+
 
+
* install aMule ->
+
**as root:
+
***rpm -Uvh aMule-X.X.X-1.iX86-X.rpm (replace X with the right version nr..)
+
 
+
* run aMule as 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