libv4l-sys

Crates.iolibv4l-sys
lib.rslibv4l-sys
version0.3.1
sourcesrc
created_at2019-08-09 08:53:17.484337
updated_at2023-06-06 11:08:01.396076
descriptionA FFI to libv4l
homepagehttps://github.com/idein/libv4l-sys
repositoryhttps://github.com/idein/libv4l-sys
max_upload_size
id155319
size59,162
Engineers (github:idein:engineers)

documentation

https://docs.rs/libv4l-sys

README

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
Commit count: 58

cargo fmt