raymanfx / libv4l-rs

Video4Linux2 bindings for Rust
MIT License
155 stars 65 forks source link

Add extra env variable to set clang include paths #115

Closed kkettinger closed 1 month ago

kkettinger commented 1 month ago

Unnecessary, as setting the CPATH environment variable does the same thing.

molysgaard commented 1 month ago

I've found this snippet to help a lot getting crates that use bindgen to compile correctly under bitbake/yocto.

BINDGEN_EXTRA_CLANG_ARGS = "--sysroot=${STAGING_DIR_TARGET}"
export BINDGEN_EXTRA_CLANG_ARGS