https://github.com/idein/libv4l-sys
Rust FFI to the libv4l
https://github.com/idein/libv4l-sys
ffi rust video4linux
Last synced: about 1 year ago
JSON representation
Rust FFI to the libv4l
- Host: GitHub
- URL: https://github.com/idein/libv4l-sys
- Owner: Idein
- Created: 2019-08-07T06:04:39.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-18T18:44:41.000Z (over 2 years ago)
- Last Synced: 2025-04-15T10:16:23.594Z (about 1 year ago)
- Topics: ffi, rust, video4linux
- Language: Rust
- Size: 49.8 KB
- Stars: 1
- Watchers: 26
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Libv4l-sys
[](https://circleci.com/gh/Idein/libv4l-sys)
Rust FFI wrapper to libv4l.
## Build
```sh
cargo build
```
### Parameter
You can specify some build parameters.
- `LIBCLANG_INCLUDE_PATH`: Path to the system header directory
```sh
LIBCLANG_INCLUDE_PATH=/usr/include/clang/7/include cargo build
```
### Cross build
For cross compiling, some more configurations are required.
#### Example (build for armhf)
```sh
libv4l-sys$ cat < .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