rindarith / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

One more Can't find dependent libraries #103

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Downloaded the latest version of opencv 2.3.1 and extracted it to 
C:\opencv-2.3.1. Included the "C:\OpenCV2.3.1\opencv\build\x64\vc10\bin" to 
System env Path.
2. Downloaded javacv.
3. Added javacv jars to netbeans Libraries folder.
4. Tried a simple code given on javacv homepage for reading and saving image.

What is the expected output? What do you see instead?
The program should run without any errors but instead it gives:
Exception in thread "main" java.lang.UnsatisfiedLinkError: 
C:\Users\jack\AppData\Local\Temp\jniopencv_imgproc1909203207580859104.dll: 
Can't find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)
    at java.lang.Runtime.load0(Runtime.java:770)
    at java.lang.System.load(System.java:1003)
    at com.googlecode.javacpp.Loader.load(Loader.java:337)
    at com.googlecode.javacpp.Loader.load(Loader.java:271)
    at com.googlecode.javacv.cpp.opencv_imgproc.<clinit>(opencv_imgproc.java:96)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at com.googlecode.javacpp.Loader.load(Loader.java:291)
    at com.googlecode.javacv.cpp.opencv_highgui.<clinit>(opencv_highgui.java:91)
    at javacv.Javacv.main(Javacv.java:15)
Java Result: 1

What version of the product are you using? On what operating system?
opencv 2.3.1 and win7

Please provide any additional information below.
It gives same error for all imgproc related functions. 

Original issue reported on code.google.com by manas.ka...@gmail.com on 30 Aug 2011 at 8:51

GoogleCodeExporter commented 9 years ago
I don't get this error for core related functions.

Original comment by manas.ka...@gmail.com on 30 Aug 2011 at 8:56

GoogleCodeExporter commented 9 years ago
got it resolved. added all the dlls from mingw,vc9 and vc10.

Original comment by manas.ka...@gmail.com on 31 Aug 2011 at 2:00

GoogleCodeExporter commented 9 years ago
Hum, ok, strange. In any case, make sure you read the following, as indicated 
in the README.txt file:

Common issues with OpenCV under Windows 7
http://code.google.com/p/javacv/wiki/Windows7AndOpenCV

Original comment by samuel.a...@gmail.com on 1 Sep 2011 at 1:49