CCExtractor / rusty_ffmpeg

FFI bindings for FFmpeg inner libraries.
https://crates.io/crates/rusty_ffmpeg
MIT License
164 stars 26 forks source link

Compiliation error after upgrading to ffmpeg 7.0 #116

Closed wangjia184 closed 4 months ago

wangjia184 commented 4 months ago
[dependencies]
rsmpeg = "0.15.0+ffmpeg.7.0"  // 0.14.2+ffmpeg.6.1 works well

[package.metadata.vcpkg]
dependencies = [
    "ffmpeg[ffmpeg,x264,avcodec,avdevice,avfilter,avformat]:x64-windows-static",
]
git = "https://github.com/microsoft/vcpkg"
rev = "4a600e9"
error[E0425]: cannot find value `AV_PIX_FMT_GBRAP14LE` in this scope
    --> C:\Users\xxx\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\rusty_ffmpeg-0.14.1+ffmpeg.7.0\src\avutil\pixfmt.rs:64:58
     |
64   | AV_PIX_FMT_NE!(AV_PIX_FMT_GBRAP14, AV_PIX_FMT_GBRAP14BE, AV_PIX_FMT_GBRAP14LE);
     |                                                          ^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `AV_PIX_FMT_GBRAP10LE`
     |
    ::: G:\projects\virtual_dealer\target\debug\build\rusty_ffmpeg-f9f43431ec5857d1\out/binding.rs:6746:1
     |
6746 | pub const AV_PIX_FMT_GBRAP10LE: AVPixelFormat = 164;
     | ---------------------------------------------------- similarly named constant `AV_PIX_FMT_GBRAP10LE` defined here

error[E0425]: cannot find value `AV_PIX_FMT_P012LE` in this scope
    --> C:\Users\xxx\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\rusty_ffmpeg-0.14.1+ffmpeg.7.0\src\avutil\pixfmt.rs:92:52
     |
92   | AV_PIX_FMT_NE!(AV_PIX_FMT_P012, AV_PIX_FMT_P012BE, AV_PIX_FMT_P012LE);
     |                                                    ^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `AV_PIX_FMT_P010LE`
     |
    ::: G:\projects\virtual_dealer\target\debug\build\rusty_ffmpeg-f9f43431ec5857d1\out/binding.rs:6736:1
     |
6736 | pub const AV_PIX_FMT_P010LE: AVPixelFormat = 159;
     | ------------------------------------------------- similarly named constant `AV_PIX_FMT_P010LE` defined here

error[E0425]: cannot find value `AV_PIX_FMT_Y212LE` in this scope
    --> C:\Users\xxx\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\rusty_ffmpeg-0.14.1+ffmpeg.7.0\src\avutil\pixfmt.rs:98:53
     |
98   | AV_PIX_FMT_NE!(AV_PIX_FMT_Y212, AV_PIX_FMT_Y212BE,  AV_PIX_FMT_Y212LE);
     |                                                     ^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `AV_PIX_FMT_Y210LE`
     |
    ::: G:\projects\virtual_dealer\target\debug\build\rusty_ffmpeg-f9f43431ec5857d1\out/binding.rs:6804:1
     |
6804 | pub const AV_PIX_FMT_Y210LE: AVPixelFormat = 193;
     | ------------------------------------------------- similarly named constant `AV_PIX_FMT_Y210LE` defined here

error[E0425]: cannot find value `AV_PIX_FMT_XV30LE` in this scope
    --> C:\Users\xxx\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\rusty_ffmpeg-0.14.1+ffmpeg.7.0\src\avutil\pixfmt.rs:100:53
     |
100  | AV_PIX_FMT_NE!(AV_PIX_FMT_XV30, AV_PIX_FMT_XV30BE,  AV_PIX_FMT_XV30LE);
     |                                                     ^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `AV_PIX_FMT_NV20LE`
     |
    ::: G:\projects\virtual_dealer\target\debug\build\rusty_ffmpeg-f9f43431ec5857d1\out/binding.rs:6622:1
     |
6622 | pub const AV_PIX_FMT_NV20LE: AVPixelFormat = 102;
     | ------------------------------------------------- similarly named constant `AV_PIX_FMT_NV20LE` defined here

error[E0425]: cannot find value `AV_PIX_FMT_XV36LE` in this scope
   --> C:\Users\xxx\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\rusty_ffmpeg-0.14.1+ffmpeg.7.0\src\avutil\pixfmt.rs:102:53
    |
11  |         pub const $def: AVPixelFormat = $le;
    |         ------------------------------------ similarly named constant `AV_PIX_FMT_XV36` defined here
...
102 | AV_PIX_FMT_NE!(AV_PIX_FMT_XV36, AV_PIX_FMT_XV36BE,  AV_PIX_FMT_XV36LE);
    |                                                     ^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `AV_PIX_FMT_XV36`

error[E0425]: cannot find value `AV_PIX_FMT_P212LE` in this scope
    --> C:\Users\xxx\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\rusty_ffmpeg-0.14.1+ffmpeg.7.0\src\avutil\pixfmt.rs:113:52
     |
113  | AV_PIX_FMT_NE!(AV_PIX_FMT_P212, AV_PIX_FMT_P212BE, AV_PIX_FMT_P212LE);
     |                                                    ^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `AV_PIX_FMT_P210LE`
     |
    ::: G:\projects\virtual_dealer\target\debug\build\rusty_ffmpeg-f9f43431ec5857d1\out/binding.rs:6816:1
     |
6816 | pub const AV_PIX_FMT_P210LE: AVPixelFormat = 199;
     | ------------------------------------------------- similarly named constant `AV_PIX_FMT_P210LE` defined here

error[E0425]: cannot find value `AV_PIX_FMT_P412LE` in this scope
    --> C:\Users\xxx\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\rusty_ffmpeg-0.14.1+ffmpeg.7.0\src\avutil\pixfmt.rs:115:52
     |
115  | AV_PIX_FMT_NE!(AV_PIX_FMT_P412, AV_PIX_FMT_P412BE, AV_PIX_FMT_P412LE);
     |                                                    ^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `AV_PIX_FMT_P410LE`
     |
    ::: G:\projects\virtual_dealer\target\debug\build\rusty_ffmpeg-f9f43431ec5857d1\out/binding.rs:6820:1
     |
6820 | pub const AV_PIX_FMT_P410LE: AVPixelFormat = 201;
     | ------------------------------------------------- similarly named constant `AV_PIX_FMT_P410LE` defined here

error[E0425]: cannot find value `AV_PIX_FMT_RGBAF16LE` in this scope
   --> C:\Users\xxx\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\rusty_ffmpeg-0.14.1+ffmpeg.7.0\src\avutil\pixfmt.rs:122:58
    |
11  |         pub const $def: AVPixelFormat = $le;
    |         ------------------------------------ similarly named constant `AV_PIX_FMT_RGBAF16` defined here
...
122 | AV_PIX_FMT_NE!(AV_PIX_FMT_RGBAF16, AV_PIX_FMT_RGBAF16BE, AV_PIX_FMT_RGBAF16LE);
    |                                                          ^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `AV_PIX_FMT_RGBAF16`

error[E0425]: cannot find value `AV_PIX_FMT_RGBF32LE` in this scope
   --> C:\Users\xxx\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\rusty_ffmpeg-0.14.1+ffmpeg.7.0\src\avutil\pixfmt.rs:125:56
    |
11  |         pub const $def: AVPixelFormat = $le;
    |         ------------------------------------ similarly named constant `AV_PIX_FMT_RGBF32` defined here
...
125 | AV_PIX_FMT_NE!(AV_PIX_FMT_RGBF32, AV_PIX_FMT_RGBF32BE, AV_PIX_FMT_RGBF32LE);
    |                                                        ^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `AV_PIX_FMT_RGBF32`

error[E0425]: cannot find value `AV_PIX_FMT_RGBAF32LE` in this scope
   --> C:\Users\xxx\.cargo\registry\src\mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd\rusty_ffmpeg-0.14.1+ffmpeg.7.0\src\avutil\pixfmt.rs:127:58
    |
11  |         pub const $def: AVPixelFormat = $le;
    |         ------------------------------------ similarly named constant `AV_PIX_FMT_RGBAF32` defined here
...
127 | AV_PIX_FMT_NE!(AV_PIX_FMT_RGBAF32, AV_PIX_FMT_RGBAF32BE, AV_PIX_FMT_RGBAF32LE);
    |                                                          ^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `AV_PIX_FMT_RGBAF32`

For more information about this error, try `rustc --explain E0425`.
error: could not compile `rusty_ffmpeg` (lib) due to 10 previous errors

image

ldm0 commented 4 months ago

Explained here: https://github.com/larksuite/rsmpeg/issues/180