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

Problem loading apropriate library #17

Closed
malaterre opened this issue Jun 21, 2014 · 5 comments
Closed

Problem loading apropriate library #17

malaterre opened this issue Jun 21, 2014 · 5 comments

Comments

@malaterre
Copy link
Contributor

For some reason the java test does not seems to be loading the lib properly, see:

https://bugs.debian.org/752097

@dgobbi
Copy link
Owner

dgobbi commented Jun 21, 2014

I have reproduced this failure on my machine, I'm not sure why it happens but I'll investigate.

@malaterre
Copy link
Contributor Author

libs are in multi-arch path on debian, that's the only thing I can think of. I'll use strace to check

@malaterre
Copy link
Contributor Author

Well the bug seems to lie in TestDICOMJava directly. You are required to load each libs (vtkCommon...) in order before the vtk-dicom one.

@dgobbi
Copy link
Owner

dgobbi commented Jun 26, 2014

The Java test works fine if VTK is in its build directory, but if VTK is installed, it doesn't work. The bug is in VTK itself, in vtkSettings.java: it looks for the vtk-java shared libs in the same directory as vtk.jar, even though they are installed in different directories (/usr/lib/jni vs. /usr/share/java). So, yeah, I can't rely on VTK to load the libraries, instead my test program will have to find & load all the libraries by itself.

@dgobbi
Copy link
Owner

dgobbi commented Jun 29, 2014

Library-loading code has been added to the test (commit 51c53d2).

@dgobbi dgobbi closed this as completed Jun 29, 2014
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

2 participants