srv / srv_tools

ROS-Stack with some tools
63 stars 56 forks source link

Build error #20

Open pallyra1 opened 6 years ago

pallyra1 commented 6 years ago

Hey,

I am getting a building error. upon using catkin_make command.

I am getting this.

[ 8%] Built target extract_stereo_images [ 12%] Building CXX object srv_tools-kinetic/bag_tools/CMakeFiles/process_stereo.dir/src/process_stereo.cpp.o [ 20%] Built target extract_images [ 29%] Built target pointcloud_to_webgl [ 37%] Built target pcd_publisher [ 45%] Built target pointcloud_mapper_for_slam [ 54%] Built target pointcloud_mapper [ 70%] Built target tf_filter [ 70%] Built target pointcloud_viewer [ 79%] Built target pointcloud_filtering [ 87%] Built target tf_logger [ 95%] Built target apply_tf_to_odom_msg In file included from /opt/ros/kinetic/include/opencv-3.3.1/opencv2/core.hpp:59:0, from /opt/ros/kinetic/include/opencv-3.3.1/opencv2/core/core.hpp:48, from /opt/ros/kinetic/include/image_proc/processor.h:37, from /opt/ros/kinetic/include/stereo_image_proc/processor.h:37, from /home/pallav/catkin_ws5/src/srv_tools-kinetic/bag_tools/src/processstereo.cpp:34: /opt/ros/kinetic/include/opencv-3.3.1/opencv2/core/mat.hpp: In instantiation of ‘class cv::Mat’: /opt/ros/kinetic/include/stereo_image_proc/processor.h:180:30: required from here /opt/ros/kinetic/include/opencv-3.3.1/opencv2/core/mat.hpp:2150:50: error: no type named ‘channel_type’ in ‘class cv::DataType’ typedef typename DataType<_Tp>::channel_type channel_type; ^ In file included from /opt/ros/kinetic/include/opencv-3.3.1/opencv2/core/mat.hpp:3639:0, from /opt/ros/kinetic/include/opencv-3.3.1/opencv2/core.hpp:59, from /opt/ros/kinetic/include/opencv-3.3.1/opencv2/core/core.hpp:48, from /opt/ros/kinetic/include/image_proc/processor.h:37, from /opt/ros/kinetic/include/stereo_image_proc/processor.h:37, from /home/pallav/catkin_ws5/src/srv_tools-kinetic/bag_tools/src/process_stereo.cpp:34: /opt/ros/kinetic/include/opencv-3.3.1/opencv2/core/mat.inl.hpp:1582:1: error: no type named ‘channeltype’ in ‘class cv::DataType’ Mat<_Tp>::Mat_(const Vec<typename DataType<_Tp>::channel_type, n>& vec, bool c ^ /opt/ros/kinetic/include/opencv-3.3.1/opencv2/core/mat.inl.hpp:1591:1: error: no type named ‘channeltype’ in ‘class cv::DataType’ Mat<_Tp>::Mat_(const Matx<typename DataType<_Tp>::channel_type, m, n>& M, bool ^ /opt/ros/kinetic/include/opencv-3.3.1/opencv2/core/mat.inl.hpp:1600:1: error: no type named ‘channeltype’ in ‘class cv::DataType’ Mat<_Tp>::Mat(const Point<typename DataType<_Tp>::channel_type>& pt, bool co ^ /opt/ros/kinetic/include/opencv-3.3.1/opencv2/core/mat.inl.hpp:1609:1: error: no type named ‘channeltype’ in ‘class cv::DataType’ Mat<_Tp>::Mat(const Point3<typename DataType<_Tp>::channel_type>& pt, bool c ^ /opt/ros/kinetic/include/opencv-3.3.1/opencv2/core/mat.inl.hpp:1938:1: error: no type named ‘channeltype’ in ‘class cv::DataType’ Mat<_Tp>::operator Vec<typename DataType<_Tp>::channel_type, n>() const ^ /opt/ros/kinetic/include/opencv-3.3.1/opencv2/core/mat.inl.hpp:1951:1: error: no type named ‘channeltype’ in ‘class cv::DataType’ Mat<_Tp>::operator Matx<typename DataType<_Tp>::channel_type, m, n>() const ^ In file included from /opt/ros/kinetic/include/opencv-3.3.1/opencv2/core.hpp:56:0, from /opt/ros/kinetic/include/opencv-3.3.1/opencv2/core/core.hpp:48, from /opt/ros/kinetic/include/image_proc/processor.h:37, from /opt/ros/kinetic/include/stereo_image_proc/processor.h:37, from /home/pallav/catkin_ws5/src/srv_tools-kinetic/bag_tools/src/processstereo.cpp:34: /opt/ros/kinetic/include/opencv-3.3.1/opencv2/core/traits.hpp: In instantiation of ‘struct cv::traits::Type’: /opt/ros/kinetic/include/opencv-3.3.1/opencv2/core/mat.inl.hpp:1500:41: required from ‘cv::Mat<_Tp>::Mat_() [with _Tp = unsigned int]’ /opt/ros/kinetic/include/stereo_image_proc/processor.h:60:3: required from here /opt/ros/kinetic/include/opencv-3.3.1/opencv2/core/traits.hpp:366:8: error: ‘type’ is not a member of ‘cv::DataType’ { enum { value = DataType::type }; }; ^ srv_tools-kinetic/bag_tools/CMakeFiles/process_stereo.dir/build.make:62: recipe for target 'srv_tools-kinetic/bag_tools/CMakeFiles/process_stereo.dir/src/process_stereo.cpp.o' failed make[2]: [srv_tools-kinetic/bag_tools/CMakeFiles/process_stereo.dir/src/process_stereo.cpp.o] Error 1 CMakeFiles/Makefile2:1036: recipe for target 'srv_tools-kinetic/bag_tools/CMakeFiles/process_stereo.dir/all' failed make[1]: [srv_tools-kinetic/bag_tools/CMakeFiles/process_stereo.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j4 -l4" failed

Please help!

miquelmassot commented 6 years ago

This error is related to opencv3 shipped now with ROS. A fix has already been release, after a system update, can you confirm if it is working?

mje-nz commented 6 years ago

I'm not that guy, but I've just updated my system packages and I can build process_stereo now.