EngnzWaks / javacv

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

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\steven\AppDa ta\Local\Temp\jniopencv_calib3d5464339938271914560.dll: Can't find dependent lib raries #148

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Am want to run the faceDetection.java file with javacv and opencv but i keep 
getting this : Exception in thread "main" java.lang.UnsatisfiedLinkError: 
C:\Users\steven\AppDa
ta\Local\Temp\jniopencv_calib3d5464339938271914560.dll: Can't find dependent 
libraries

Other programs on javac showImage.java and motion detection works fine .        
                    What should i do?         

Original issue reported on code.google.com by free4st...@gmail.com on 5 Feb 2012 at 7:34

Attachments:

GoogleCodeExporter commented 8 years ago
Which version of JavaCV are you using?

Original comment by samuel.a...@gmail.com on 6 Feb 2012 at 2:31

GoogleCodeExporter commented 8 years ago
javacv-bin-20120108 version

Original comment by free4st...@gmail.com on 7 Feb 2012 at 3:54

GoogleCodeExporter commented 8 years ago
javacv-bin-20120108 version

Original comment by free4st...@gmail.com on 7 Feb 2012 at 3:55

GoogleCodeExporter commented 8 years ago
And which version of OpenCV?

Original comment by samuel.a...@gmail.com on 7 Feb 2012 at 4:01

GoogleCodeExporter commented 8 years ago
I got the same error;
javacv-bin-20120108 version and openCV2.3.1

Original comment by xuzhike1...@gmail.com on 12 Feb 2012 at 10:42

GoogleCodeExporter commented 8 years ago
I reference to the sample:
http://www.cnblogs.com/ljsspace/archive/2011/08/05/2128948.html

except different versions.

when I changed openCV version to 2.3, got other error:

OpenCV Error: Null pointer (Invalid classifier cascade) in unknown function, 
file C:\slave\WinInstallerMegaPack\src\opencv\modules\objdetect\src\haar.cpp, 
line 1041
Exception in thread "main" java.lang.RuntimeException: 
C:\slave\WinInstallerMegaPack\src\opencv\modules\objdetect\src\haar.cpp:1041: 
error: (-27) Invalid classifier cascade

    at com.googlecode.javacv.cpp.opencv_objdetect.cvHaarDetectObjects(Native Method)
    at com.googlecode.javacv.cpp.opencv_objdetect.cvHaarDetectObjects(opencv_objdetect.java:244)
    at com.facedetection.FaceDetection.main(FaceDetection.java:49)

Original comment by xuzhike1...@gmail.com on 12 Feb 2012 at 10:44

GoogleCodeExporter commented 8 years ago
Could you let me know the content of your system PATH? thanks

Original comment by samuel.a...@gmail.com on 12 Feb 2012 at 11:27

GoogleCodeExporter commented 8 years ago
I put all files in OpenCV2.3.1\build\x86\vc10\bin into C:\Windows\System32 
folder.

Original comment by xuzhike0...@gmail.com on 13 Feb 2012 at 4:23

GoogleCodeExporter commented 8 years ago
Please try to remove the files from there, and follow the instructions on this 
page: 
http://code.google.com/p/javacv/wiki/Windows7AndOpenCV
And let me know if this fixes the problem, thank you

Original comment by samuel.a...@gmail.com on 13 Feb 2012 at 4:25

GoogleCodeExporter commented 8 years ago
I follow the instructions
http://code.google.com/p/javacv/wiki/Windows7AndOpenCV

and tried both but still not work:

OpenCV Error: Null pointer (Invalid classifier cascade) in unknown function, 
file C:\slave\WinInstallerMegaPack\src\opencv\modules\objdetect\src\haar.cpp, 
line 1041
Exception in thread "main" java.lang.RuntimeException: 
C:\slave\WinInstallerMegaPack\src\opencv\modules\objdetect\src\haar.cpp:1041: 
error: (-27) Invalid classifier cascade

    at com.googlecode.javacv.cpp.opencv_objdetect.cvHaarDetectObjects(Native Method)
    at com.googlecode.javacv.cpp.opencv_objdetect.cvHaarDetectObjects(opencv_objdetect.java:244)
    at com.facedetection.FaceDetection.main(FaceDetection.java:49)

Original comment by xuzhike1...@gmail.com on 14 Feb 2012 at 12:02

GoogleCodeExporter commented 8 years ago
here is my FaceDetection file.

I add OpenCV DLLs and tdd.dll to system PATH C:\Windows\System32

Original comment by xuzhike1...@gmail.com on 14 Feb 2012 at 12:06

Attachments:

GoogleCodeExporter commented 8 years ago
Can you try to run the Demo class in the README.txt instead? Thank you

Original comment by samuel.a...@gmail.com on 14 Feb 2012 at 1:16

GoogleCodeExporter commented 8 years ago
Demo class in README.txt ran well. thx.

but why the FaceDetection cannot work?

Original comment by xuzhike1...@gmail.com on 15 Feb 2012 at 12:24

GoogleCodeExporter commented 8 years ago
Probably because of this missing line:
        // Preload the opencv_objdetect module to work around a known bug.
        Loader.load(opencv_objdetect.class);

Original comment by samuel.a...@gmail.com on 15 Feb 2012 at 1:35

GoogleCodeExporter commented 8 years ago
Judging by the lack of feedback, I assume the issue has been resolved. Please 
let me know if this is not the case.

Original comment by samuel.a...@gmail.com on 19 Feb 2012 at 4:50

GoogleCodeExporter commented 8 years ago
Thank u very much , the issue was with the JavaCV version 

Original comment by free4st...@gmail.com on 11 May 2012 at 11:05

GoogleCodeExporter commented 8 years ago
I get the same errors, could you please share which JavaCV version is needed to 
make the FaceDetection work?
Thank you

Original comment by Cristina...@gmail.com on 13 May 2012 at 9:30

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I got "Invalid classifier cascade" error when the CASCADE_FILE was not put in 
the location my code is looking for. The error is gone once I fixed the 
location. It also looks like the DLLs are loaded based on the exact name match, 
so the currnt 0.1 version only works with OpenCV 2.4.0.  

Original comment by barr...@gmail.com on 22 Jun 2012 at 5:57

GoogleCodeExporter commented 8 years ago
I tried OpenCV 2.4.1 and was able to overcome the first "Can't find dependent 
libraries" error by renaming opencv_core241.dll and opencv_core241d.dll to 
opencv_core240.dll and opencv_core240d.dll. It then complained the same error 
with a different jniopencv_xxx.

Original comment by barr...@gmail.com on 22 Jun 2012 at 6:03