-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Issue with Maven and OS X UnsatisfiedLinkError org.bytedeco.javacpp.opencv_core #49
Comments
Does it work if you set the |
Thanks for your answer. Unfortunately I get the same error. I started my application with: |
I see, we've got a duplicate issue for that here: bytedeco/javacpp#6 |
Oh. That sounds indeed oddly familiar. Is there an easy way to use those new binaries with maven? Or do I need to create a local repository for them? Thanks for helping! |
It's a normal snapshot repository, so we can add it to the |
Okay. I tried to use the binaries you posted here and maybe I'm just not that intelligent today, but the only useable .jar I could find was Let me explain what I did. Maybe it's obvious what I forgot to do. (Code for context):
Thanks in advance! |
Like I said, it's probably easier to just run |
Many thanks. I redid everything and built the whole javacpp-presets as you told me and it just worked. Now I can concentrate on fixing the real problems. Thank you again! |
Add opencv-os.jar in your class path. |
@jhoffjann can you please provide what exactly you did, |
@SaleemKhair I ran into other problems later in the project. I eventually switched to OpenCV and got my project running with that. Back then I did it like that: http://aufeinwort.org/2014/10/get-opencv-up-and-running-with-intellij-and-mac-os-x/ |
@hfjn The last link seems to be broken. We want to switch to using openCv as well, jsut curious to see what changes did you bring. |
Hi. I'm trying to use JavaCV for an easy Jetty Server. It builds just fine, but when initializing the Class that uses JavaCV the first time the whole thing crashes with:
java.lang.UnsatisfiedLinkError: no jniopencv_core in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1764) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1044) at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:535) at org.bytedeco.javacpp.Loader.load(Loader.java:410) at org.bytedeco.javacpp.Loader.load(Loader.java:353) at org.bytedeco.javacpp.opencv_core.<clinit>(opencv_core.java:10) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:249) at org.bytedeco.javacpp.Loader.load(Loader.java:385) at org.bytedeco.javacpp.Loader.load(Loader.java:353) at org.bytedeco.javacpp.opencv_core$Algorithm.<clinit>(opencv_core.java:8797) at uos.jhoffjann.server.logic.OCV.<init>(OCV.java:22)
I got the JavaCV libraries as described here. Am I just missing the
platform.dependecies
part? I wasn't able to find a Maven property which is called like that, so I couldn't activate it.This is the relevant part in my pom.xml:
`
I would be extremely glad for any help.
The text was updated successfully, but these errors were encountered: