Crates.io | libv4l-sys |
lib.rs | libv4l-sys |
version | 0.3.1 |
source | src |
created_at | 2019-08-09 08:53:17.484337 |
updated_at | 2023-06-06 11:08:01.396076 |
description | A FFI to libv4l |
homepage | https://github.com/idein/libv4l-sys |
repository | https://github.com/idein/libv4l-sys |
max_upload_size | |
id | 155319 |
size | 59,162 |
Rust FFI wrapper to libv4l.
cargo build
You can specify some build parameters.
LIBCLANG_INCLUDE_PATH
: Path to the system header directory
LIBCLANG_INCLUDE_PATH=/usr/include/clang/7/include cargo build
For cross compiling, some more configurations are required.
libv4l-sys$ cat <<EOF > .cargo/config
[target.arm-unknown-linux-gnueabihf]
linker = "arm-rpi-linux-gnueabihf-gcc"
rustflags = ["-C", "link-args=-Wl,-rpath-link,/usr/lib/arm-linux-gnueabihf"]
EOF
libv4l-sys$ export LIBCLANG_INCLUDE_PATH=/usr/include/clang/7/include
libv4l-sys$ cargo build --target=arm-unknown-linux-gnueabihf