Skip to content

cmake binary execute error on windows 11 #2

@knmcguire

Description

@knmcguire

When I follow these instructions to install ROS2-rust, unique_identifier_msgs gets an error.

  Generating Rust code for ROS interfaces
  'C:\dev\ws\rust_ros\install\share\rosidl_generator_rs\cmake\..\..\..\lib\rosidl_generator_rs\rosidl_generator_rs' is not recognized as an internal or external command,
  operable program or batch file.

stdout.log

This is due to several issues I think:

  1. lib is called Lib with capital in windows. It should not be case sensitive but you never know...
  2. the backtracking might not work properly? It does go to the right location though
  3. rosidl_generator_rs is a python script but windows doesn't like executing it as a standalone binary file

Probably number 3 is quite likely, so perhaps fix needs to be made in the custom_command.cmake file.

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