I tried to cross-compile a project with openssl dependency. I searched for the solutions and many of them mentioned this project.
But I tried to use rust-musl-cross:x86_64-musl and get the error.
run pkg_config fail: "pkg-config has not been configured to support cross-compilation.\n\nInstall a sysroot for the target platform and configure it via\nPKG_CONFIG_SYSROOT_DIR and PKG_CONFIG_PATH, or install a\ncross-compiling wrapper for pkg-config and set it via\nPKG_CONFIG environment variable."
I tried to cross-compile a project with
openssl
dependency. I searched for the solutions and many of them mentioned this project.But I tried to use
rust-musl-cross:x86_64-musl
and get the error.I saw the Remove OpenSSL issue, which states
And the
openssl-src
crate statesBut this is the crate I have a problem with. So I'm confused and have no idea of how to fix it.