Difference between revisions of "Using another wxinstall"

From AMule Project FAQ
Jump to: navigation, search
(unicode and gtk2 are still not stable)
(big change, since some newbies messes up their home dirs as root)
Line 1: Line 1:
 
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.5.2 and current (=>20040801) [[aMule CVS]]).
+
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.5.2 and current (=>rc6) aMule).
 
+
'''''NOTE:''' If you use the recommended ''/home/muli'', you will most probably need root rights for that, everything else is done as regular user (remember: '''never''' work as root!).''
+
  
 
in [[wxWidgets]] source dir:
 
in [[wxWidgets]] source dir:
 
''<pre>
 
''<pre>
mkdir /home/muli/BUILD
+
mkdir ~/aMule
./configure --prefix=/home/muli/BUILD --disable-gtk2 --with-gtk
+
./configure --prefix=~/aMule --disable-gtk2 --with-gtk
 
make && make install
 
make && make install
 
</pre>''
 
</pre>''
Line 14: Line 12:
 
In [[aMule]] source dir:
 
In [[aMule]] source dir:
 
''<pre>
 
''<pre>
export LD_LIBRARY_PATH=/home/muli/BUILD/lib:$LD_LIBRARY_PATH
+
export LD_LIBRARY_PATH=~/aMule/lib:$LD_LIBRARY_PATH
./configure --prefix=/home/muli/BUILD --enable-debug --with-wx-prefix=/home/muli/BUILD --with-wx-config=/home/muli/BUILD/bin/wxgtk2u-2.5-config
+
./configure --prefix=~/aMule/ --enable-debug --with-wx-prefix=~/aMule --with-wx-config=~/aMule/bin/wxgtk2u-2.5-config
 
make && make install
 
make && make install
 
</pre>''
 
</pre>''
Line 22: Line 20:
  
 
''<pre>
 
''<pre>
export LD_LIBRARY_PATH=/home/muli/BUILD/lib:$LD_LIBRARY_PATH
+
export LD_LIBRARY_PATH=~/aMule/lib:$LD_LIBRARY_PATH
 
export LC_ALL=en_EN.UTF-8
 
export LC_ALL=en_EN.UTF-8
gdb /home/muli/BUILD/bin/amule
+
gdb ~/aMule/bin/amule
 
gdb>handle SIGPIPE nostop noprint pass
 
gdb>handle SIGPIPE nostop noprint pass
 
gdb>handle SIG32 nostop noprint pass
 
gdb>handle SIG32 nostop noprint pass

Revision as of 21:25, 20 October 2004

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.5.2 and current (=>rc6) aMule).

in wxWidgets source dir:

mkdir ~/aMule
./configure --prefix=~/aMule --disable-gtk2 --with-gtk
make && make install

In aMule source dir:

export LD_LIBRARY_PATH=~/aMule/lib:$LD_LIBRARY_PATH
./configure --prefix=~/aMule/ --enable-debug --with-wx-prefix=~/aMule --with-wx-config=~/aMule/bin/wxgtk2u-2.5-config
make && make install

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
gdb ~/aMule/bin/amule
gdb>handle SIGPIPE nostop noprint pass
gdb>handle SIG32 nostop noprint pass
gdb>set height 0
gdb>run