Javacv UnsatisfiedLinkError in windows 7

守給你的承諾、 提交于 2019-11-28 00:20:06

Check whether your Opencv version and JavaCv versions are matching each other. You can check that on the readme file on javacv-bin it specifically say about the required version of the opencv.

Unsatisfied link means that not all native code libraries required by jniopencv_core.dll could be found.

Did you deploy them all or just jniopencv_core.dll?

I faced this problem on Windows XP and Windows 7, and this is how I fixed it on both platforms, using Netbeans 7.2:

Install all required software:

Note: make sure C:\ffmpeg\bin is a valid path.

  • OpenCV 2.4.2 (32-bit): download OpenCV-2.4.2.exe and extract it. Place its content at C:\opencv.

Note: make sure C:\opencv\build\x86\vc10\bin is valid path.

  • JavaCV 0.2: download javacv-0.2-bin.zip and extract it. Move the extracted folder to C:\javacv-bin.

  • Microsoft Visual C++ redistributable package (32-bit): download and install vcredist_x86.exe.

Configure the environment:

C:\ffmpeg\bin;C:\opencv\build\x86\vc10\bin

Now you ready to create a new Netbeans project and test your application. But before you compile it,dDon't forget to right-click the Libraries folder at the pProjects window* and click Add Jar/FOLDER to select all the .jar files located at C:\javacv-bin.

Make sure you have the vm arg -Djava.library.path=<path-to-native> that points to the directory with your dlls.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!