holdtao 2021-10-10 16:56 采纳率: 0%
浏览 71
已结题

ubuntu在运行话题时编译出错

CMake Error at ros_tutorials/roscpp_tutorials/CMakeLists.txt:16 (add_executable):
add_executable cannot create target "listener" because another target with
the same name already exists. The existing target is an executable created
in source directory "/home/yzt/catkin_ws/src/learning_communication". See
documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
ros_tutorials/roscpp_tutorials/CMakeLists.txt:46 (rostutorial)

CMake Error at ros_tutorials/roscpp_tutorials/CMakeLists.txt:16 (add_executable):
add_executable cannot create target "talker" because another target with
the same name already exists. The existing target is an executable created
in source directory "/home/yzt/catkin_ws/src/learning_communication". See
documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
ros_tutorials/roscpp_tutorials/CMakeLists.txt:46 (rostutorial)

  • 写回答

1条回答 默认 最新

  • holdtao 2021-10-10 16:58
    关注

    各位大佬,这个怎么解决阿

    评论

报告相同问题?

问题事件

  • 系统已结题 10月18日
  • 创建了问题 10月10日