Difference between revisions of "Using another wxinstall"

From AMule Project FAQ
Jump to: navigation, search
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.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 (assuming [[wxWidgets]] 2.4.2 and current (=>rc7) aMule).
  
in [[wxWidgets|wxGTK]] source dir:
+
It is recommended that you read the article about [[Compilation_Installation#Step_1:_wxGTK|how to compile wxGTK]] and (optionally, only if installing a [[wxWidgets]] version prior to 2.5) [[Compilation_Installation#Step_2:_wxBase|how to compile wxBase]]
''<pre>
+
mkdir ~/aMule
+
./configure --prefix=~/aMule --disable-gtk2 --with-gtk
+
make && make install
+
</pre>''
+
  
in [[wxWidgets|wxBase]] source dir:
+
In [[aMule]] source dir:<br>
''<pre>
+
''./configure --prefix=~/aMule/ --enable-debug --disable-optimize --with-wx-config=~/aMule/bin/wx-config --with-wxbase-config=~/aMule/bin/wxbase-2.4-config''<br>
mkdir ~/aMule
+
''make && make install''
./configure --prefix=~/aMule
+
make && make install
+
</pre>''
+
 
+
In [[aMule]] source dir:
+
''<pre>
+
./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
+
</pre>''
+
  
 
'''NOTE:''' On some distros, instead of ''--with-wx-config=~/aMule/bin/wx-config'' you might need to use ''--with-wx-config=~/aMule/bin/wxgtk-2.4-config''
 
'''NOTE:''' On some distros, instead of ''--with-wx-config=~/aMule/bin/wx-config'' you might need to use ''--with-wx-config=~/aMule/bin/wxgtk-2.4-config''
  
'''NOTE 2:''' Sometimes [[wxBase]] will overwrite ''wx-config''. You can know if it has done so by running ''wx-cinfig --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.
+
'''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]] binnary will be installed in ''~/aMule/'' directory.
 +
 
 +
Also note that ''--with-wxbase-config=...'' should only be used with [[wxWidgets]] versions prior to 2.5.
  
 
To start [[aMule]], you need to explicitely specifiy the LD path each time you run it:
 
To start [[aMule]], you need to explicitely specifiy the LD path each time you run it:

Revision as of 16:38, 30 November 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 (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 (assuming wxWidgets 2.4.2 and current (=>rc7) aMule).

It is recommended that you read the article about how to compile wxGTK and (optionally, only if installing a wxWidgets version prior to 2.5) how to compile wxBase

In aMule source dir:
./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

NOTE: On some distros, instead of --with-wx-config=~/aMule/bin/wx-config you might need to use --with-wx-config=~/aMule/bin/wxgtk-2.4-config

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 binnary will be installed in ~/aMule/ directory.

Also note that --with-wxbase-config=... should only be used with wxWidgets versions prior to 2.5.

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

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