Java Question Un4Seen Bass/Bass_FX-Wrapper; A referenced library is missing: [...]

trebun

Member
Licensed User
Longtime User
Hi there,

I will code a simple (haha, I'm so naive) wrapper for BASS and BASS_FX.

I add some easy functions to check my idea - please take a look into my attached screenshot to see my project and some code.

We will see some *.so - libs.

When I will compile my project in B4A, this error will nag on me:

B4X:
Compiling code.                         0.01
Compiling layouts code.                 0.01
Generating R file.                      0.23
Compiling generated Java code.          0.44
Convert byte code - optimized dex.      Error
A referenced library is missing: libbass_fx

I don't know if
B4X:
@DependsOn(values = { "libbass_fx","libbass" })

work for me or I must use "AbsObjectWrapper" to create a library with eclipse.

What is the right place for the *.so - libs to use it correctly on B4A?

And I'm sure, my code will not work, but to check this, I must pass the first step... ;-)

Regards,
trebun
 

Attachments

  • b4a_basslib_16.png
    b4a_basslib_16.png
    58.2 KB · Views: 436

trebun

Member
Licensed User
Longtime User
Erel,

thank you for your quick answer! I'm a :sign0104: - the devil is in the detail. ;-)

Regards,
trebun
 

trebun

Member
Licensed User
Longtime User
Mh,

shame on me - but it doesn't work.

I copied the *.so-files into a lib-folder.

Same error:
B4X:
Compiling code.                         0.03
Compiling layouts code.                 0.02
Generating R file.                      0.24
Compiling generated Java code.          0.44
Convert byte code - optimized dex.      Error
A referenced library is missing: libbass_fx

I try with

B4X:
   static {
        System.loadLibrary("bass");
        System.loadLibrary("bass_fx");
    }

but it doesn't matter - same error from above.

Maybe it is helpful to take a look into my eclipse-project:

[...]

Regards,
trebun.
 
Last edited:

trebun

Member
Licensed User
Longtime User
Solution:
I remove the @DependsOn line from my project and generate a new Javadoc.

Now it works! :)

:BangHead:

Regards,
trebun
 
Last edited:

serkanpolat

Member
Licensed User
Longtime User
can i also get eclipse project? or the jar and xml?
i have a lot experience with bass library. i want to use it with b4a also :)
 
Top