Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross compilation detected. Use PKG_CONFIG_ALLOW_CROSS=1 #250

Closed
tritone11 opened this issue Jan 18, 2019 · 3 comments
Closed

Cross compilation detected. Use PKG_CONFIG_ALLOW_CROSS=1 #250

tritone11 opened this issue Jan 18, 2019 · 3 comments

Comments

@tritone11
Copy link

Hello, I am trying to compile to aarch64-unknown-linux-gnu, and i get this when it's compiling the hidapi crate

$ PKG_CONFIG_ALLOW_CROSS=1 OPENSSL_STATIC=1 cross build --target aarch64-unknown-linux-gnu
   Compiling hidapi v0.4.1
error: failed to run custom build command for `hidapi v0.4.1`
process didn't exit successfully: `/target/debug/build/hidapi-76bd7f33aee12772/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Unable to find libusb-1.0: "Cross compilation detected. Use PKG_CONFIG_ALLOW_CROSS=1 to override"', src/libcore/result.rs:997:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
@tritone11
Copy link
Author

Solved adding the ENV variable to the docker image with Dockerfile

@Dylan-DPC-zz
Copy link

Thanks.

@Alexhuszagh
Copy link
Contributor

Closed in #386.

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

No branches or pull requests

3 participants