-
Notifications
You must be signed in to change notification settings - Fork 65
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
Error when cross compiling: 'sys/time.h' file not found #113
Comments
If anything it looks like |
This target builds successfully for me, even without this header. Are you perhaps building this on FreeBSD? We introduced a broken hack in #106 (and I approved it 🙈) that should have used environment variables to detect the target for cross-compilation instead of the target that the build script is compiled for. |
I'm building in a debian based vscode devcontainer (
|
Building it on a native debian machine works without errors.. hmm... |
Updating the devcontainer to the latest version (with - "image": "mcr.microsoft.com/devcontainers/rust:1-1-bullseye",
+ "image": "mcr.microsoft.com/devcontainers/rust:latest", |
I just had the same issue when building The solution (for everyone having the same issue) is setting the
If libclang can't be found, also set
|
I've found this snippet to help a lot getting crates that use bindgen to compile correctly under bitbake/yocto.
|
Great, this works perfectly. Thank you |
When cross compiling my project to
armv7-unknown-linux-gnueabihf
thev4l2-sys-mit
crate throws an error:The
sys/time.h
file exists:/usr/include/x86_64-linux-gnu/sys/time.h
/usr/arm-linux-gnueabihf/include/sys/time.h
Compiling the project directly on the target works. Any idea what could be wrong or missing?
The text was updated successfully, but these errors were encountered: