4 releases

✓ Uses Rust 2018 edition

0.2.2 Mar 8, 2020
0.2.1 Oct 28, 2019
0.2.0 Aug 16, 2019
0.1.0 Aug 9, 2019

#35 in Video

Download history 10/week @ 2020-02-07 16/week @ 2020-02-14 14/week @ 2020-02-21 14/week @ 2020-02-28 51/week @ 2020-03-06 61/week @ 2020-03-13 37/week @ 2020-03-20 33/week @ 2020-03-27 30/week @ 2020-04-03 77/week @ 2020-04-10 40/week @ 2020-04-17 57/week @ 2020-04-24 20/week @ 2020-05-01 54/week @ 2020-05-08 11/week @ 2020-05-15 19/week @ 2020-05-22

137 downloads per month

Apache-2.0

36KB
466 lines

Libv4l-sys

CircleCI

Rust FFI wrapper to libv4l.

Build

cargo build

Parameter

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
    

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