OpenCV-java341.dll is not getting generated

asked 2018-10-15 09:35:44 -0600

jayaise gravatar image

updated 2018-10-15 14:50:14 -0600

Hi I configured the open-contrib modules in cmake, when i execute the below command cmake.exe --build . --config Release --target Install

OpenCV-java341.dll is not getting generated but opencv-341.jar gets generated with face folder.

Can you please help me in this as this is urgent.

edit retag flag offensive close merge delete

Comments

but opencv-341.jar gets generated with face folder.

what ? face folder ?

also please take another look here , how to add the contrib modules

berak gravatar imageberak ( 2018-10-15 10:12:06 -0600 )edit

there should be a opencv_face341.dll in the build/bin or somewhere in build/install

berak gravatar imageberak ( 2018-10-15 10:15:44 -0600 )edit

as this is urgent

as urgent as anyone's post.

berak gravatar imageberak ( 2018-10-15 10:16:22 -0600 )edit

I configured opencv-contrib, opencv_face341.dll is also generated. I configured to build java wrapper libraries.

In eclipse I configured opencv-341.jar with native library opencv_face341.dll. I written a program for face recognition and for the statement FaceRecognizer faceRecognizer = EigenFaceRecognizer.create().

I am getting below errors: Exception in thread "main" java.lang.UnsatisfiedLinkError: no opencv_java341 in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at TestFaceRecog.main(TestFaceRecog.java:21)

Its expecting opencv_java341.dll file as native library.

Can you help me how to proceed

jayaise gravatar imagejayaise ( 2018-10-15 14:13:51 -0600 )edit

wait, one step after the other !

the jar file is indeed built before the dll, so we have to make sure, there were no compile errors, when building the opencv libs. can you look again ? you also should have build the INSTALL project, which will copy libs/dlls/headers to your install folder. there should have been console logs for the copying.

berak gravatar imageberak ( 2018-10-16 02:08:03 -0600 )edit

once you've found the missing dll, rather try to build a simple ant based project (that is at least proven to work)

i can't help you with eclipse (it's a goddamn monster), i'm not using it.

berak gravatar imageberak ( 2018-10-16 02:09:18 -0600 )edit