공개를 원하지 않는 문의 사항은 withrobot@withrobot.com 으로 메일 주시기 바랍니다.

ocams-1cgn-u melodic 에러

작성자
김정인
작성일
2021-07-29 15:31
조회
278
mces@mces2:~/catkin_ws$ catkin_make
Base path: /home/mces/catkin_ws
Source space: /home/mces/catkin_ws/src
Build space: /home/mces/catkin_ws/build
Devel space: /home/mces/catkin_ws/devel
Install space: /home/mces/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/mces/catkin_ws/build"
####
####
#### Running command: "make -j8 -l8" in "/home/mces/catkin_ws/build"
####
[ 20%] Built target ocams_1cgn_gencfg
[ 60%] Building CXX object ocams_1cgn/CMakeFiles/ocams_1cgn.dir/src/oCamS.cpp.o
[ 60%] Building CXX object ocams_1cgn/CMakeFiles/ocams_1cgn.dir/src/withrobot_camera.cpp.o
[ 80%] Building CXX object ocams_1cgn/CMakeFiles/ocams_1cgn.dir/src/withrobot_utility.cpp.o
/home/mces/catkin_ws/src/ocams_1cgn/src/oCamS.cpp:28:10: fatal error: opencv2/xfeatures2d.hpp: No such file or directory
#include <opencv2/xfeatures2d.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
ocams_1cgn/CMakeFiles/ocams_1cgn.dir/build.make:62: recipe for target 'ocams_1cgn/CMakeFiles/ocams_1cgn.dir/src/oCamS.cpp.o' failed
make[2]: *** [ocams_1cgn/CMakeFiles/ocams_1cgn.dir/src/oCamS.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:484: recipe for target 'ocams_1cgn/CMakeFiles/ocams_1cgn.dir/all' failed
make[1]: *** [ocams_1cgn/CMakeFiles/ocams_1cgn.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed




Ubuntu 18.04 / ROS Melodic  에서 매뉴얼대로 한 후 catkin_make 실행 시

이와 같은 오류가 발생합니다.

해결 가능한 방법이 있는지 알고싶습니다.

opencv 버전은 3.2.0입니다.

$ pkg-config --modversion opencv
3.2.0