cross-rs / cross

“Zero setup” cross compilation and “cross testing” of Rust crates
Apache License 2.0
6.21k stars 354 forks source link

Basic command is not running from Readme #1515

Closed krishnaTORQUE closed 2 weeks ago

krishnaTORQUE commented 3 weeks ago

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'.
Emilgardis commented 2 weeks ago

See https://github.com/cross-rs/cross/issues/1214#issuecomment-1452732222

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