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

catkin_make fails on venv_lock #83

Closed
androiddrew opened this issue Mar 31, 2022 · 1 comment
Closed

catkin_make fails on venv_lock #83

androiddrew opened this issue Mar 31, 2022 · 1 comment

Comments

@androiddrew
Copy link

I git cloned the master branch to my catkin workspaces src. Attempting to run catkin_make results in the following error.

OS: Ubuntu 20.04
ROS Version: Noetic

CMake Error at catkin_virtualenv/catkin_virtualenv/cmake/catkin_generate_virtualenv.cmake:144 (add_custom_target):
  add_custom_target cannot create target "venv_lock" because another target
  with the same name already exists.  The existing target is a custom target
  created in source directory
  "/home/toor/workspace/ros/src/catkin_virtualenv/test_catkin_virtualenv".
  See documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  catkin_virtualenv/test_catkin_virtualenv_inherited/CMakeLists.txt:8 (catkin_generate_virtualenv)


-- +++ processing catkin package: 'test_catkin_virtualenv_py3_isolated'
-- ==> add_subdirectory(catkin_virtualenv/test_catkin_virtualenv_isolated)
CMake Error at catkin_virtualenv/catkin_virtualenv/cmake/catkin_generate_virtualenv.cmake:144 (add_custom_target):
  add_custom_target cannot create target "venv_lock" because another target
  with the same name already exists.  The existing target is a custom target
  created in source directory
  "/home/toor/workspace/ros/src/catkin_virtualenv/test_catkin_virtualenv".
  See documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  catkin_virtualenv/test_catkin_virtualenv_isolated/CMakeLists.txt:8 (catkin_generate_virtualenv)


-- +++ processing catkin package: 'ldlidar'
-- ==> add_subdirectory(ldlidar)
-- Configuring incomplete, errors occurred!
See also "/home/toor/workspace/ros/dev_build/CMakeFiles/CMakeOutput.log".
See also "/home/toor/workspace/ros/dev_build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
@Doomerdinger
Copy link
Contributor

Doomerdinger commented May 31, 2022

@androiddrew What was the resolution here, if any?

I'm encountering the same issue (Melodic, 18.04). I don't see any PRs or commits that specifically address this.

I encounter the issue when doing a non-isolated build such as with catkin_make, and use catkin_virtualenv in more than one package in my project.
The cause seems pretty clear, this line gets called in more than one of my packages withing the project, both defining a target with the same name and thus it errors out.

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

No branches or pull requests

2 participants