Enum pkg_config::Error [−][src]
pub enum Error {
EnvNoPkgConfig(String),
CrossCompilation,
Command {
command: String,
cause: Error,
},
Failure {
command: String,
output: Output,
},
ProbeFailure {
name: String,
command: String,
output: Output,
},
// some variants omitted
}
Expand description
Represents all reasons pkg-config
might not succeed or be run at all.
Variants
EnvNoPkgConfig(String)
Tuple Fields
0: String
Aborted because of *_NO_PKG_CONFIG
environment variable.
Contains the name of the responsible environment variable.
CrossCompilation
Detected cross compilation without a custom sysroot.
Ignore the error with PKG_CONFIG_ALLOW_CROSS=1
,
which may let pkg-config
select libraries
for the host’s architecture instead of the target’s.
Command
Failed to run pkg-config
.
Contains the command and the cause.
Failure
pkg-config
did not exit sucessfully after probing a library.
Contains the command and output.
ProbeFailure
pkg-config
did not exit sucessfully on the first attempt to probe a library.
Contains the command and output.