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

Use ament_python to build packages rather than ament_cmake #939

Open
wants to merge 38 commits into
base: ros2
Choose a base branch
from

Conversation

EricGallimore
Copy link
Contributor

@EricGallimore EricGallimore commented Jul 16, 2024

Public API Changes
None

Description
Change the build system for these packages from ament_cmake to ament_python. This is the suggested way to build Python packages for ROS2, and is needed for them to work under Windows.

  • rosapi
  • rosbridge_server

The build system for rosbridge_library is left alone in this PR, since it doesn't have any scripts that need to be executable. However, it could also be converted for consistency.

This should resolve #914 and resolve #921.

I've verified that this test launch file works on Windows with Jazzy:

ros2 launch rosbridge_server rosbridge_websocket_launch.xml

@EricGallimore EricGallimore marked this pull request as ready for review July 16, 2024 22:21
@EricGallimore
Copy link
Contributor Author

This PR includes the changes from #938, since they were needed to run under Windows for testing. That PR should probably be merged first.

Copy link
Contributor

@sea-bass sea-bass left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good, but seems some executable files became not executable in the process. Please take a look.

@EricGallimore
Copy link
Contributor Author

Changes look good, but seems some executable files became not executable in the process. Please take a look.

These should be fixed, thanks.

@sea-bass
Copy link
Contributor

There are also some merge conflicts to address (sorry, I merged a bunch of PRs recently)

@EricGallimore
Copy link
Contributor Author

There are also some merge conflicts to address (sorry, I merged a bunch of PRs recently)

Just rebased and merged. Hopefully this does it.

@sea-bass
Copy link
Contributor

sea-bass commented Aug 27, 2024

Weirdly enough, it also shows a bunch of other changes which seem to undo/repeat some of the small PRs that recently went in ... did you rebase on the latest version of the upstream ros2 branch, or the latest that you had checked out?

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 this pull request may close these issues.

Not working on Windows 11 with Foxy OSError: [WinError 193] %1 is not a valid Win32 application
6 participants