himanshukandwal / javacv

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

JavaCV samples #90

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I can't run any programs (e.g MotionDetector sample)
2.
3.

What is the expected output? What do you see instead?
It gives compilation error. 
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jniopencv_core 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 com.googlecode.javacpp.Loader.load(Loader.java:343)
    at com.googlecode.javacpp.Loader.load(Loader.java:271)
    at com.googlecode.javacv.cpp.opencv_core.<clinit>(opencv_core.java:126)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at com.googlecode.javacpp.Loader.load(Loader.java:291)
    at com.googlecode.javacv.cpp.opencv_imgproc.<clinit>(opencv_imgproc.java:96)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at com.googlecode.javacpp.Loader.load(Loader.java:291)
    at com.googlecode.javacv.cpp.opencv_highgui.<clinit>(opencv_highgui.java:91)
    at com.googlecode.javacv.OpenCVFrameGrabber.start(OpenCVFrameGrabber.java:97)
    at ImageP.main(ImageP.java:23)

What version of the product are you using? On what operating system?

Windows.
Please provide any additional information below.

I'm new to javacv and also opencv. I can't run any program even load an image. 
Could you also give me some documentation or where can i find it? Thx for your 
help

Original issue reported on code.google.com by m.alpte...@gmail.com on 25 Jul 2011 at 1:11

GoogleCodeExporter commented 8 years ago
I added prebuild opencv for android to my project. this time it doesnt give the 
same error. Instead it gives 
A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (classFileParser.cpp:3494), pid=8168, tid=6636
#  Error: ShouldNotReachHere()
#
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) Client VM (20.1-b02 mixed mode windows-x86 )
# An error report file with more information is saved as:
# C:\opencv\test\hs_err_pid8168.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

Please help

Original comment by m.alpte...@gmail.com on 25 Jul 2011 at 1:31

GoogleCodeExporter commented 8 years ago
Please try to follow the instructions in the README.txt file. Let me know if 
you get any errors after that.

Original comment by samuel.a...@gmail.com on 26 Jul 2011 at 4:18

GoogleCodeExporter commented 8 years ago
I think I have problem with this part:

and make sure that the library files of OpenCV can be found either in their 
default installation directory or in the system PATH, which includes the 
current directory under Windows. 

I didnt really understand it. Could you explain in detail? Thx

Original comment by m.alpte...@gmail.com on 27 Jul 2011 at 5:59

GoogleCodeExporter commented 8 years ago
I get this error at Eclipse:
java.lang.UnsatisfiedLinkError: C:\Windows\System32\jniopencv_core.dll: Can't 
find dependent libraries

Original comment by m.alpte...@gmail.com on 27 Jul 2011 at 6:37

GoogleCodeExporter commented 8 years ago
I managed to run a single code but i cant run it on anroid 2.2 emulator. Is 
there something I should do? 

Original comment by m.alpte...@gmail.com on 27 Jul 2011 at 7:53

GoogleCodeExporter commented 8 years ago
You got it working, great. To run it on Android, you need to do some other 
things as detailed in the README.txt file. Could you post any further questions 
you have on the mailing list? I prefer to keep this system here for actual bugs 
in JavaCV, thanks 

Original comment by samuel.a...@gmail.com on 27 Jul 2011 at 10:03

GoogleCodeExporter commented 8 years ago
How did you removed the error :

java.lang.UnsatisfiedLinkError: C:\Windows\System32\jniopencv_core.dll: Can't 
find dependent libraries

Tried a lot but still face this problem...

thanks,

Original comment by pro...@gmail.com on 28 Oct 2012 at 10:28

GoogleCodeExporter commented 8 years ago
@proksy Please try to follow the instructions on this page:
Common issues with OpenCV under Windows 7 
http://code.google.com/p/javacv/wiki/Windows7AndOpenCV

Original comment by samuel.a...@gmail.com on 29 Oct 2012 at 1:13