bytedeco/javacpp

Getting error for a native dependency in DL4J

Open

#659 opened on Mar 19, 2023

View on GitHub
 (7 comments) (0 reactions) (0 assignees)Java (620 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (4,279 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

First of all, I'd like to apologize if this help request is misplaced, but I would like to ask HGuillemet a question on something he helped another user with and he was knowledgeable about the issue. I unfortunately did not know how else to reach out and establish contact.

My issue is: I am trying to code with DL4J on Termux, a Linux emulator for Android and I was told that this is possible. When I compile my sample project with: mvn -Djavacpp.platform=android-arm clean package it compiles nicely with no errors & builds my uber jar. However, it doesn't run, I instead get the error: "java.lang.UnsatisfiedLinkError: Could not find jniopenblas_nolapack in class, module, and library paths."

I read one of your troubleshooting responses to the above error and there was mention of including the line "org.bytedeco.javacv.platform" (I suppose including it in the compiling/jar-building process) and that everything would be packaged correctly and be found (no more error). I therefore modified my build/compile command to: mvn -DargLine="org.bytedeco.javacpp.pathsfirst=true -Djavacpp.platform=android-arm org.bytedeco.javacv.platform" -Dorg.bytedeco.javacpp.pathsfirst=true -Djavacpp.platform=android-arm clean package

but now it gives me a new error of "The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?"

My pom file is found at: https://github.com/LobsterMan123/startingDL4J/blob/main/pom.xml

Would you please help me troubleshoot this? I want my project to compile with no errors and also run and not crash because dependencies cannot be found. Am I missing a dependency? Is my compile/build command wrong (i.e. not including the necessary arguments)?

Thank you and again I apologize if this message is misplaced but I would very much appreciate your help.

LM

Contributor guide