CMake Error at /home/arm19c/catkin_ws/build/navigation-melodic-devel/costmap_2d/cmake/costmap_2d-genmsg.cmake:46 (add_custom_target):
add_custom_target cannot create target "costmap_2d_generate_messages_cpp"
because another target with the same name already exists. The existing
target is a custom target created in source directory
"/home/arm19c/catkin_ws/src/ROS-Academy-for-Beginners/navigation_sim_demo".
See documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
/opt/ros/kinetic/share/genmsg/cmake/genmsg-extras.cmake:307 (include)
navigation-melodic-devel/costmap_2d/CMakeLists.txt:44 (generate_messages)
CMake Error at /home/arm19c/catkin_ws/build/navigation-melodic-devel/costmap_2d/cmake/costmap_2d-genmsg.cmake:79 (add_custom_target):
add_custom_target cannot create target "costmap_2d_generate_messages_eus"
because another target with the same name already exists. The existing
target is a custom target created in source directory
"/home/arm19c/catkin_ws/src/ROS-Academy-for-Beginners/navigation_sim_demo".
See documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
/opt/ros/kinetic/share/genmsg/cmake/genmsg-extras.cmake:307 (include)
navigation-melodic-devel/costmap_2d/CMakeLists.txt:44 (generate_messages)
CMake Error at /home/arm19c/catkin_ws/build/navigation-melodic-devel/costmap_2d/cmake/costmap_2d-genmsg.cmake:112 (add_custom_target):
add_custom_target cannot create target "costmap_2d_generate_messages_lisp"
because another target with the same name already exists. The existing
target is a custom target created in source directory
"/home/arm19c/catkin_ws/src/ROS-Academy-for-Beginners/navigation_sim_demo".
See documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
/opt/ros/kinetic/share/genmsg/cmake/genmsg-extras.cmake:307 (include)
navigation-melodic-devel/costmap_2d/CMakeLists.txt:44 (generate_messages)
CMake Error at /home/arm19c/catkin_ws/build/navigation-melodic-devel/costmap_2d/cmake/costmap_2d-genmsg.cmake:145 (add_custom_target):
add_custom_target cannot create target
"costmap_2d_generate_messages_nodejs" because another target with the same
name already exists. The existing target is a custom target created in
source directory
"/home/arm19c/catkin_ws/src/ROS-Academy-for-Beginners/navigation_sim_demo".
See documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
/opt/ros/kinetic/share/genmsg/cmake/genmsg-extras.cmake:307 (include)
navigation-melodic-devel/costmap_2d/CMakeLists.txt:44 (generate_messages)
CMake Error at /home/arm19c/catkin_ws/build/navigation-melodic-devel/costmap_2d/cmake/costmap_2d-genmsg.cmake:178 (add_custom_target):
add_custom_target cannot create target "costmap_2d_generate_messages_py"
because another target with the same name already exists. The existing
target is a custom target created in source directory
"/home/arm19c/catkin_ws/src/ROS-Academy-for-Beginners/navigation_sim_demo".
See documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
/opt/ros/kinetic/share/genmsg/cmake/genmsg-extras.cmake:307 (include)
navigation-melodic-devel/costmap_2d/CMakeLists.txt:44 (generate_messages)
CMake Error at /opt/ros/kinetic/share/dynamic_reconfigure/cmake/dynamic_reconfigure-macros.cmake:71 (add_custom_target):
add_custom_target cannot create target "costmap_2d_gencfg" because another
target with the same name already exists. The existing target is a custom
target created in source directory
"/home/arm19c/catkin_ws/src/ROS-Academy-for-Beginners/navigation_sim_demo".
See documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
navigation-melodic-devel/costmap_2d/CMakeLists.txt:52 (generate_dynamic_reconfigure_options)
之前在工作空间已经安装了另一个机器人仿真软件,我在猜测应该是有同名包冲突了,但是按照错误提示找不到对应文件位置:
CMake Error at /home/arm19c/catkin_ws/build/navigation-melodic-devel/costmap_2d/cmake/costmap_2d-genmsg.cmake:46 (add_custom_target): add_custom_target cannot create target "costmap_2d_generate_messages_cpp" because another target with the same name already exists. The existing target is a custom target created in source directory "/home/arm19c/catkin_ws/src/ROS-Academy-for-Beginners/navigation_sim_demo". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): /opt/ros/kinetic/share/genmsg/cmake/genmsg-extras.cmake:307 (include) navigation-melodic-devel/costmap_2d/CMakeLists.txt:44 (generate_messages)
CMake Error at /home/arm19c/catkin_ws/build/navigation-melodic-devel/costmap_2d/cmake/costmap_2d-genmsg.cmake:79 (add_custom_target): add_custom_target cannot create target "costmap_2d_generate_messages_eus" because another target with the same name already exists. The existing target is a custom target created in source directory "/home/arm19c/catkin_ws/src/ROS-Academy-for-Beginners/navigation_sim_demo". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): /opt/ros/kinetic/share/genmsg/cmake/genmsg-extras.cmake:307 (include) navigation-melodic-devel/costmap_2d/CMakeLists.txt:44 (generate_messages)
CMake Error at /home/arm19c/catkin_ws/build/navigation-melodic-devel/costmap_2d/cmake/costmap_2d-genmsg.cmake:112 (add_custom_target): add_custom_target cannot create target "costmap_2d_generate_messages_lisp" because another target with the same name already exists. The existing target is a custom target created in source directory "/home/arm19c/catkin_ws/src/ROS-Academy-for-Beginners/navigation_sim_demo". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): /opt/ros/kinetic/share/genmsg/cmake/genmsg-extras.cmake:307 (include) navigation-melodic-devel/costmap_2d/CMakeLists.txt:44 (generate_messages)
CMake Error at /home/arm19c/catkin_ws/build/navigation-melodic-devel/costmap_2d/cmake/costmap_2d-genmsg.cmake:145 (add_custom_target): add_custom_target cannot create target "costmap_2d_generate_messages_nodejs" because another target with the same name already exists. The existing target is a custom target created in source directory "/home/arm19c/catkin_ws/src/ROS-Academy-for-Beginners/navigation_sim_demo". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): /opt/ros/kinetic/share/genmsg/cmake/genmsg-extras.cmake:307 (include) navigation-melodic-devel/costmap_2d/CMakeLists.txt:44 (generate_messages)
CMake Error at /home/arm19c/catkin_ws/build/navigation-melodic-devel/costmap_2d/cmake/costmap_2d-genmsg.cmake:178 (add_custom_target): add_custom_target cannot create target "costmap_2d_generate_messages_py" because another target with the same name already exists. The existing target is a custom target created in source directory "/home/arm19c/catkin_ws/src/ROS-Academy-for-Beginners/navigation_sim_demo". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): /opt/ros/kinetic/share/genmsg/cmake/genmsg-extras.cmake:307 (include) navigation-melodic-devel/costmap_2d/CMakeLists.txt:44 (generate_messages)
CMake Error at /opt/ros/kinetic/share/dynamic_reconfigure/cmake/dynamic_reconfigure-macros.cmake:71 (add_custom_target): add_custom_target cannot create target "costmap_2d_gencfg" because another target with the same name already exists. The existing target is a custom target created in source directory "/home/arm19c/catkin_ws/src/ROS-Academy-for-Beginners/navigation_sim_demo". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): navigation-melodic-devel/costmap_2d/CMakeLists.txt:52 (generate_dynamic_reconfigure_options)