#video #video4linux

sys libv4l-sys

A FFI to libv4l

3 unstable releases

✓ Uses Rust 2018 edition

0.2.1 Oct 28, 2019
0.2.0 Aug 16, 2019
0.1.0 Aug 9, 2019

#27 in Video

Download history 11/week @ 2019-08-05 17/week @ 2019-08-12 32/week @ 2019-08-19 35/week @ 2019-08-26 80/week @ 2019-09-02 53/week @ 2019-09-09 60/week @ 2019-09-16 44/week @ 2019-09-23 72/week @ 2019-09-30 19/week @ 2019-10-07 10/week @ 2019-10-14 20/week @ 2019-10-21

151 downloads per month

Apache-2.0

35KB
462 lines

Libv4l-sys

CircleCI

Rust FFI wrapper to libv4l.

Build

cargo build

You can specify the path to the system header directory using LIBCLANG_INCLUDE_PATH.

LIBCLANG_INCLUDE_PATH=/usr/include/clang/7/include cargo build

Cross build

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.5MB
~31K SLoC