rdp / ffmpeg-windows-build-helpers

Helper script for cross compiling some media tools for windows, like customizable ffmpeg.exe (with or without non-free components, etc), and some other bonuses like mplayer, mp4box, mxf, etc.
GNU General Public License v3.0
1.09k stars 414 forks source link

rav1e >= 0.5.0 not found using pkg-config #678

Closed stickman561 closed 1 year ago

stickman561 commented 1 year ago

I saw in previous patches that librav1e was supported, however when I enable the flag in cross_compile_ffmpeg.sh I get "rav1e >= 0.5.0 not found using pkg-config"

I noticed that the library doesn't seem to be getting built in the current version, though many precompiled versions have it, so I made a helper method in my cross_compile_ffmpeg.sh file (though I'm not really sure what I'm doing) with the following block added (and called alongside the others during the build):

build_librav1e() { do_git_checkout https://github.com/xiph/rav1e.git librav1e_git cd librav1e_git RUSTFLAGS="-C target-cpu="$host_target cargo build --release RUSTFLAGS="-C target-cpu="$host_target cargo cinstall --release cd .. }

If I run pkg-config --modversion rav1e from the Terminal, I get 0.6.1 as my output. However the build still fails with the same error message. Does anyone know what I'm doing wrong or if there's a better supported way to get the library?

rdp commented 1 year ago

check ffbuild/config.log?

On Tue, Feb 21, 2023 at 1:34 PM Alexander Pellegrino < @.***> wrote:

I saw in previous patches that librav1e was supported, however when I enable the flag in cross_compile_ffmpeg.sh I get "rav1e >= 0.5.0 not found using pkg-config"

I noticed that the library doesn't seem to be getting built in the current version, though many precompiled versions have it, so I made a helper method in my cross_compile_ffmpeg.sh file (though I'm not really sure what I'm doing) with the following block added (and called alongside the others during the build):

build_librav1e() { do_git_checkout https://github.com/xiph/rav1e.git librav1e_git cd librav1e_git RUSTFLAGS="-C target-cpu="$host_target cargo build --release RUSTFLAGS="-C target-cpu="$host_target cargo cinstall --release cd .. }

If I run pkg-config --modversion rav1e from the Terminal, I get 0.6.1 as my output. However the build still fails with the same error message. Does anyone know what I'm doing wrong or if there's a better supported way to get the library?

— Reply to this email directly, view it on GitHub https://github.com/rdp/ffmpeg-windows-build-helpers/issues/678, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADBUBFMWKFX637DJNFUKDWYURENANCNFSM6AAAAAAVDPYEII . You are receiving this because you are subscribed to this thread.Message ID: @.***>

stickman561 commented 1 year ago

For the sake of consistency, I removed all customizations from the cross_compile_ffmpeg.sh file and built rav1e manually. rav1e.pc exists on the PKG_CONFIG_PATH with version 0.6.1. I also manually copied it into the ffmpeg/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib/pkgconfig folder. Still the same error though.

As requested, here is my FFBuild Log: https://pastebin.com/W2L2f6C6

Due to the character limit on PasteBin, I had to compress the log file. You can decompress it using http://www.unit-conversion.info/texttools/compress/

stickman561 commented 1 year ago

Closing issue since this was technically a request for help adding a new feature. If anything it would be better suited as a suggestion.