Skip to content

Fail to build when cross-compiling for Windows #7

Description

@beamspease

Probably the same cause as #6

Build command:

cargo build --target i686-pc-windows-gnu

Error:

error: failed to run custom build command for `libusb-sys v0.2.3`
process didn't exit successfully: `target/debug/build/libusb-sys-6bbfe3932132cdbf/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "Cross compilation detected. Use PKG_CONFIG_ALLOW_CROSS=1 to override"', /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libcore/result.rs:868
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions