cantaloupe-project / cantaloupe

High-performance dynamic image server in Java
https://cantaloupe-project.github.io/
Other
268 stars 109 forks source link

Failed to load the TurboJpeg native libs #596

Open zacraine opened 2 years ago

zacraine commented 2 years ago

Hi,

While getting some images I am getting below error resulting in broken images. Failed to initialize TurboJpegProcessor (error: /opt/libjpeg-turbo/lib/libturbojpeg.so (/opt/libjpeg-turbo/lib/liblibturbojpeg.so.so: cannot open shared object file: No such file or directory))

Also Every time I run the service it gives below warning,

Jul 27, 2022 5:11:36 PM it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL WARNING: Failed to load the GDAL native libs. This is not a problem unless you need to use the GDAL plugins: they won't be enabled. java.lang.UnsatisfiedLinkError: gdaljni (Not found in java.library.path) Jul 27, 2022 5:11:36 PM it.geosolutions.imageio.plugins.turbojpeg.TurboJpegUtilities loadTurboJpeg WARNING: Failed to load the TurboJpeg native libs. This is not a problem, but the TurboJpeg encoder won't be available: java.lang.UnsatisfiedLinkError: turbojpeg (Not found in java.library.path) Jul 27, 2022 5:11:37 PM it.geosolutions.util.KakaduUtilities loadKakadu WARNING: Failed to load the Kakadu native libs. This is not a problem unless you need to use the Kakadu plugin: it won't be enabled. java.lang.UnsatisfiedLinkError: kdu_jni (Not found in java.library.path)

Can this be the root cause for images not getting render ?

hrvoj3e commented 1 year ago

Try creating this symlink.

sudo mkdir -p /opt/libjpeg-turbo/lib; 
sudo ln -s /usr/lib/x86_64-linux-gnu/libturbojpeg.so.0 /opt/libjpeg-turbo/lib/libturbojpeg.so;