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

rosmake error: [rospack] Error: package/stack depends on non-existent package opencv2

asked 2013-06-25 03:59:52 -0500

HubbaW gravatar image

Hello.

I got a problem since today after updating my ubuntu 12.04 today (-> update manager -> install updates)

[rospack] Error: package/stack openCVbridge depends on non-existent package opencv2

How can i solve this? Thx!

--------------------------------------------

cheese@wtmgws1:~/Diplom/code/openCVbridge$ rosmake [ rosmake ] rosmake starting...
[ rosmake ] No package specified. Building ['openCVbridge']
[ rosmake ] Packages requested are: ['openCVbridge']
[ rosmake ] Logging to directory /home/cheese/.ros/rosmake/rosmake_output-20130625-155021
[ rosmake ] Expanded args ['openCVbridge'] to:
['openCVbridge']
[rosmake-0] Starting >>> geometry_msgs [ make ]
[rosmake-1] Starting >>> roslang [ make ]
[rosmake-0] Finished <<< geometry_msgs No Makefile in package geometry_msgs
[rosmake-0] Starting >>> sensor_msgs [ make ]
[rosmake-2] Starting >>> std_msgs [ make ]
[rosmake-3] Starting >>> rosbuild [ make ]
[rosmake-1] Finished <<< roslang No Makefile in package roslang
[rosmake-1] Starting >>> roscpp [ make ]
[rosmake-0] Finished <<< sensor_msgs No Makefile in package sensor_msgs
[rosmake-0] Starting >>> roslib [ make ]
[rosmake-2] Finished <<< std_msgs No Makefile in package std_msgs
[rosmake-2] Starting >>> rosconsole [ make ]
[rosmake-4] Starting >>> message_filters [ make ]
[rosmake-5] Starting >>> openCVbridge [ make ]
[rosmake-3] Finished <<< rosbuild No Makefile in package rosbuild
[rosmake-1] Finished <<< roscpp No Makefile in package roscpp
[rosmake-0] Finished <<< roslib No Makefile in package roslib
[rosmake-2] Finished <<< rosconsole No Makefile in package rosconsole
[rosmake-4] Finished <<< message_filters No Makefile in package message_filters
[rosmake-1] Starting >>> pluginlib [ make ]
[rosmake-1] Finished <<< pluginlib ROS_NOBUILD in package pluginlib
[rosmake-1] Starting >>> image_transport [ make ]
[rosmake-1] Finished <<< image_transport ROS_NOBUILD in package image_transport
[ rosmake ] All 21 linespenCVbridge: 0.7 sec ] [ 1 Active 11/12 Complete ] {-------------------------------------------------------------------------------
mkdir -p bin
cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=rospack find rosbuild/rostoolchain.cmake ..
[rosbuild] Building package openCVbridge
Failed to invoke /opt/ros/fuerte/bin/rospack deps-manifests openCVbridge
[rospack] Error: package/stack openCVbridge depends on non-existent package opencv2

CMake Error at /opt/ros/fuerte/share/ros/core/rosbuild/public.cmake:129 (message):

Failed to invoke rospack to get compile flags for package 'openCVbridge'.                                                             
Look above for errors from rospack itself.  Aborting.  Please fix the
broken dependency!

Call Stack (most recent call first): /opt/ros/fuerte/share/ros/core/rosbuild/public.cmake:203 (rosbuild_invoke_rospack) CMakeLists.txt:12 (rosbuild_init)

-- Configuring incomplete, errors occurred! -------------------------------------------------------------------------------} [ rosmake ] Output from build of package openCVbridge written to: [ rosmake ] /home/cheese/.ros/rosmake/rosmake_output-20130625-155021/openCVbridge/build_output.log [rosmake-5] Finished <<< openCVbridge [FAIL] [ 0.73 seconds ]
[ rosmake ] Halting due to failure in package openCVbridge. [ rosmake ] Waiting for other threads to complete.
[ rosmake ] Results:
[ rosmake ] Built 12 packages with 1 failures.
[ rosmake ] Summary output to directory
[ rosmake ] /home/cheese/.ros/rosmake/rosmake_output-20130625-155021

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-06-25 06:53:49 -0500

tfoote gravatar image

This means that the package opencv2 is not in your ROS_PACKAGE_PATH. Please make sure it is there. What is your ROS_PACKAGE_PATH and where do you find opencv2 on your system?

edit flag offensive delete link more

Comments

1

i checked everything twice. opencv is included in the package-path. i solved the problem by adding "find_package(OpenCV REQUIRED)" in the CmakeList.txt and deleting "<depend package="opencv2"/>" from manifest.xml

HubbaW gravatar image HubbaW  ( 2013-06-27 03:18:13 -0500 )edit

Question Tools

Stats

Asked: 2013-06-25 03:59:52 -0500

Seen: 4,044 times

Last updated: Jun 25 '13