libv4l-sys 0.3.1

A FFI to libv4l
docs.rs failed to build libv4l-sys-0.3.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

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