-
Notifications
You must be signed in to change notification settings - Fork 455
Build against Raspberry Pi OS packages #1673
-
I'm writing Rust code that is targeting aarch64, more precisely the Raspberry Pi 5. I'm using cross to cross compile in order to build on a faster machine (an x86_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 via pkg-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 the ghcr.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.