zmwangx / rust-ffmpeg

Safe FFmpeg wrapper.
Do What The F*ck You Want To Public License
1.26k stars 199 forks source link

The package won't build in Raspberry PI Raspbian 11 #115

Open bwsw opened 1 year ago

bwsw commented 1 year ago
  1. Install default RPI4 Raspbian 11 and ffmpeg dependencies from the standard RPI repo;
  2. clone the repo git clone https://github.com/zmwangx/rust-ffmpeg.git;
  3. cd rust-ffmpeg;
  4. cargo build -F rpi

Error is:

error[E0425]: cannot find value `AV_PIX_FMT_RPI` in this scope
    --> src/util/format/pixel.rs:1114:27
     |
1114 |             Pixel::RPI => AV_PIX_FMT_RPI,
     |                           ^^^^^^^^^^^^^^ help: a unit variant with a similar name exists: `AV_PIX_FMT_0RGB`
     |
    ::: /home/userpi/rust-ffmpeg/target/debug/build/ffmpeg-sys-next-f3f20c0089b509d1/out/bindings.rs:5651:5
     |
5651 |     AV_PIX_FMT_0RGB = 120,
     |     --------------------- similarly named unit variant `AV_PIX_FMT_0RGB` defined here
Polochon-street commented 8 months ago

should be fixed now :)