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

unable to run on maven:3.8-eclipse-temurin-16 #116

Open
cameronbraid opened this issue Mar 8, 2022 · 1 comment
Open

unable to run on maven:3.8-eclipse-temurin-16 #116

cameronbraid opened this issue Mar 8, 2022 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@cameronbraid
Copy link

cameronbraid commented Mar 8, 2022

The home page states JVips.jar embeds libvips.so and its dependencies. The jar file is self-sufficient for Linux however I cannot get it to run in docker using image maven:3.8-eclipse-temurin-16

I get the following error :

Mar 08, 2022 7:59:53 PM com.criteo.vips.Vips loadLibraryFromJar
WARNING: Could not load lib 'libheif.so' via classloader
Mar 08, 2022 7:59:53 PM com.criteo.vips.Vips loadLibraryFromJar
WARNING: Could not load lib 'libspng.so' via classloader
Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/libimagequant.so5724719230057576705: libgomp.so.1: cannot open shared object file: No such file or directory
        at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
        at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:383)
        at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:227)
        at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:169)
        at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2383)
        at java.base/java.lang.Runtime.load0(Runtime.java:746)
        at java.base/java.lang.System.load(System.java:1857)
        at com.criteo.vips.Vips.loadLibraryFromJar(Vips.java:112)
        at com.criteo.vips.Vips.tryLoadLibrariesFromJar(Vips.java:78)
        at com.criteo.vips.Vips.<clinit>(Vips.java:58)
        at MainHttps.main(MainHttps.java:9)

Are these dependencies that you can add to the jar ?

@dbouron
Copy link
Contributor

dbouron commented Mar 28, 2022

Hi @cameronbraid ,

JVips embeds only image related libraries but don't embed the whole required libraries (like LibreOffice does for example).
You should install some prerequired libraries. According to the libvips Readme, you should install:
libvips must have build-essential, pkg-config, libglib2.0-dev, libexpat1-dev

@dbouron dbouron added the help wanted Extra attention is needed label Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants