aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Wxwidget  (Read 2714 times)

kriko

  • Guest
Wxwidget
« on: March 24, 2007, 01:28:01 PM »

I compiled my mule with:
Code: [Select]
./configure --prefix /home/kriko/Desktop/mulica/ --with-wxdir=/usr/wxWidgets/bin/ --with-wx-prefix=/usr/wxWidgets/
As you see I have wxwidgets in a special path.
When I start amule I get:

Code: [Select]
./amule: error while loading shared libraries: libwx_gtk2u_adv-2.8.so.0: cannot open shared object file: No such file or directory
What can I do so amule will pick this file from wxwidget dir as specified. I also have globally installed wxwidget, but it is a stripped down version and amule doesn't compile with it at all.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Wxwidget
« Reply #1 on: March 24, 2007, 04:30:15 PM »

Hi kriko:

Adjust LD_LIBRARY_PATH
e.g. export LD_LIBRARY_PATH=/home/kriko/Desktop/mulica/lib/:${LD_LIBRARY_PATH}

If it works now, you can adjust /etc/ld.so.conf (or create it) and add a line containing your wx path and run ldconfig as root.

kind regards
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Wxwidget
« Reply #2 on: March 24, 2007, 06:56:27 PM »

Or if you don't want to change a global environment variable, you can start aMule like this:

$ LD_LIBRARY_PATH=/usr/wxWidgets/lib/ amule &

This is what I do, because I have more than one version of wxWidgets installed in my system. Depending on the version of aMule/wxWidgets I am testing, I just change the directory in the LD_LIBRARY_PATH path.
Logged