-
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
UnsatisfiedLinkError org.bytedeco.javacpp.opencv_core$Mat.allocate() #9
Comments
This is a known issue with JavaCPP: |
Thanks for the hint. Unfortunately using the latest snapshot release of javacpp does not solve the problem. This is the dependency section of my pom.xml:
As far as I see Maven then fetches javacpp-0.8-2-20140531.040139-1.jar which is the most recent one. Did I forget something to get Maven using the correct javacpp lib? |
That should work, but maybe Gradle is still pulling JavaCPP 0.8, so you |
I think I have to wait for the next regular release. Even with this dependency configuration I get the described exception:
|
You forgot to include the platform-specific artifact: |
Thanks for your continous help - but even by listing all platform specific dependencies (as described in your link) together with the 0.8-2-SNAPSHOT main libs (javacv, javacpp and javacpp-presets) the exception remains existing... |
So, could you please try to add the JAR files manually to your CLASSPATH?
|
Hi Samuel, adding the JAR files manually to the classpath does not change the behaviour. I tried it with the original 0.8 version from bytedeco.org/download as well as with the recent snapshot release. Regards, |
What's your platform again? Can you let me know what a call to |
Loader.getPlatform() return windows-x86_64 which is the correct platform. OS is Windows 8.1 x64, Java runtime is 7u51. |
Ok, that platform works fine here, so let's see. Could you try to extract manually all the DLLs from the JAR files and put them somewhere in your system PATH? Let's see if that works this way first, and let's think about other things after that. Thanks |
Yep - I will try to do this tomorrow evening. |
Today I could try to extract the DLLs. Here the steps I did:
Unfortunately exactly the same behaviour - UnsatisfiedLinkError. But I think there is something strange about it. Even if I remove all DLLs from the system path I get the same exception. Shouldn't the exception differ if the DLLs are really not existing? As far as I remember when I used JNI for the first time I got something like "library not found" as exception in that case. Is there an opportunity to find out whether and where the application gets the DLLs from? |
You might be able to diagnose what it's picking up with http://www.dependencywalker.com/ |
…Mat`, among others ([issue javacv:9](bytedeco/javacv#9) and [issue javacv:28](bytedeco/javacv#28))
Using the new 0.8 release of JavaCV I get the following exception as soon as I try to instantiate a Mat object:
Exception in thread "Thread-1" java.lang.UnsatisfiedLinkError: org.bytedeco.javacpp.opencv_core$Mat.allocate()V at org.bytedeco.javacpp.opencv_core$Mat.allocate(Native Method) at org.bytedeco.javacpp.opencv_core$Mat.(opencv_core.java:6210) at org.bytedeco.javacpp.helper.opencv_core$AbstractMat.(opencv_core.java:2371)
All needed libraries are included via Maven. As far as I see it is not a missing library problem. My assumption is that java native interface and library function are not matching completely.
The text was updated successfully, but these errors were encountered: