Hi Carlos,

The opencv2 package continues to exist as the "ROS face" of the new OpenCV debian packages. Declaring a dependency on opencv2 is actually all you need to do to use OpenCV 2.3.1 in ROS. So cv_bridge and all other OpenCV-using packages now use 2.3.1 in trunk/unstable.

If you look at the manifest, it declares a rosdep on opencv2.3 (the deb), and exports the compile flags from 'pkg-config opencv-2.3.1'.

Cheers,
Patrick

On Fri, Jul 15, 2011 at 2:34 PM, Carlos J. <ubuntuslave@gmail.com> wrote:
cv_bridge depends on opencv2 (as a ros package). This is causing the old opencv header files and libraries to get linked in my project. Unless, I get cv_bridge from SVN and modify its dependencies in its manifest.xml and  CMakeLists.txt

In sum,
1) I deleted the opencv2 dependency in the manifest.xml
2) I added this at the end of the CMakeLists.txt

    target_link_libraries(${PROJECT_NAME} opencv_core opencv_imgproc)

I think that is the manual work-around for now... If someone knows of a better way to force cv_bridge into using OpenCV 2.3.1, please, advise.

Cheers!

Carlos J.

On Fri, Jul 15, 2011 at 2:18 AM, Ethan Rublee <erublee@willowgarage.com> wrote:
OpenCV is transitioning to a system based install.  To develop against OpenCV with ROS on ubuntu you should just apt-get libopencv2.3-dev (its available in from packages.ros.org assuming you have followed these instructions http://www.ros.org/wiki/diamondback/Installation/Ubuntu).

Ethan
On Thu, Jul 14, 2011 at 7:22 PM, Carlos Slave <ubuntuslave@gmail.com> wrote:
I'm not sure what happened with the svn trunk for opencv2. This uri https://code.ros.org/svn/ros-pkg/stacks/vision_opencv/trunk/opencv2 only checks out the Makefile and manifest.xml files...nothing else. The latest checkout overwrote all my previous source.

Does any one know where I can get the opencv2 ros package.

Thanks,

Carlos

_______________________________________________
ros-users mailing list
ros-users@code.ros.org
https://code.ros.org/mailman/listinfo/ros-users



_______________________________________________
ros-users mailing list
ros-users@code.ros.org
https://code.ros.org/mailman/listinfo/ros-users



_______________________________________________
ros-users mailing list
ros-users@code.ros.org
https://code.ros.org/mailman/listinfo/ros-users