-
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
java.lang.UnsatisfiedLinkError: no jniopencv_core in java.library.path #122
Comments
moving libraries to lib folder from lib/javacv resolved the issue for the moment |
Right, it could be better, but at the core, the problem is sbt not supporting a standard Maven feature, so I'm not sure what we should do. I'm opened to ideas, so if you have any, please do share them. For the moment, we have to add lines like these: libraryDependencies += "org.bytedeco.javacpp-presets" % "opencv" % "2.4.11-0.11"
libraryDependencies += "org.bytedeco.javacpp-presets" % "opencv" % "2.4.11-0.11" classifier "linux-x86"
libraryDependencies += "org.bytedeco.javacpp-presets" % "opencv" % "2.4.11-0.11" classifier "linux-x86_64"
libraryDependencies += "org.bytedeco.javacpp-presets" % "opencv" % "2.4.11-0.11" classifier "macosx-x86_64"
libraryDependencies += "org.bytedeco.javacpp-presets" % "opencv" % "2.4.11-0.11" classifier "windows-x86"
libraryDependencies += "org.bytedeco.javacpp-presets" % "opencv" % "2.4.11-0.11" classifier "windows-x86_64" And similarly for the other libraries. |
thanks @saudet , solved the problem, this info on the instruction page would be really help other developers |
Actually, we could make a little script in Scala to compensate. That would be much better than 100 lines of dependencies... Would you have time to look into that? |
I can do it , but not anytime soon. hopefully will commit out of my experience Cheers |
Thanks @saudet! dependencies {
compile group: 'org.bytedeco', name: 'javacv', version: '1.0'
compile group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '2.4.11-0.11', classifier: 'macosx-x86_64'
compile group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '2.6.1-0.11', classifier: 'macosx-x86_64'
} |
@baconsword what have you tried to solve your issue?
|
@saudet well... 3 things. to this: compile 'org.bytedeco.javacpp-presets:opencv:3.0.0-1.0:windows-x86_64' Idiot... I know... If it works for you... tell me! |
Are you saying that it works now?? BTW, IntelliJ IDEA supports Maven better than Gradle, so unless you have a reason to use Gradle, I would suggest to try Maven. |
Yes, it is working. dependencies {
compile 'org.bytedeco:javacv:1.0'
compile 'org.bytedeco.javacpp-presets:opencv:3.0.0-1.0:windows-x86_64'
compile 'org.bytedeco.javacpp-presets:ffmpeg:2.7.1-1.0:windows-x86_64'
} |
Did 'grouping' Gradle's dependencies declaration config work for someone? |
just copy all the e.g C:\opencv\build\x86\vc10\bin dlls to system32 folder. Cheers. worked for me. |
I am using sbt to add the javacv to the project , my project has both OpnCV and JavaCV and my java Options are following , I have also manually added all jar files to lib/javacv folder,
the instructions are not the very best to get things set up, any help woud be great, following is in my sbt libs
Cheers
The text was updated successfully, but these errors were encountered: