Hi @all,
i'm currently trying to get JavaCV running inside IntelliJ using Gradle as build system. I've followed the README of the GitHub repository
and added `compile group: 'org.bytedeco', name:'javacv-platform', version:'1.5' ` to my `gradle.build` file.
After running `gradle build` I can see the library and their (native) dependencies inside the module classpath of the project.
But when I run my application and call `Loader.load(Imgcodecs::class)` in the first line of my main method, i get following error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jniImgcodecs in java.library.path: [/Users/roman/Library/Java/Extensions, /Library/Java/Extensions, /Network/Library/Java/Extensions, /System/Library/Java/Extensions, /usr/lib/java, .]
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2660)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:827)
at java.base/java.lang.System.loadLibrary(System.java:1902)
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1336)
at org.bytedeco.javacpp.Loader.load(Loader.java:1077)
at org.bytedeco.javacpp.Loader.load(Loader.java:963)
at MainKt.main(Main.kt:11)
As far as I understand, this means the native library of OpenCV is missing in the classpath, but I'm not sure what I need to do in order to get JavaCV running?
I'm running macOS and can see the `org.bytedeco:opencv:macosx-x86_64:4.0.1-1.5` in the IDE's libraries view.
Did anyone of you face a similiar situation and knows a possible solution?
Greetings,
Roman