UnsatisfiedLinkErro: org.opencv.highgui.VideoCapture.n_VideoCapture(I)J

asked 2014-05-15 07:40:41 -0600

I'm trying to use JavaOpenCV in Ubuntu 12.4. In windows, this code run perfectly: ..... @Override public void NovoviaCamara (String modo) throws Throwable { System.loadLibrary("opencv_java246"); ...... camera = new VideoCapture(0); ..... I get the following error: [JavaFX Application Thread] INFO com.novovia.camaralib.NovoviaCamaraOCV - Encendiendo Camara :0 [JavaFX Application Thread] ERROR view.testerVideo.testerVideoController - Error: org.opencv.highgui.VideoCapture.n_VideoCapture(I)J java.lang.UnsatisfiedLinkError: org.opencv.highgui.VideoCapture.n_VideoCapture(I)J at org.opencv.highgui.VideoCapture.n_VideoCapture(Native Method) at org.opencv.highgui.VideoCapture.<init>(VideoCapture.java:113) at com.novovia.camaralib.NovoviaCamaraOCV.encenderCamara(NovoviaCamaraOCV.java:634) at com.novovia.camaralib.NovoviaCamaraImplementacion.IniciarCamara(NovoviaCamaraImplementacion.java:182) I put all opencv .so files on the library path. I cannot find where is the problem. Thanks Javier

edit retag flag offensive close merge delete

Comments

I installed all the dependencies following those instructions:

http://www.ozbotz.org/opencv-installation/

I only considered from the point 1 to 10

I replaced the point 10 with the 2.4.9 version.

I copied all the .so files created to the same path of libopencv_java249.so

The libopencv_java249.so is loaded perfectly but not the dependencies.

gaditano gravatar imagegaditano ( 2014-05-15 14:30:48 -0600 )edit