Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error #13

Closed
mwlock opened this issue Oct 2, 2023 · 3 comments
Closed

Build error #13

mwlock opened this issue Oct 2, 2023 · 3 comments

Comments

@mwlock
Copy link

mwlock commented Oct 2, 2023

Hey all !

I am facing the following error when running colcon build --symlink-install

For context, I am running ROS humble on Ubuntu 22.04

CMake Error at /opt/ros/humble/share/ament_cmake_python/cmake/ament_python_install_package.cmake:106 (add_custom_target):
  add_custom_target cannot create target
  "ament_cmake_python_symlink_choirbot_interfaces" because another target
  with the same name already exists.  The existing target is a custom target
  created in source directory
  "/home/matt/crazychoir_ws/src/crazychoir/ChoiRbot/choirbot_interfaces".
  See documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  /opt/ros/humble/share/ament_cmake_python/cmake/ament_python_install_package.cmake:39 (_ament_cmake_python_install_package)
  CMakeLists.txt:18 (ament_python_install_package)


CMake Error at /opt/ros/humble/share/ament_cmake_python/cmake/ament_python_install_package.cmake:141 (add_custom_target):
  add_custom_target cannot create target
  "ament_cmake_python_build_choirbot_interfaces_egg" because another target
  with the same name already exists.  The existing target is a custom target
  created in source directory
  "/home/matt/crazychoir_ws/src/crazychoir/ChoiRbot/choirbot_interfaces".
  See documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  /opt/ros/humble/share/ament_cmake_python/cmake/ament_python_install_package.cmake:39 (_ament_cmake_python_install_package)
  CMakeLists.txt:18 (ament_python_install_package)

Cheers!

@mwlock
Copy link
Author

mwlock commented Oct 2, 2023

Apparently ament_python_install_package and rosidl_generate_interfaces cannot be run in the same package.... Nobody else faced this issue? ros2/rosidl_python#141

@dbortoluzzi
Copy link

I think the project doesn't support ROS2 Humble at the moment. I have same your problems some months ago.

@lorenzopichierri
Copy link
Collaborator

Hi matthew-william-lock! As dbortoluzzi suggested, the project runs on ROS 2 Foxy. However, you are welcome to submit pull requests to the humble-devel branch if you have any updates or improvements to contribute. Your input is appreciated, and feel free to reach out if you have any questions or need further clarification!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants