Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error #20

Open
pallyra1 opened this issue Mar 16, 2018 · 2 comments
Open

Build error #20

pallyra1 opened this issue Mar 16, 2018 · 2 comments

Comments

@pallyra1
Copy link

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/process_stereo.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 ‘channel_type’ 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 ‘channel_type’ 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 ‘channel_type’ 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 ‘channel_type’ 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 ‘channel_type’ 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 ‘channel_type’ 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/process_stereo.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
Copy link
Contributor

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
Copy link

mje-nz commented Jul 20, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants