Catkin_make failed to build opencv
Hello guys,
I want to compile a package (https://github.com/mjshiggins/ros-exa...) 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.
Have you installed apt package
libopencv-dev
?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