Build against Raspberry Pi OS packages #1673
Unanswered
marcoradocchia
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm writing Rust code that is targeting
aarch64
, more precisely the Raspberry Pi 5. I'm usingcross
to cross compile in order to build on a faster machine (anx86_64
Archlinux PC) and then deploy to the Pi. However, some of the library crates that I'm using are/use bindings (e.g.libcamera
) and require the respective Raspberry Pi OS packages to be accessible viapkg-config
to be able to build (e.g.libcamera-dev
).I'm very new to cross compilation and Docker and willing to learn. I'm asking here after a couple of days of failed attempts. My first idea was to write a custom
Dockerfile
using a Raspberry Pi OS image as a base image, but sadly no official images exist. Then I've tried to extend theghcr.io/cross-rs/aarch64-unknown-linux-gnu:latest
image, adding the Raspberry Pi OS repository to the APT lists, but failed.Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions