-
Notifications
You must be signed in to change notification settings - Fork 14
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
java.lang.UnsatisfiedLinkError: no jniopencv_videoio in java.library.path due to java.lang.UnsatisfiedLinkError: ... (libgtk-x11-2.0.so.0) #14
Comments
That's strange, I have not seen that error before. In the interest of being thorough, can you make sure you're using the latest JavaCPP by setting the following? javaCppVersion := "1.3.1" Also, ffmpeg's latest version is It might be possible that on that platform (linux-x86_64) the shared library object wasn't packaged with the presest jar. @saudet any idea? |
@lloydmeta thanks for the quick reply. I tried adding the version argument, same result here. |
btw, looking at /myjar.jar/org/bytedeco/javacpp/linux-x86_64/ i have a a lot of libjni*.so files, none of them contain "gtk", so apparently it isn't packaged. |
GTK comes preinstalled with pretty much any Linux distribution... except the one from Amazon that is? So it looks like we might have to do something about that. As usual, contributions are welcome! |
I'm closing this issue for now because it doesn't seem to be related to the SBT plugin. The discussion should probably continue on the javacpp-presets project, or this PR. |
For anyone that stumbles upon this later looking for answers: If you are on Amazon Linux 2, |
Duplicate of bytedeco/javacpp-presets#593 |
Hi,
I'm running scala (compiled using sbt) app that uses several OpenCV's functionalities. Eventually I managed to run some of them, but I still encounter the following exception:
Notes:
I'm coding+debugging on Windows machine where everything runs smoothly. Then I tried adding the linux-x86_64 platform to the build.sbt as in (2) and use sbt-assembly to package my linux-ready jar. I uploaded that jar into my linux cluster, then cloned the 3.1.0 version of opencv from https://github.com/Itseez/opencv and ran cmake, make and make install.
Finally, in scala, this piece of code works great (uses org.bytedeco.javacpp.opencv_imgcodecs & org.bytedeco.javacpp.opencv_imgproc):
while this code:
fails with the following exception:
Note that theeres a missing libgtk-x11-2.0.so.0 - and I can't figure out what to do here
The text was updated successfully, but these errors were encountered: