aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 [2]

Author Topic: New Mac OS X version of aMule?  (Read 10695 times)

isulzer

  • Jr. Member
  • **
  • Karma: 2
  • Offline Offline
  • Posts: 62
Re: New Mac OS X version of aMule?
« Reply #15 on: September 19, 2007, 10:49:45 PM »

version 1.6.0 of pupnp installs files called in /usr/local/lib
this path isnt in PATH or LD_LIBRARY_PATH by default. it needs to be added which is a pain for the average user
However... osx uses .dylib not the .so extension...
i simply made copies under the so extension of libixml.dylib and libupnp.dylib to .so extensions...
and upnp loads fine...
Logged

isulzer

  • Jr. Member
  • **
  • Karma: 2
  • Offline Offline
  • Posts: 62
Re: New Mac OS X version of aMule?
« Reply #16 on: September 19, 2007, 11:04:41 PM »

oh. well im also not using the version youve compiled since the download drops every time. im using a version from the cvs from about a year back
Logged

isulzer

  • Jr. Member
  • **
  • Karma: 2
  • Offline Offline
  • Posts: 62
Re: New Mac OS X version of aMule?
« Reply #17 on: September 20, 2007, 08:47:35 PM »

ok. your version gives me. this:
CUPnPException: error(CDynamicLibHandle): Unable to dlopen one or more UPnP component libraries. Check PATH and LD_LIBRARY_PATH.
previous versions managed to open the libraries... PATH and LD_LIBRARY PATH are ok. it can find them.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: New Mac OS X version of aMule?
« Reply #18 on: September 22, 2007, 11:25:41 AM »

Are you sure? (Old versions didn't use UPnP)

UPnP and Mac has still some problems, because we use hardcoded linux library names and I have no clue how to package libs for Mac usage. (Do you know where to put them in the application bundle?)
Logged

isulzer

  • Jr. Member
  • **
  • Karma: 2
  • Offline Offline
  • Posts: 62
Re: New Mac OS X version of aMule?
« Reply #19 on: September 24, 2007, 07:44:18 PM »

That version had upnp, it was from late 06. it crashed from time to time tho... when there were problems with the router releasing the port or something. it kept trying and there were some malloc/free problems
as for the libraries... i think they should be in the Contents/Frameworks folder... although... since things execute via /usr/bin/open on osx im not sure theres something you have to do with a tool

google install_name_tool and shared libraries. ive never actualy done anything with this...
otool has something to do with this too

ill try to play with it if i can
Logged

isulzer

  • Jr. Member
  • **
  • Karma: 2
  • Offline Offline
  • Posts: 62
Re: New Mac OS X version of aMule?
« Reply #20 on: September 24, 2007, 08:10:36 PM »

ok the way you link a shared library, one copied in the bundle, should be this:
install_name_tool -id @executable_path/../Frameworks/libixml.dylib /Applications/aMule.app/Contents/Frameworks/libixml.dylib
install_name_tool -change libixml.dylib @executable_path/../Frameworks/libixml.dylib /Applications/aMule.app/Contents/MacOS/amule

having done this... i get:

(gdb) run
Starting program: /Applications/aMule.app/Contents/MacOS/amule
Reading symbols for shared libraries ............................................................................. done
Reading symbols for shared libraries . done
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Loading temp files from /Users/isulzer/Library/Application Support/aMule/Temp.
Loading PartFile 21 of 21
All PartFiles Loaded.
ListenSocket: Ok.
CUPnPException: error(CDynamicLibHandle): Unable to dlopen one or more UPnP component libraries. Check PATH and LD_LIBRARY_PATH.

External connections disabled in config file
*** Server UDP socket (TCP+3) at 0.0.0.0:4665
*** TCP socket (TCP) listening on 0.0.0.0:4662
*** Client UDP socket (extended eMule) at 0.0.0.0:4672


however i dont get the individual cant find files problem. So theres something wrong with whatever happens when dlopen plays with those libraries... damned if i know what tho.
Logged
Pages: 1 [2]