Open alshdavid opened 1 year ago
Bump
Seems like your image files are incorrect. Make sure you build the x86_64-pc-windows-msvc-cross
docker image (and not x86_64-pc-windows-msvc
. Your cross configuration should be in Cross.toml
, not Cargo.toml
.
#inside the cross directory with git submodules updated
cargo xtask configure-crosstool #configure
cargo build-docker-image x86_64-pc-windows-msvc-cross --tag local #notice the cross suffix
rustup target add x86_64-pc-windows-msvc
Then add the following to the Cross.toml
file in your crate root directory
[target.x86_64-pc-windows-msvc]
image = "ghcr.io/cross-rs/x86_64-pc-windows-msvc-cross:local"
Finally, run cross build --target x86_64-pc-windows-msvc
Works for me under Linux.
Hi all, I'm trying to cross compile for Windows amd64 and arm64 while on a Windows host.
I'm attempting to follow the instructions for the
msvc
build but am failing - probably on something simple.I'm using a Github Actions host using
windows-latest
. My build script looks like:You can see the logs here: https://github.com/alshdavid-labs/cross-platform-binary-template/actions/runs/5892634303/job/15982367248
This results in the following error: