Skip to content

Compiling on Raspberry Pi #16

@Kriegbaum

Description

@Kriegbaum

Hi!
I'm trying to get this up and running on a raspberry pi as the title suggests.
I've gone through a lot of dependencies, and at this point I've hit two issues with compiling. One I could fix and one I could not.

error[E0308]: mismatched types
--> /home/pi/.cargo/registry/src/github.com-1285ae84e5963aae/ffmpeg-next-4.4.0/src/util/error.rs:205:7
|
205 | [[0_i8; AV_ERROR_MAX_STRING_SIZE]; 27];
| ^^^^ expected u8, found i8
|
help: change the type of the numeric literal from i8 to u8
|
205 | [[0_u8; AV_ERROR_MAX_STRING_SIZE]; 27];
| ^^^^

error: aborting due to previous error

For more information about this error, try rustc --explain E0308.
error: failed to compile blissify v0.2.2, intermediate artifacts can be found at /tmp/cargo-installmbmEs8

Caused by:
could not compile ffmpeg-next

To learn more, run the command again with --verbose.

Taking the compiler's suggestion of changing i8 to u8 cleared that one

now I've hit this:

error[E0004]: non-exhaustive patterns: AV_PIX_FMT_SAND64_16, AV_PIX_FMT_RPI4_8 and AV_PIX_FMT_RPI4_10 not covered
--> /home/pi/.cargo/registry/src/github.com-1285ae84e5963aae/ffmpeg-next-4.4.0/src/util/format/pixel.rs:413:15
|
413 | match value {
| ^^^^^ patterns AV_PIX_FMT_SAND64_16, AV_PIX_FMT_RPI4_8 and AV_PIX_FMT_RPI4_10 not covered
|
::: /tmp/cargo-installN6hIRT/release/build/ffmpeg-sys-next-85cb1efc39cad5e2/out/bindings.rs:5653:5
|
5653 | AV_PIX_FMT_SAND64_16 = 190,
| -------------------- not covered
5654 | AV_PIX_FMT_RPI4_8 = 191,
| ----------------- not covered
5655 | AV_PIX_FMT_RPI4_10 = 192,
| ------------------ not covered
|
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
= note: the matched value is of type sys::AVPixelFormat

error: aborting due to previous error

For more information about this error, try rustc --explain E0004.
error: failed to compile blissify v0.2.2, intermediate artifacts can be found at /tmp/cargo-installN6hIRT/

Caused by:
could not compile ffmpeg-next

Any idea where to look to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions