-
Notifications
You must be signed in to change notification settings - Fork 0
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
Handle cross compilation in our -sys libraries #583
Comments
Some notes on Android: I have a device mapper use case on android targets ( Compiling devicemapper-sys v0.1.5
error: failed to run custom build command for `devicemapper-sys v0.1.5`
Caused by:
process didn't exit successfully: `/target/debug/build/devicemapper-sys-abb148ccab8c3f94/build-script-build` (exit status: 101)
--- stderr
dm.h:2:10: fatal error: 'libdevmapper.h' file not found
thread 'main' panicked at 'Could not generate dm.h bindings: ClangDiagnostic("dm.h:2:10: fatal error: 'libdevmapper.h' file not found\n")', /home/felix/.cargo/registry/src/github.com-1ecc6299db9ec823/devicemapper-sys-0.1.5/build.rs:24:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `devicemapper-sys v0.1.5`
Caused by:
process didn't exit successfully: `/target/debug/build/devicemapper-sys-abb148ccab8c3f94/build-script-build` (exit status: 101)
--- stderr
dm.h:2:10: fatal error: 'libdevmapper.h' file not found
thread 'main' panicked at 'Could not generate dm.h bindings: ClangDiagnostic("dm.h:2:10: fatal error: 'libdevmapper.h' file not found\n")', /home/felix/.cargo/registry/src/github.com-1ecc6299db9ec823/devicemapper-sys-0.1.5/build.rs:24:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace A cross build that uses For checking this crate for android you would a NDK + libdm which you don't get off the shelf (or revert stratis-storage/devicemapper-rs@d66efa4#diff-fdb00b839f512eccbbdb64f45536cba6b07e26a3da7b432dbf37cf6ab5248aaf. |
@flxo Would a solution like stratis-storage/libcryptsetup-rs#278 solve your problem too? |
Sorry for the late reply. No - because |
It's a little bit unclear to me how to best approach this for all required uses cases in bindgen.
Sub issues:
The text was updated successfully, but these errors were encountered: