Author Topic: BASS_FX 2.4.12.1  (Read 627957 times)

Ian @ un4seen

  • Administrator
  • Posts: 20903
Re: BASS_FX 2.4.12.1
« Reply #725 on: 25 Jun '18 - 13:38 »
Yes, on Linux, BASS_FX (and the other add-ons) isn't linked with the libbass.so library and instead depend on it being loaded by the application first.

Vperus

  • Posts: 2
Re: BASS_FX 2.4.12.1
« Reply #726 on: 25 Jun '18 - 17:27 »
Any reasons to do it? For example if you want to use https://github.com/ManagedBass/ManagedBass with native libraries + NETCore you need to write platform dependent code to load it on linux, not just include-use.

Regards,
Vperus.

Ian @ un4seen

  • Administrator
  • Posts: 20903
Re: BASS_FX 2.4.12.1
« Reply #727 on: 26 Jun '18 - 13:53 »
The reason for it is that the application's directory isn't in Linux's library search path, ie. Linux won't find the libraries if they're placed alongside your executable (like Windows will). So the add-ons would fail to load if they were linked with the libbass.so library and it isn't installed in the library search path.

When using .Net, calling a BASS function before any add-on functions are called should ensure that the BASS library is loaded before the add-ons are. For example, you could call BASS_GetVersion first thing in your initialization code.