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

ros2 humble colcon build failed #252

Open
Mactarvish opened this issue Oct 24, 2024 · 1 comment
Open

ros2 humble colcon build failed #252

Mactarvish opened this issue Oct 24, 2024 · 1 comment

Comments

@Mactarvish
Copy link

  ~/third_party/audio_common   ros2 ❯ colcon build           
Starting >>> audio_common_msgs
Finished <<< audio_common_msgs [2.68s]                     
Starting >>> audio_capture
Starting >>> audio_play
Starting >>> sound_play
--- stderr: sound_play                                                                                                    
CMake Error at /opt/ros/humble/share/ament_cmake_python/cmake/ament_python_install_package.cmake:122 (add_custom_target):
  add_custom_target cannot create target "ament_cmake_python_copy_sound_play"
  because another target with the same name already exists.  The existing
  target is a custom target created in source directory
  "/home/mck/third_party/audio_common/sound_play".  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:36 (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_sound_play_egg" because another target with the
  same name already exists.  The existing target is a custom target created
  in source directory "/home/mck/third_party/audio_common/sound_play".  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:36 (ament_python_install_package)


---
Failed   <<< sound_play [1.02s, exited with code 1]
Aborted  <<< audio_capture [2.50s]                                                                         
Aborted  <<< audio_play [2.50s]

Summary: 1 package finished [5.32s]
  1 package failed: sound_play
  2 packages aborted: audio_capture audio_play
  3 packages had stderr output: audio_capture audio_play sound_play
  1 package not processed
@knorth55
Copy link
Member

please check this issue.#232

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

2 participants