ms-iot / ROSOnWindows

ROS on Windows Documentation Repository
https://aka.ms/ros/docs
MIT License
213 stars 49 forks source link

catkin_make failed when there exist more than one python scripts with the same filename. #135

Closed seanyen closed 5 years ago

seanyen commented 5 years ago
  1. create a catkin workspace.
  2. checkout rosserial repository.
  3. kick off catkin_make.
-- +++ processing catkin package: 'rosserial_embeddedlinux'
-- ==> add_subdirectory(rosserial/rosserial_embeddedlinux)
CMake Error at C:/opt/ros/melodic/x64/share/catkin/cmake/platform/windows.cmake:128 (add_executable):
  add_executable cannot create target
  "make_libraries.py_executable_install_python" because another target with
  the same name already exists.  The existing target is an executable created
  in source directory "C:/jackal/src/rosserial/rosserial_arduino".  See
  documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  C:/opt/ros/melodic/x64/share/catkin/cmake/catkin_install_python.cmake:52 (add_python_executable)
  rosserial/rosserial_embeddedlinux/CMakeLists.txt:16 (catkin_install_python)

CMake Error at C:/opt/ros/melodic/x64/share/catkin/cmake/platform/windows.cmake:136 (install):
  install TARGETS given target "make_libraries.py_executable_install_python"
  which does not exist in this directory.
Call Stack (most recent call first):
  C:/opt/ros/melodic/x64/share/catkin/cmake/catkin_install_python.cmake:52 (add_python_executable)
  rosserial/rosserial_embeddedlinux/CMakeLists.txt:16 (catkin_install_python)
kejxu commented 5 years ago

thanks for reporting! closing since this is the same issue as https://github.com/ms-iot/ROSOnWindows/issues/94