Skip to content

No activation scripts on Windows for Git Bash on condaΒ #321

@traversaro

Description

@traversaro

Today with @S-Dafarra we spent some time, as a CI job was failing on find_package(rclcpp) was failing with:

-- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.20348.
-- The CXX compiler identification is MSVC 19.44.35209.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found YCM: C:/Users/runneradmin/miniconda3/envs/test/Library/share/cmake/YCM (found version "0.18.3")
-- Found YCM: C:/Users/runneradmin/miniconda3/envs/test/Library/share/cmake/YCM (found version "0.18.3")
-- Found YARP: C:/Users/runneradmin/miniconda3/envs/test/Library/lib/cmake/YARP (found version "3.[10](https://github.com/ami-iit/isaac-sim-yarp-bridge/actions/runs/16057347337/job/45314923682?pr=1#step:8:11).1~dev")
-- Found ament_cmake: 1.3.11 (C:/Users/runneradmin/miniconda3/envs/test/Library/share/ament_cmake/cmake)
-- Found Python3: C:/Users/runneradmin/miniconda3/envs/test/python.exe (found version "3.[11](https://github.com/ami-iit/isaac-sim-yarp-bridge/actions/runs/16057347337/job/45314923682?pr=1#step:8:12).13") found components: Interpreter
-- Found rclcpp: 16.0.11 (C:/Users/runneradmin/miniconda3/envs/test/Library/share/rclcpp/cmake)
-- Found rosidl_generator_c: 3.1.6 (C:/Users/runneradmin/miniconda3/envs/test/Library/share/rosidl_generator_c/cmake)
-- Found rosidl_adapter: 3.1.6 (C:/Users/runneradmin/miniconda3/envs/test/Library/share/rosidl_adapter/cmake)
-- Found rosidl_generator_cpp: 3.1.6 (C:/Users/runneradmin/miniconda3/envs/test/Library/share/rosidl_generator_cpp/cmake)
CMake Error at C:/Users/runneradmin/miniconda3/envs/test/Library/share/rosidl_typesupport_c/cmake/get_used_typesupports.cmake:35 (message):
  No 'rosidl_typesupport_c' found
Call Stack (most recent call first):
  C:/Users/runneradmin/miniconda3/envs/test/Library/share/rosidl_typesupport_c/cmake/rosidl_typesupport_c-extras.cmake:8 (get_used_typesupports)
  C:/Users/runneradmin/miniconda3/envs/test/Library/share/rosidl_typesupport_c/cmake/rosidl_typesupport_cConfig.cmake:41 (include)
-- Configuring incomplete, errors occurred!
  C:/Users/runneradmin/miniconda3/envs/test/Library/share/builtin_interfaces/cmake/ament_cmake_export_dependencies-extras.cmake:[21](https://github.com/ami-iit/isaac-sim-yarp-bridge/actions/runs/16057347337/job/45314923682?pr=1#step:8:22) (find_package)
  C:/Users/runneradmin/miniconda3/envs/test/Library/share/builtin_interfaces/cmake/builtin_interfacesConfig.cmake:41 (include)
  C:/Users/runneradmin/miniconda3/envs/test/Library/share/libstatistics_collector/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
  C:/Users/runneradmin/miniconda3/envs/test/Library/share/libstatistics_collector/cmake/libstatistics_collectorConfig.cmake:41 (include)
  C:/Users/runneradmin/miniconda3/envs/test/Library/share/rclcpp/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
  C:/Users/runneradmin/miniconda3/envs/test/Library/share/rclcpp/cmake/rclcppConfig.cmake:41 (include)
  CMakeLists.txt:73 (find_package)

after some investigation (gbionics/isaac-sim-yarp-bridge#1) we realized that the problem was that we were using conda on Git Bash, and robostack does not provide Git Bash activation scripts on Windows (as opposed to most of IIT-related packages in conda-forge).

Note that this is not a problem in pixi, as pixi always using the .bat activation scripts also on other shells.

I do not plan to work on this at the moment, but I think an open issue is helpful for anyone encountering this problem.

The issue in #108 is similar, but that one is related to Powershell, and this one to Git Bash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions