cross-rs/cross

Basic command is not running from Readme

Closed this issue · 1 comments

Basic command is not running from Readme. Even when docker is running.
I am on m2 macos (14.5) & trying to cross compile for raspberry pi 4.

Command

cross build --target arm-unknown-linux-gnueabihf

Error

Unable to find image 'ghcr.io/cross-rs/arm-unknown-linux-gnueabihf:0.2.5' locally
0.2.5: Pulling from cross-rs/arm-unknown-linux-gnueabihf
docker: no matching manifest for linux/arm64/v8 in the manifest list entries.
See 'docker run --help'.

See #1214 (comment)

either pull the image with the platform specified: CROSS_CONTAINER_OPTS="--platform linux/amd64"
or use cross from the main branch: cargo install cross --git https://github.com/cross-rs/cross

duplicates #1214