yshui / index_camera_passthrough

Experimental Valve Index camera passthrough for Linux
MIT License
46 stars 1 forks source link

error: failed to run custom build command for v4l2-sys-mit v0.2.0 #5

Closed ghost closed 6 months ago

ghost commented 7 months ago

Hello, I'm sorry if the solution to this issue is obvious. I've looked up the error, but I couldn't find anything.

OS: Arch Linux Rust Nightly Installed via rustup from the official source I have openvr, and nvidia-utils installed

I'm getting this error when trying to build index_camera_passthrough

error: failed to run custom build command for v4l2-sys-mit v0.2.0

Caused by:
  process didn't exit successfully: /tmp/cargo-installSET54P/release/build/v4l2-sys-mit-057ded0b20d221c6/build-script-build (exit status: 101)
  --- stderr
  thread 'main' panicked at /home/matrix/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.69/src/fallback.rs:817:9:
  "v4l2_pix_format_union_(anonymous_at_/usr/include/linux/videodev2_h_500_2)" is not a valid Ident
  note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile index_camera_passthrough v0.1.0, intermediate artifacts can be found at /tmp/cargo-installSET54P.
CrispyPin commented 7 months ago

I'm getting this too on Arch, but compiling directly from the git repo worked

yshui commented 6 months ago

Probably the old version of v4l2-sys being incompatible with the v4l header. Since the git version works I am closing this.