igorcoroli / javacv

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

no jnivideoInputLib in java.library.path #307

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. try to call VideoInputFrameGrabber.getDeviceDescriptions()

What is the expected output? What do you see instead?
A list of connected cameras. Instead, an exception is thrown that a library is 
not loadable.

Caused by: com.googlecode.javacv.FrameGrabber$Exception: Failed to load class 
com.googlecode.javacv.VideoInputFrameGrabber
    at com.googlecode.javacv.VideoInputFrameGrabber.tryLoad(VideoInputFrameGrabber.java:59)
    at com.googlecode.javacv.VideoInputFrameGrabber.getDeviceDescriptions(VideoInputFrameGrabber.java:37)
    at com.innovatrics.commons.drivers.camera.JavaCVPictureCapture.refreshDeviceList(JavaCVPictureCapture.java:327)
    ... 8 more
Caused by: java.lang.UnsatisfiedLinkError: no jnivideoInputLib in 
java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1856)
    at java.lang.Runtime.loadLibrary0(Runtime.java:845)
    at java.lang.System.loadLibrary(System.java:1084)
    at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:593)
    at com.googlecode.javacpp.Loader.load(Loader.java:489)
    at com.googlecode.javacpp.Loader.load(Loader.java:431)
    at com.googlecode.javacv.cpp.videoInputLib.<clinit>(videoInputLib.java:81)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:266)
    at com.googlecode.javacpp.Loader.load(Loader.java:453)
    at com.googlecode.javacv.VideoInputFrameGrabber.tryLoad(VideoInputFrameGrabber.java:57)
    ... 10 more

What version of the product are you using? On what operating system?
javacv 0.5, opencv 2.4, ubuntu linux x86-32

Please provide any additional information below.

Note that libjnivideoInputLib.so is not attached in javacv-linux-x86.jar

Original issue reported on code.google.com by martin.v...@gmail.com on 22 Apr 2013 at 11:52

GoogleCodeExporter commented 8 years ago
videoInput isn't available under Linux. Please try `OpenCVFrameGrabber` or 
`FFmpegFrameGrabber`, and please post your questions on the mailing list next 
time if possible, thank you!

Original comment by samuel.a...@gmail.com on 27 Apr 2013 at 5:39