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

cv_bridge build fails

asked 2016-02-11 15:28:12 -0600

MarkG gravatar image

updated 2016-02-12 09:57:26 -0600

lucasw gravatar image

I'm trying to install cv_bridge on a BeagleBone running Debian. I am using ROS Indigo.

I am getting the following error:

[  5%] Building CXX object vision_opencv/cv_bridge/src/CMakeFiles/cv_bridge_boost.dir/module_opencv2.cpp.o
/home/debian/catkin_ws/src/vision_opencv/cv_bridge/src/module_opencv2.cpp:124:16: error: cannot declare variable ‘g_numpyAllocator’ to be of abstract type ‘NumpyAllocator’
/home/debian/catkin_ws/src/vision_opencv/cv_bridge/src/module_opencv2.cpp:71:7: note:   because the following virtual functions are pure within ‘NumpyAllocator’:
/usr/local/include/opencv2/core/mat.hpp:417:23: note:   virtual cv::UMatData* cv::MatAllocator::allocate(int, const int*, int, void*, size_t*, int, cv::UMatUsageFlags) const
/usr/local/include/opencv2/core/mat.hpp:419:18: note:   virtual bool cv::MatAllocator::allocate(cv::UMatData*, int, cv::UMatUsageFlags) const
/usr/local/include/opencv2/core/mat.hpp:420:18: note:   virtual void cv::MatAllocator::deallocate(cv::UMatData*) const
/home/debian/catkin_ws/src/vision_opencv/cv_bridge/src/module_opencv2.cpp: In function ‘int convert_to_CvMat2(const PyObject*, cv::Mat&)’:
/home/debian/catkin_ws/src/vision_opencv/cv_bridge/src/module_opencv2.cpp:206:11: error: ‘class cv::Mat’ has no member named ‘refcount’
make[2]: *** [vision_opencv/cv_bridge/src/CMakeFiles/cv_bridge_boost.dir/module_opencv2.cpp.o] Error 1
make[1]: *** [vision_opencv/cv_bridge/src/CMakeFiles/cv_bridge_boost.dir/all] Error 2
make: *** [all] Error 2

Tried the usual Google searching and couldn't find an answer. I have OpenCV installed (3.1.0), and verified that OpenCV is working.

Anyone have any thoughts/suggestions?

Thanks Mark

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2016-02-12 13:19:52 -0600

MarkG gravatar image

updated 2016-02-12 13:20:32 -0600

doing some more searching, this link

http://answers.ros.org/question/13341...

and this repository

https://github.com/mikejmills/vision_...

works. It seems it is a matter of using the latest openCV 3.1.0, 3.1.0 does not work with the standard cv_bridge.

Used mikejmills version and compiled correctly.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-02-11 15:28:12 -0600

Seen: 3,536 times

Last updated: Feb 12 '16