Hello guys,
I want to compile a package (https://github.com/mjshiggins/ros-examples) with the catkin_make command from the catkin_ws folder, but it seems that the OpenCV header file is depreceated or not installed. I'm sure, that I install all OpenCV dependencies.
/home/pkatsoulakos/catkin_ws/src/ros-examples-master/src/lidar/src/lidar_node.cpp:20:10: fatal error: opencv/cv.h: No such file or directory
20 | #include <opencv/cv.h>
| ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [ros-examples-master/src/lidar/CMakeFiles/lidar_node.dir/build.make:63: ros-examples-master/src/lidar/CMakeFiles/lidar_node.dir/src/lidar_node.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1373: ros-examples-master/src/lidar/CMakeFiles/lidar_node.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Thank you for your help.
Originally posted by Petros ADLATUS on ROS Answers with karma: 28 on 2022-04-01
Post score: 0
Original comments
Comment by Mike Scheutzow on 2022-04-01:
Have you installed apt package libopencv-dev
?
Comment by Petros ADLATUS on 2022-04-01:
yes it's already installed. I copy the src
folder with the 3 folders: fusion lidar radar
into my personal workspace and execute catkin_make from the catkin_ws folder