Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build on Raspberry Pi 4 #208

Open
Qinka opened this issue Aug 29, 2024 · 1 comment
Open

Failed to build on Raspberry Pi 4 #208

Qinka opened this issue Aug 29, 2024 · 1 comment

Comments

@Qinka
Copy link

Qinka commented Aug 29, 2024

I built on Raspberry Pi 4 with Raspberry OS (Debian 12).

The version of ffmpeg is:

ffmpeg version 5.1.6-0+deb12u1+rpt1 Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 12 (Debian 12.2.0-14)

When I build my program, I got error:

error[E0004]: non-exhaustive patterns: `sys::AVPixelFormat::AV_PIX_FMT_SAND128`, `sys::AVPixelFormat::AV_PIX_FMT_SAND64_10`, `sys::AVPixelFormat::AV_PIX_FMT_SAND64_16` and 2 more not covered
    --> /home/qinka/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/ffmpeg-next-7.0.4/src/util/format/pixel.rs:481:15
     |
481  |         match value {
     |               ^^^^^ patterns `sys::AVPixelFormat::AV_PIX_FMT_SAND128`, `sys::AVPixelFormat::AV_PIX_FMT_SAND64_10`, `sys::AVPixelFormat::AV_PIX_FMT_SAND64_16` and 2 more not covered
     |
note: `sys::AVPixelFormat` defined here
    --> /home/qinka/on-serve/target/release/build/ffmpeg-sys-next-d13bce8c04236767/out/bindings.rs:5627:1
     |
5627 | pub enum AVPixelFormat {
     | ^^^^^^^^^^^^^^^^^^^^^^
...
5823 |     AV_PIX_FMT_SAND128 = 194,
     |     ------------------ not covered
5824 |     AV_PIX_FMT_SAND64_10 = 195,
     |     -------------------- not covered
5825 |     AV_PIX_FMT_SAND64_16 = 196,
     |     -------------------- not covered
5826 |     AV_PIX_FMT_RPI4_8 = 197,
     |     ----------------- not covered
5827 |     AV_PIX_FMT_RPI4_10 = 198,
     |     ------------------ not covered
     = note: the matched value is of type `sys::AVPixelFormat`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown, or multiple match arms
     |
778  ~             AV_PIX_FMT_P416LE => Pixel::P416LE,
779  ~             _ => todo!(),
     |

For more information about this error, try `rustc --explain E0004`.
error: could not compile `ffmpeg-next` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

But it worked on x86 fedora 40

@chhe
Copy link

chhe commented Sep 7, 2024

You have to enable the rpi feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants