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

Package Cross-Compilation Tools in Docker #24

Merged
merged 54 commits into from
Jul 15, 2020
Merged

Conversation

lukicdarkoo
Copy link
Member

@lukicdarkoo lukicdarkoo commented Jul 9, 2020

Description
This PR supposed to provide cross-compilation tools in Docker, together with helper commands to utilize the tools. It is more closely explained in #18.

Related Issues
Closes #18

Tasks

  • Make compilation pass without errors
  • Test the compiled project if it works on Raspberry Pi Zero
  • Add command cross-colcon-build which wraps colcon build
    • Documentation
  • Add command cross-initialize initializes ROS2 workspace
    • Documentation
  • Clean (e.g. delete /installation/cross_compile/custom_compiler/)
  • Move and improve compilation script (/installation/compile)

@lukicdarkoo lukicdarkoo added the enhancement New feature or request label Jul 9, 2020
@lukicdarkoo lukicdarkoo self-assigned this Jul 9, 2020
@lukicdarkoo lukicdarkoo changed the title Package Cross-compilation Tools in Docker Package Cross-Compilation Tools in Docker Jul 9, 2020
@lukicdarkoo lukicdarkoo marked this pull request as ready for review July 10, 2020 07:10
Copy link
Member

@DavidMansolino DavidMansolino left a comment

Choose a reason for hiding this comment

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

Looks good (even so I didn't try it yet), just a few comments.

Co-authored-by: David Mansolino <[email protected]>
@lukicdarkoo
Copy link
Member Author

lukicdarkoo commented Jul 10, 2020

The idea for the next PR. We can run the cross-compilation in CI and distribute the binaries on GitHub. I compiled minimal dependencies to run epuck_ros2_driver, compressed it in .tar.xz archive and it took only 16MB. This is much easier to distribute than OS images.

However, I am still not able to cross-compile epuck_ros2_camera package as it depends on MMAL. Also, we are missing rootfs which we could build in Docker (which should be emulated in QEMU).

@DavidMansolino
Copy link
Member

👀

lukicdarkoo and others added 14 commits July 15, 2020 15:42
Copy link
Member

@DavidMansolino DavidMansolino left a comment

Choose a reason for hiding this comment

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

Thank you

@lukicdarkoo lukicdarkoo merged commit 02fde10 into master Jul 15, 2020
@omichel omichel deleted the feature-cross-compile branch October 4, 2023 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

ROS2 cross-compilation
2 participants