rust-cross / cargo-zigbuild

Compile Cargo project with zig as linker
MIT License
1.45k stars 52 forks source link

failed to run custom build command for openssl-sys v0.9.82 #123

Closed Hans-Wu-cn closed 1 year ago

Hans-Wu-cn commented 1 year ago

I compile raspberry pie on windows10 i using cargo zigbuild --target armv7-unknown-linux-musleabihf still reports an error: failed to run custom build command for openssl-sys v0.9.82 failed to run custom build command for zstd-sys v2.0.7+zstd.1.5.4 But I will not achieve similar problems by running directly or cargo build --release

messense commented 1 year ago

You need to compile openssl from source, you can do that by using the vendored feature. Same for zstd, look it up in its documentation.