Build Java wrappers OpenCV 3.3.0 with contrib
Can someone point me to a guide to build Java wrappers OpenCV 3.3.0 (or 3.2.0) with contrib modules? I am using Windows 10. I have run into several problems trying to follow online guides :( If someone knows of a good guide to accomplish the build, I would be very grateful if you shared it with meeee
EDIT: I ended up being able to build 3.2.0 but now have run into another problem.
After the build, I received a opencv_java320.jar and a libopencv_java320.dll (and a opencv_ffmpeg320.dll). I am trying to use Eclipse. I made a new User Library pointing to the opencv_java320.jar. I am unsure where the Native Library Location should point to. It seems that it should be pointing to a opencv_java320.dll file, but I got no such file from my build. I have no jars or dlls other than opencv_java320.jar and a libopencv_java320.dll (and a opencv_ffmpeg320.dll). Is there some way to resolve this issue or was my build unsuccessful?
did you already run cmake? show us cmake's generating output
cmake output looks OK. i can't say anything about MinGW because i used MS Visual Studio to compile. i recommend you to use MS Visual Studio
"After the build, I received a opencv_java320.jar and a libopencv_java320.dll" try to rename libopencv_java320.dll -> opencv_java320.dll
After renaming I can successfully System.loadLibrary(Core.NATIVE_LIBRARY_NAME), but then I receive an unsatisfied link error on the first line of code using OpenCV: Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.core.Mat.n_Mat()J
try the files someone shared https://github.com/cesardelgadof/Open...
show your java code also
try
I was using a 32 bit jdk so I changed to a 64 bit one, now I am getting:
sorry, maybe i disguided you. again i say. if you use MS Visual Studio probably you will solve all problems.
otherwise you can download compiled dlls from https://github.com/cesardelgadof/Open...