Skip to content

dynamic linking issues #2

@Sailsman63

Description

@Sailsman63

I've come back to the assimp4java package after quite a Hiatus.

I'm having some difficulty getting the package to function as I'd expect. Right now, I have about the simplest setup possible:

I have a unit test that feeds a valid filename to a method under test. The method generates a new instance of Assimp.Loader and calls ReadFile(_filename_, 0) and stores (theoretically) the resulting aiScene in an instance variable.

Everything compiles, and I have assimp4java-0.1.1.jar, assimp_lib-3.1.1.jar, and javacpp.jar in my classpath. However, when running my unit test, it crashes with:

symbol lookup error
assimp4java-0.1.1.jar/assimp/linux-x86_64/libjniAssimp.so: undefined symbol: _ZN6Assimp8ImporterC1Ev

I've done some checking, and the symbol is most certainly present in libassimp.so. It would appear that the full assimp library is not being loaded for use by the JVM, but I went as far as extracting the .so and explicitly loading it from the java side with System.load(), and I get the same error.

Is there some pre-use setup step that I'm missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions