0
$\begingroup$

Rosanswers logo

trying to get ros working.. im trying this tutorial

now it crashs with following error:

error: opencv2/imgcodecs.hpp: No such file or directory

pi@raspberrypi ~/ros_catkin_ws $ cd /home/pi/ros_catkin_ws/build_isolated/compressed_depth_image_transport && /opt/ros/indigo/env.sh make -j4 -l4 [100%] Built target compressed_depth_image_transport_gencfg [100%] Building CXX object CMakeFiles/compressed_depth_image_transport.dir/src/codec.cpp.o /home/pi/ros_catkin_ws/src/image_transport_plugins/compressed_depth_image_transport/src/codec.cpp:49:33: fatal error: opencv2/imgcodecs.hpp: No such file or directory compilation terminated. CMakeFiles/compressed_depth_image_transport.dir/build.make:123: recipe for target 'CMakeFiles/compressed_depth_image_transport.dir/src/codec.cpp.o' failed make[2]: *** [CMakeFiles/compressed_depth_image_transport.dir/src/codec.cpp.o] Error 1 CMakeFiles/Makefile2:122: recipe for target 'CMakeFiles/compressed_depth_image_transport.dir/all' failed make[1]: *** [CMakeFiles/compressed_depth_image_transport.dir/all] Error 2 Makefile:123: recipe for target 'all' failed make: *** [all] Error 2

can anyone help please?


Originally posted by g.sart on ROS Answers with karma: 13 on 2016-01-27

Post score: 1

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

It depends on your version of opencv, this header is meant, i think, for opencv version 3.0 and higher, for example I had this problem when I was trying to follow this tutorial because my opencv is version 2.4.8 so i simply delete this inclusion and the error disappear.


Originally posted by ghanimmukhtar with karma: 41 on 2016-06-20

This answer was ACCEPTED on the original site

Post score: 0

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.