Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Build against Raspberry Pi OS packages #1673

Unanswered
marcoradocchia asked this question in Q&A
Discussion options

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.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /