Rust compiler with Ubuntu "pkg-config" --> build fail :(

patrikhorvaticPRO

a year ago

Hello,

one of the packages for my Rust project requires "pkg-config" Ubuntu package, but I fail to configure it.

Here is the Rust compiler error:
called Result::unwrap() on an Err value: "pkg-config has not been configured to support cross-compilation.\n\nInstall a sysroot for the target platform and configure it via\nPKGCONFIGSYSROOTDIR and PKGCONFIGPATH, or install a\ncross-compiling wrapper for pkg-config and set it via\nPKGCONFIG environment variable."

Any help is welcome!

View Deploy

2 Replies

a year ago

To begin, is pkg-config being installed? Check this in the build table at the top of your build logs.


patrikhorvaticPRO

a year ago

Hello,

yes it is being installed. In logs it is repored:
[stage-0 5/9] RUN sudo apt-get update && sudo apt-get install -y --no-install-recommends pkg-config libssl-dev libfreetype6-dev libfontconfig1-dev


Rust compiler with Ubuntu "pkg-config" --> build fail :( - Railway Help Station