之前一直使用ros2,现在项目需要换成了ros1,但是在编译时出现了报错:
Call Stack (most recent call first):
/opt/ros/noetic/share/catkin/cmake/em_expand.cmake:25 (safe_execute_process)
/opt/ros/noetic/share/catkin/cmake/catkin_workspace.cmake:35 (em_expand)
CMakeLists.txt:69 (catkin_workspace)
-- Configuring incomplete, errors occurred!
See also "/home/yz/octomap_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/yz/octomap_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
最后找到原因似乎是PYTHON不兼容,改为以下命令编译:
catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3