본문 바로가기

💻 Computer/ROS

Do you stuck in catkin_make problem?

summary : delete catkin_ws and reinstall. That is the best answer.

 

I ate up a HUGE amount of snacks because of stress from catkin_make.

By the ROS tutorials, I'm on step of making catkin workspace.

Until I made folder named catkin_ws, it worked.

However when I tried to build? whatever input catkin_make on my shell,

there's an error

-----------------------------------------------------------------------------------------------------

CMake Error at /opt/ros/melodic/share/catkin/cmake/safe_execute_process.cmake:11 (message):
  execute_process(/usr/bin/python3
  "/opt/ros/melodic/share/catkin/cmake/parse_package_xml.py"
  "/opt/ros/melodic/share/catkin/cmake/../package.xml"
  "/root/catkin_ws/build/catkin/catkin_generated/version/package.cmake")
  returned error code 1
Call Stack (most recent call first):
  /opt/ros/melodic/share/catkin/cmake/catkin_package_xml.cmake:74 (safe_execute_process)
  /opt/ros/melodic/share/catkin/cmake/all.cmake:168 (_catkin_package_xml)
  /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:20 (include)
  CMakeLists.txt:58 (find_package)


-- Configuring incomplete, errors occurred!
See also "/root/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/root/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:320: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

---------------------------------------------------------------------------------------------------------

I kept trying to fix this.

Move $pythonpath, delete devel folder, open all files on error line,,,,

BUT IT ALL NEVER WORK

 

so, i just remove all installed catkin stuff, and reinstall!

 

sudo apt-get remove --auto-remove catkin

sudo apt-get purge catkin

rm -r catkin_ws

 

sudo apt-get update

source /opt/ros/melodic/setup.bash

sudo apt-get install ros-melodic-catkin

sudo apt-get install cmake python-catkin-pkg python-empy python-nose python-setupto
ols libgtest-dev build-essential

 

and you can start on "mkdir -p ~/catkin_wr/src" from ros tutorial

HURRAY~~~~~

GOOD LUCK!

반응형

'💻 Computer > ROS' 카테고리의 다른 글

ROS Using Catkin Workspace  (0) 2022.02.25
ROS 설치 이놈!!!  (0) 2022.02.17
ros를 위한 몇몇 ubuntu 명령들 정리  (0) 2022.01.20
ubuntu 18.04 + ROS melodic 세팅  (0) 2022.01.13
닥치는 대로 설치하는 거 방지 기록용  (0) 2022.01.13