gaoxiang12 / slam_in_autonomous_driving

《自动驾驶中的SLAM技术》对应开源代码
1.76k stars 430 forks source link

compile in docker get error "import Error: No model named catkin" #144

Closed zhouwuxiong closed 3 months ago

zhouwuxiong commented 3 months ago

when I compile in docker, get CMake error from catkin.environment_cache import generate_environment_script ... import Error: No model named catkin

fix it: add catkin path in CMakefile.txt


list(APPEND CMAKE_PREFIX_PATH "/opt/ros/noetic/share/catkin") list(APPEND CMAKE_PREFIX_PATH "/opt/ros/noetic") list(APPEND CMAKE_PREFIX_PATH "/opt/ros/noetic/share/catkin/cmake")

reference: https://github.com/catkin/catkin_tools/pull/391 @FransGH

if you have the same error , you can try it