22 May '13 - 12:41 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: BASS_PluginLoad can't open Plugins?  (Read 425 times)
AndroidMediaPlayer
Posts: 13


« on: 27 Jul '12 - 06:13 »
Reply with quoteQuote

Hi!

Actually i am trying to wrap bass for node.js. Atm i have a problem with BASS_PluginLoad. It throws BASS_ERROR_FILEOPEN on every plugin i try to load. I have the bass library with all plugins in /usr/local/lib. I am loading the libbass.so the same way as in android (via dlopen and BASSDEF/LOADBASSFUNCTION), then the plugins via BASS_PluginLoad.

For some reason node.js crashes with a segmentation fault when i try to load the AAC, AC3 or MIDI plugin. Loading the plugins via dlopen fails likewise, loading from an other location too.

So what's wrong there? Is it a bass problem oder rather a node.js?

Thank you. Wink
« Last Edit: 27 Jul '12 - 07:01 by AndroidMediaPlayer » Logged
Ian @ un4seen
Administrator
Posts: 15259


« Reply #1 on: 27 Jul '12 - 12:25 »
Reply with quoteQuote

What does dlerror say after the failed dlopen call? Please also confirm what BASS version/platform you are using.
Logged
AndroidMediaPlayer
Posts: 13


« Reply #2 on: 27 Jul '12 - 12:59 »
Reply with quoteQuote

Hi Ian!

I have forgotten to check dlerror. It says:

/usr/local/lib/libbassflac.so: undefined symbol: BASS_GetVersion

I am using Ubuntu Linux 64bit with the lastest version of bass. Tried now to load BASS_GetVersion via LOADBASSFUNCTION, but it doesn't helped.

After loading BASS_GetVersion via LOADBASSFUNCTION a call returns 33818880. But shouldn't it return something like 0204090X for version 2.4.9.X?

Och... edit:

Found the solution. libbass.so must be loaded with RTLD_NOW | RTLD_GLOBAL instead of RTLD_LAZY. Now the plugins also works fine. Smiley
« Last Edit: 27 Jul '12 - 13:24 by AndroidMediaPlayer » Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines