Problems using native libraries for compression/decompression in webapp.

93 views
Skip to first unread message

davidm...@gmail.com

unread,
Apr 26, 2021, 4:15:47 PM4/26/21
to dcm4che
I have a webapp that is attempting to use dcm4che 5.23.2 to do image compression and decompression.  I am having problems configuring this to work in this environment. 

1. Ubuntu 20.04.2 LTS
2. Apache Tomcat/9.0.31 (Ubuntu)
3. Tomcat9 launched with -D-Djava.library.path=/my/dir/lib/linux-x86_64
4. The two shared library files for linux and distributed with dcm4che 5.23.2, libclib_jiio.so  libopencv_java.so, in this directory and world readable.
5. My app is built with and deployed with these dependencies

dcm4che-core-5.23.2.jar
dcm4che-dict-5.22.6.jar
dcm4che-image-5.23.2.jar
dcm4che-imageio-5.23.2.jar
dcm4che-imageio-opencv-5.23.2.jar
dcm4che-json-5.23.2.jar


The 'opencv_java' library is not found when the StreamSegment class tries to initialize to read a JPG-lossless compressed image, 1.2.840.10008.1.2.4.70. This error is opaque and I don't get hints as to what is missing.

Is anyone doing this, and how?

Thanks,

Dave

Reply all
Reply to author
Forward
0 new messages