dgobbi / vtk-dicom

A set of classes for using DICOM in VTK.
BSD 3-Clause "New" or "Revised" License
258 stars 94 forks source link

Cannot load vtkDICOM in java when using GDCM or ITK_GDCM #159

Closed YiiGuxing closed 6 years ago

YiiGuxing commented 6 years ago

java.lang.UnsatisfiedLinkError: no vtkDICOMJava in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867) at java.lang.Runtime.loadLibrary0(Runtime.java:870) at java.lang.System.loadLibrary(System.java:1122) at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:241) ...

Other VTK dynamic libraries are loadable

dgobbi commented 6 years ago

What operating system are you using? I've tested vtkDICOM + Java + GDCM on Linux so far.

YiiGuxing commented 6 years ago

Windows 10 x64 VTK-8.1.2 GDCM-2.8.8-Windows-x86_64 or InsightToolkit-4.13.1 Visual Studio 15 2017 Win64

dgobbi commented 6 years ago

I'll be able to test your configuration tomorrow. Have you tried building GDCM as a static library?

YiiGuxing commented 6 years ago

Yes. I tried building to dynamic and static library, but they didn't work.

YiiGuxing commented 6 years ago

Can be loaded after restarting the operating system. I'm sorry, this is my fault.

dgobbi commented 6 years ago

That, in itself, is useful information. Thanks for the follow-up.