Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamic linking issues #2

Open
Sailsman63 opened this issue Sep 9, 2017 · 0 comments
Open

dynamic linking issues #2

Sailsman63 opened this issue Sep 9, 2017 · 0 comments

Comments

@Sailsman63
Copy link

Sailsman63 commented Sep 9, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant