I am also having same problem. Any solutions.Please
I'm using:
Ubuntu 16.04
ROS Kinetic
OpenCV 2
The same code worked earlier with Ubuntu 14.04, ROS Indigo and OpencCV 2
Edit 1:
I do not have 1 opencv 3 installed only have opencv 2. I did some dirty hecks and my programs are working now. I don't think this heck is a persistent solution. Here is the heck.
1. I downloaded latest cv_bridge sources from git and compiled using catkin.
2. Removed the cv_bridge installed by package manager 3. Manually copied the compiled libcv_bridge file and corresponding header into respective ROS installation folders.
Edit 2:
Unfortunately my above heck has some side effect. I could not run rqt_image_view which is depend on the old libcv_brige file. Therefore, I compiled cv_bridge library in a different name libmycv_bridge and linked my ros node to libmycv_bridge. Now my rosnode work as a stand alone program without setting the ROS_PACKAGE_PATH variable. But if I set the variable ROS_PACKAGE_PATH to the corresponding ros node folder, again segmentation fault. But It seems from a different place of a program than earlier error.
I know I can use make install rather than copying files manually. If I use make install, will the package manager recognize it or Will it break the package manager?