Hi everyone,
I am building VTK 9.1 for Java for few platforms as I could not find VTK java build on CDash (I hope I am not wrong). I make this open and available for download to anyone.
My problem is that I recently noticed that some of the shared libraries built with CMake hold a reference to the path of my development computer. I hence can’t load them properly despite defining java.library.path=/path/to/where/vtk/shared/libs/were/downloaded
When starting a program, I got UnsatisfiedLinkErrors referecing the path where the libraries have been built on my dev computer.
Reason: tried: '/Users/martin/Dev/jzy3d/external/VTK-9.1.0-build2/lib/libvtkCommonMathJava.jnilib' (no such file), '/Users/martin/Dev/jzy3d/external/VTK-9.1.0-build2/lib/java/vtk-Darwin-x86_64/libvtkCommonMathJava.jnilib' (no such file), '/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/lib/libvtkCommonMathJava.jnilib' (no such file), '/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/lib/server/libvtkCommonMathJava.jnilib' (no such file), '/Users/martin/Dev/jzy3d/external/VTK-9.1.0-build2/lib/libvtkCommonMathJava.jnilib' (no such file), '/Users/martin/Dev/jzy3d/external/VTK-9.1.0-build2/lib/java/vtk-Darwin-x86_64/libvtkCommonMathJava.jnilib' (no such file), '/Library
The variables CMAKE_SKIP_INSTALL_RPATH
and CMAKE_SKIP_RPATH
are unchecked (I understood they should remain unchecked)
Any help on dropping the path of the developer machine in a shared library?
Thanks!