Problem with opencv contributed library
in
Contributed Library Questions
•
2 years ago
Hi All,
I am using Ubuntu 11.04 and have installed processing 1.5.1 and the opencv contributed library. I then install the following Ubuntu packages for the actual C++ OpenCV libraries :
libcv2.1 libcvaux2.1 libhighgui2.1 python-opencv opencv-doc libcv-dev libcvaux-dev libhighgui-dev
However, when I run the "brightness_contrast.pde" example for the opencv contributed library, I get the following error :
----------
!!! required library not found : /home/tkwinfo/sketchbook/libraries/OpenCV/library/libOpenCV.so: libcxcore.so.1: cannot open shared object file: No such file or directory
Verify that the java.library.path property is correctly set and 'libcxcore.so', 'libcv.so', 'libcvaux.so', 'libml.so', and 'libhighgui.so' are placed (or linked) in one of your system shared libraries folder
Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: hypermedia.video.OpenCV.capture(III)V
at hypermedia.video.OpenCV.capture(Native Method)
at hypermedia.video.OpenCV.capture(OpenCV.java:945)
at brightness_contrast.setup(brightness_contrast.java:31)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
----------
The error occurs in the line :
opencv.capture( width, height ); <-- error here
I have checked that the required library files, 'libcxcore.so', 'libcv.so', 'libcvaux.so', 'libml.so', and 'libhighgui.so' are all placed in /usr/lib. However, the processing opencv example seems could not find them and/or could not use them.
Does anyone know that how do I add the "java.library.path" property to this processing example and is my installed OpenCV 2.1 Ubuntu package compatible with the processing opencv contributed library (it seems that this contributed library uses OpenCV 1.x but I could not find a corresponding OpenCV 1.x package in Ubuntu 11.04) ?
Thanks for any suggestion.
Regards
Lawrence
I am using Ubuntu 11.04 and have installed processing 1.5.1 and the opencv contributed library. I then install the following Ubuntu packages for the actual C++ OpenCV libraries :
libcv2.1 libcvaux2.1 libhighgui2.1 python-opencv opencv-doc libcv-dev libcvaux-dev libhighgui-dev
However, when I run the "brightness_contrast.pde" example for the opencv contributed library, I get the following error :
----------
!!! required library not found : /home/tkwinfo/sketchbook/libraries/OpenCV/library/libOpenCV.so: libcxcore.so.1: cannot open shared object file: No such file or directory
Verify that the java.library.path property is correctly set and 'libcxcore.so', 'libcv.so', 'libcvaux.so', 'libml.so', and 'libhighgui.so' are placed (or linked) in one of your system shared libraries folder
Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: hypermedia.video.OpenCV.capture(III)V
at hypermedia.video.OpenCV.capture(Native Method)
at hypermedia.video.OpenCV.capture(OpenCV.java:945)
at brightness_contrast.setup(brightness_contrast.java:31)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
----------
The error occurs in the line :
opencv.capture( width, height ); <-- error here
I have checked that the required library files, 'libcxcore.so', 'libcv.so', 'libcvaux.so', 'libml.so', and 'libhighgui.so' are all placed in /usr/lib. However, the processing opencv example seems could not find them and/or could not use them.
Does anyone know that how do I add the "java.library.path" property to this processing example and is my installed OpenCV 2.1 Ubuntu package compatible with the processing opencv contributed library (it seems that this contributed library uses OpenCV 1.x but I could not find a corresponding OpenCV 1.x package in Ubuntu 11.04) ?
Thanks for any suggestion.
Regards
Lawrence
1