ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

I had this error, this is the way that I found to solve it, apparently the problem is with OpenCL that is compiled by default with OpenCV, so you have to uninstall OpenCV and install again using the .sh file and modify the cmake line:

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/ -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D WITH_OPENCL=OFF ..

Reference:

http://stackoverflow.com/questions/26553659/linking-opencv-nonfree-components-sift-features-and-ocl-specifically http://answers.ros.org/question/210696/how-do-i-use-nonfree-opencv-libraries-in-ros/

click to hide/show revision 2
No.2 Revision

I had this error, this is the way that I found to solve it, apparently the problem is with OpenCL that is compiled by default with OpenCV, so you have to uninstall OpenCV and install again using the .sh file and modify the cmake line:

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/ -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D WITH_OPENCL=OFF ..

..

Reference:

http://stackoverflow.com/questions/26553659/linking-opencv-nonfree-components-sift-features-and-ocl-specifically http://answers.ros.org/question/210696/how-do-i-use-nonfree-opencv-libraries-in-ros/