Skip to content

cmake binary execute error on windows 11 #2

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

Closed
knmcguire opened this issue Apr 8, 2025 · 0 comments · Fixed by #3
Closed

cmake binary execute error on windows 11 #2

knmcguire opened this issue Apr 8, 2025 · 0 comments · Fixed by #3

Comments

@knmcguire
Copy link
Contributor

knmcguire commented Apr 8, 2025

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.

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

Successfully merging a pull request may close this issue.

1 participant