Closed flowjo-isaach closed 3 years ago
Can you provide the full cargo build -vvvvvv
output from a clean build?
@sdroege : sure, here's the clean build:
command: cargo clean && cargo build --target=x86_64-pc-windows-gnu --release
output: https://gist.github.com/flowjo-isaach/607e6379b90434f9be0c3ac1c943bc56
You forgot -vvvvv
:)
my bad 😓
command: cargo clean && cargo build -vvvvv --target=x86_64-pc-windows-gnu --release
output: https://gist.github.com/flowjo-isaach/f2302c424c8af12e702e432e82c7ab09
This is the relevant code here: https://github.com/rust-lang/pkg-config-rs/blob/master/src/lib.rs#L340-L352
You need to configure your environment correctly for cross-compilation with pkg-config.
hi, can you provide a simple configuration method? after some attempts, i build with --target=i686-pc-windows-gnu by mingw-w64 on linux, I couldn't configure it successfully.
I was unsuccessful at cross-compiling from macOS to Windows when using cairo-rs. I attempted to follow what I could from this document: https://github.com/gtk-rs/gtk-rs.github.io/blob/1dbd8c3ded7e83910426bb4af10d312c85a957be/docs-src/tutorial/cross.md.
I ran the following command:
PKG_CONFIG_ALLOW_CROSS=1 cargo build --target=x86_64-pc-windows-gnu --release
Error log is in this github gist: https://gist.github.com/flowjo-isaach/165d7f9cb808f79c1092c0291d58bc78Any help would be greatly appreciated!
.cargo/config:
main.rs: