5 unstable releases
0.3.1 | Jun 6, 2023 |
---|---|
0.3.0 |
|
0.2.2 | Mar 8, 2020 |
0.2.1 | Oct 28, 2019 |
0.1.0 | Aug 9, 2019 |
#162 in Video
1,097 downloads per month
36KB
464 lines
Libv4l-sys
Rust FFI wrapper to libv4l.
Build
cargo build
Parameter
You can specify some build parameters.
-
LIBCLANG_INCLUDE_PATH
: Path to the system header directoryLIBCLANG_INCLUDE_PATH=/usr/include/clang/7/include cargo build
Cross build
For cross compiling, some more configurations are required.
Example (build for armhf)
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
Required package
- libclang-7-dev
- libv4l-dev
Dependencies
~0–1.9MB
~37K SLoC