Difference between revisions of "Using another wxinstall"

From AMule Project FAQ
Jump to: navigation, search
m (Corrected Spelling of Español in language selection)
 
(22 intermediate revisions by 13 users not shown)
Line 1: Line 1:
 +
<center>
 +
'''English''' |
 +
[[Using another wxinstall-de|Deutsch]] |
 +
[[Using_another_wxinstall-es|Espa&ntilde;ol]]
 +
</center>
 +
 
If there's already a version of [[wxWidgets]] installed, but you want [[aMule]] to use another (probably newer) one, here are the steps to follow:
 
If there's already a version of [[wxWidgets]] installed, but you want [[aMule]] to use another (probably newer) one, here are the steps to follow:
  
First, create the target directory, where [[wxWidgets]] and [[aMule]] will reside (they don't need to be in the same dir, but it makes life easier). Then configure [[wxWidgets]] and [[aMule]] accordingly (assuming [[wxWidgets]] 2.4.2 and current (=>rc7) aMule).
+
First, create the target directory (in this article, as an example, ''~/aMule/'' will be used), where [[wxWidgets]] and [[aMule]] will reside (they don't need to be in the same dir, but it makes life easier). Then configure [[wxWidgets]] and [[aMule]] accordingly.
  
in [[wxWidgets]] source dir (don't forget to install the patch!):
+
It is recommended that you read the article about [[Compilation_Installation#Step_1:_wxGTK|how to compile wxGTK]]
''<pre>
+
mkdir ~/aMule
+
./configure --prefix=~/aMule --disable-gtk2 --with-gtk
+
make && make install
+
</pre>''
+
  
In [[aMule]] source dir:
+
In [[aMule]] source dir:<br>
''<pre>
+
''./configure --prefix=/home/'''user'''/aMule/ --enable-debug --disable-optimize --with-wx-config=/home/'''user'''/aMule/bin/wx-config''<br>
./configure --prefix=~/aMule/ --enable-debug --disable-optimize --with-wx-config=~/aMule/bin/wx-config --with-wxbase-config=~/aMule/bin/wxbase-2.4-config
+
''make && make install''
make && make install
+
</pre>''
+
  
To start [[aMule]], you need to explicitely specifiy the LD path each time you run it:
+
'''NOTE 2:''' Sometimes [[wxBase]] will overwrite ''wx-config''. You can know if it has done so by running ''wx-config --basename''. It should show ''wx_gtk''. If it doesn't, please reinstall [[WxWidgets|wxGTK]] so it will overwritte ''wx-config'' to link it to the [[WxWidgets|wxGTK]] file.
  
''<pre>
+
On the above example, [[aMule]] binary will be installed in ''~/aMule/bin/'' directory.
export LD_LIBRARY_PATH=~/aMule/lib:$LD_LIBRARY_PATH
+
 
export LC_ALL=en_EN.UTF-8
+
To start [[aMule]], you need to explicitely specifiy the LD path each time you run it:
gdb ~/aMule/bin/amule
+
gdb>handle SIGPIPE nostop noprint pass
+
gdb>handle SIG32 nostop noprint pass
+
gdb>set height 0
+
gdb>run
+
</pre>''
+
  
After aMule crashed, generate a backtrace and post it in the aMule forum:
+
''export LD_LIBRARY_PATH=~/aMule/lib:$LD_LIBRARY_PATH''<br>
 +
''export LC_ALL=en_EN.UTF-8''
  
''<pre>
+
'''NOTE 3:''' On some systems the above export command does not work, you have instead to run<br>
...
+
''export LD_LIBRARY_PATH=~/aMule/lib/:$LD_LIBRARY_PATH''<br>
Program received signal SIGSEGV, Segmentation fault.
+
This has been observed on [[Debian]] and [http://www.gentoo.org Gentoo Linux].
  
gdb>bt
+
Please remember to create [[Backtraces]] and provide them to the [[AMule_devs|aMule development team]].
gdb>bt full
+
</pre>''
+

Latest revision as of 13:57, 24 September 2008

English | Deutsch | Español

If there's already a version of wxWidgets installed, but you want aMule to use another (probably newer) one, here are the steps to follow:

First, create the target directory (in this article, as an example, ~/aMule/ will be used), where wxWidgets and aMule will reside (they don't need to be in the same dir, but it makes life easier). Then configure wxWidgets and aMule accordingly.

It is recommended that you read the article about how to compile wxGTK

In aMule source dir:
./configure --prefix=/home/user/aMule/ --enable-debug --disable-optimize --with-wx-config=/home/user/aMule/bin/wx-config
make && make install

NOTE 2: Sometimes wxBase will overwrite wx-config. You can know if it has done so by running wx-config --basename. It should show wx_gtk. If it doesn't, please reinstall wxGTK so it will overwritte wx-config to link it to the wxGTK file.

On the above example, aMule binary will be installed in ~/aMule/bin/ directory.

To start aMule, you need to explicitely specifiy the LD path each time you run it:

export LD_LIBRARY_PATH=~/aMule/lib:$LD_LIBRARY_PATH
export LC_ALL=en_EN.UTF-8

NOTE 3: On some systems the above export command does not work, you have instead to run
export LD_LIBRARY_PATH=~/aMule/lib/:$LD_LIBRARY_PATH
This has been observed on Debian and Gentoo Linux.

Please remember to create Backtraces and provide them to the aMule development team.