Hi Josep, Could you say what version of the stacks you are using? Tully On Sat, Jan 29, 2011 at 3:17 PM, Josep Arnau Claret Robert < jsprnclrtrbrt@hotmail.com> wrote: > Dear comrades, > > I am trying to get and manipulate images from the webcam in my laptop, and > I just installed the gscam package, which works properly. Now I was thinking > trying the image_pipeline package in order to work with color image and do > some manipulation on the images. > > As the image_pipeline asks for the vision_opencv package as a dependency I > am trying to install vision_opencv, but when i rosmake it, I get the > following error while it is making the cv_bridge package: > > $ rosmake vision_opencv > [ rosmake ] Packages requested are: > ['vision_opencv'] > > [ rosmake ] Logging to > directory/home/joseparnau/.ros/rosmake/rosmake_output-20110129-234201 > > [ rosmake ] Expanded args ['vision_opencv'] to: > ['opencv2', 'cv_bridge', 'opencv_tests', > 'image_geometry'] > > [ rosmake ] Checking rosdeps compliance for packages vision_opencv. This > may take a few > seconds. > > [ rosmake ] rosdep check passed all system dependencies in > packages > > [ rosmake ] Starting >>> > tools/rospack > > [ rosmake ] Finished <<< > tools/rospack > > [ rosmake ] Starting >>> > 3rdparty/gtest > > [ rosmake ] Finished <<< > 3rdparty/gtest > > [ rosmake ] Starting >>> > core/genmsg_cpp > > [ rosmake ] Finished <<< > core/genmsg_cpp > > [rosmake-0] Starting >>> opencv2 [ make > ] > > [rosmake-1] Starting >>> roslang [ make > ] > > [rosmake-1] Finished <<< roslang No Makefile in package > roslang > > [rosmake-1] Starting >>> roslib [ make > ] > > [rosmake-1] Finished <<< roslib [PASS] [ 1.22 seconds > ] > > [rosmake-1] Starting >>> xmlrpcpp [ make > ] > > [rosmake-1] Finished <<< xmlrpcpp [PASS] [ 0.45 seconds > ] > > [rosmake-1] Starting >>> rosconsole [ make > ] > > [rosmake-1] Finished <<< rosconsole [PASS] [ 0.79 seconds > ] > > [rosmake-1] Starting >>> roscpp [ make > ] > > [rosmake-1] Finished <<< roscpp [PASS] [ 1.48 seconds > ] > > [rosmake-1] Starting >>> std_msgs [ make > ] > > [rosmake-1] Finished <<< std_msgs [PASS] [ 3.65 seconds > ] > > [rosmake-1] Starting >>> rospy [ make > ] > > [rosmake-1] Finished <<< rospy [PASS] [ 0.39 seconds > ] > > [rosmake-1] Starting >>> rosclean [ make > ] > > [rosmake-1] Finished <<< rosclean [PASS] [ 0.37 seconds > ] > > [rosmake-1] Starting >>> rosgraph [ make > ] > > [rosmake-1] Finished <<< rosgraph [PASS] [ 0.45 seconds > ] > > [rosmake-1] Starting >>> rosmaster [ make > ] > > [rosmake-1] Finished <<< rosmaster [PASS] [ 0.39 seconds > ] > > [rosmake-1] Starting >>> rosout [ make > ] > > [rosmake-1] Finished <<< rosout [PASS] [ 0.44 seconds > ] > > [rosmake-1] Starting >>> roslaunch [ make > ] > > [rosmake-1] Finished <<< roslaunch No Makefile in package > roslaunch > > [rosmake-1] Starting >>> rostest [ make > ] > > [rosmake-1] Finished <<< rostest [PASS] [ 0.40 seconds > ] > > [rosmake-1] Starting >>> topic_tools [ make > ] > > [rosmake-1] Finished <<< topic_tools [PASS] [ 1.06 seconds > ] > > [rosmake-1] Starting >>> rosbag [ make > ] > > [rosmake-1] Finished <<< rosbag [PASS] [ 0.65 seconds > ] > > [rosmake-1] Starting >>> rosrecord [ make > ] > > [rosmake-1] Finished <<< rosrecord [PASS] [ 1.12 seconds > ] > > [rosmake-1] Starting >>> rosbagmigration [ make > ] > > [rosmake-1] Finished <<< rosbagmigration No Makefile in package > rosbagmigration > > [rosmake-1] Starting >>> geometry_msgs [ make > ] > > [rosmake-1] Finished <<< geometry_msgs [PASS] [ 3.05 seconds > ] > > [rosmake-1] Starting >>> sensor_msgs [ make > ] > > [rosmake-1] Finished <<< sensor_msgs [PASS] [ 2.42 seconds > ] > > [ rosmake ] Output from build of package opencv2 written > to: > [ 1 Active 21/25 Complete ] > [ rosmake ] > /home/joseparnau/.ros/rosmake/rosmake_output-20110129-234201/opencv2/build_output.log > > [rosmake-0] Finished <<< opencv2 [PASS] [ 555.46 seconds ] -- WARNING: 64 > compiler > warnings > > [rosmake-0] Starting >>> cv_bridge [ make > ] > > [ rosmake ] Last 40 lines_bridge: 3.5 sec > ] > [ 1 Active 22/25 Complete ] > > {------------------------------------------------------------------------------- > -- Build files have been written to: > /home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/build > cd build && make -j2 > make[1]: Entering directory > `/home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/build' > make[2]: Entering directory > `/home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/build' > make[3]: Entering directory > `/home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/build' > Scanning dependencies of target rospack_genmsg_libexe > make[3]: Leaving directory > `/home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/build' > [ 0%] Built target rospack_genmsg_libexe > make[3]: Entering directory > `/home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/build' > Scanning dependencies of target rosbuild_precompile > make[3]: Leaving directory > `/home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/build' > [ 0%] Built target rosbuild_precompile > make[3]: Entering directory > `/home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/build' > Scanning dependencies of target cv_bridge > make[3]: Leaving directory > `/home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/build' > make[3]: Entering directory > `/home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/build' > [100%] Building CXX object CMakeFiles/cv_bridge.dir/src/cv_bridge.o > In file included from > /home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/src/cv_bridge.cpp:1: > > /home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/include/cv_bridge/cv_bridge.h:28: > error: 'std_msgs' has not been declared > > /home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/include/cv_bridge/cv_bridge.h:28: > error: ISO C++ forbids declaration of 'Header' with no type > > /home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/include/cv_bridge/cv_bridge.h:28: > error: expected ';' before 'header' > > /home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/include/cv_bridge/cv_bridge.h: > In static member function 'static void > ros::serialization::Serializer::write(Stream&, const > cv_bridge::CvImage&)': > > /home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/include/cv_bridge/cv_bridge.h:212: > error: 'const class cv_bridge::CvImage' has no member named 'header' > > /home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/include/cv_bridge/cv_bridge.h: > In static member function 'static void > ros::serialization::Serializer::read(Stream&, > cv_bridge::CvImage&)': > > /home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/include/cv_bridge/cv_bridge.h:228: > error: 'class cv_bridge::CvImage' has no member named 'header' > > /home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/include/cv_bridge/cv_bridge.h: > In static member function 'static uint32_t > ros::serialization::Serializer::serializedLength(const > cv_bridge::CvImage&)': > > /home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/include/cv_bridge/cv_bridge.h:247: > error: 'const class cv_bridge::CvImage' has no member named 'header' > > /home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/src/cv_bridge.cpp: > In member function 'void cv_bridge::CvImage::toImageMsg(sensor_msgs::Image&) > const': > > /home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/src/cv_bridge.cpp:111: > error: 'header' was not declared in this scope > > /home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/src/cv_bridge.cpp: > In function 'cv_bridge::CvImagePtr cv_bridge::toCvCopy(const > sensor_msgs::Image&, const std::string&)': > > /home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/src/cv_bridge.cpp:134: > error: 'class cv_bridge::CvImage' has no member named 'header' > > /home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/src/cv_bridge.cpp: > In function 'cv_bridge::CvImageConstPtr cv_bridge::toCvShare(const > sensor_msgs::Image&, const boost::shared_ptr&, const > std::string&)': > > /home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/src/cv_bridge.cpp:189: > error: 'class cv_bridge::CvImage' has no member named 'header' > make[3]: *** [CMakeFiles/cv_bridge.dir/src/cv_bridge.o] Error 1 > make[3]: Leaving directory > `/home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/build' > make[2]: *** [CMakeFiles/cv_bridge.dir/all] Error 2 > make[2]: Leaving directory > `/home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/build' > make[1]: *** [all] Error 2 > make[1]: Leaving directory > `/home/joseparnau/ros/vision_opencv/vision_opencv/cv_bridge/build' > > -------------------------------------------------------------------------------} > [ rosmake ] Output from build of package cv_bridge written to: > [ rosmake ] > /home/joseparnau/.ros/rosmake/rosmake_output-20110129-234201/cv_bridge/build_output.log > > [rosmake-0] Finished <<< cv_bridge [FAIL] [ 3.49 seconds > ] > > [ rosmake ] Halting due to failure in package cv_bridge. > [ rosmake ] Waiting for other threads to > complete. > > [ rosmake ] > Results: > > [ rosmake ] Built 23 packages with 1 > failures. > > [ rosmake ] Summary output to > directory > > [ rosmake ] /home/joseparnau/.ros/rosmake/rosmake_output-20110129-234201 > > I dont get the point on why cv_bridge.h does have the std_msgs definition, > so I was wondering if someone has gone throught this same error or has any > clue about what it might be. > > I'll appreciate any help and thx in advance! > > Josep! > > _______________________________________________ > ros-users mailing list > ros-users@code.ros.org > https://code.ros.org/mailman/listinfo/ros-users > > -- Tully Foote Systems Engineer Willow Garage, Inc. tfoote@willowgarage.com (650) 475-2827