score:0

although i have never used opencv:

there is a mac os x download from opencv

i suppose there should be an opencv.dll equivalent native library (opencv.jnilib?) in the opencv package for mac os x and loading it with system.loadlibrary could resolve the issue.

there is a article how to load a native library on mac os x.


may be relevant:

score:0

it's an old question, but without answer yet. for me that solve the problem for system.loadlibrary(core.native_library_name): https://stackoverflow.com/a/35112123

score:0

for ubuntu linux, i got the similar problem which can't find the native library which actually is the libopencv_javaxxx.so (xxx is the version) which is actually installed under /usr/lib/jni/ not like other native libraries installed under /usr/lib/x86_64-linux-gnu/

my first thought for the native library is the libopencv_core.so and there is no libopencv.so at all.

score:0

take a look at unsupported platform in nu.pattern and my suggested answer to opencv java on kotlin which shows how to use the nu.pattern.opencv.loadshared(); api.

score:1

after a lot of hit and trials, directly specifying the path of the opencv.dll in the system.loadlibrary("complete path to opencv.dll") seems to have done the trick, but in mac the problem remains as it is as i do not have any .dll or .so or .dylib for opencv in mac.


Related Query

More Query from same tag