gpt4 book ai didi

ffmpeg - 使用 MSYS 使用 libaom 构建 FFmpeg

转载 作者:行者123 更新时间:2023-12-04 22:57:50 27 4
gpt4 key购买 nike

我正在尝试构建 FFmpeg (版本 4.3.1 )与 --enable-libaom对于 Windows使用 MSYSMicrosoft Visual C++ .
配置脚本说:ERROR: aom >= 1.0.0 not found using pkg-config但我有 libaom (从源代码构建)并指定它的路径:

set INCLUDE=%INCLUDE%;%~dp0..\..\libaom-build\prebuilt\include;
set LIB=%LIB%;%~dp0..\..\libaom-build\prebuilt\windows\x64\lib;
这就是我调用配置脚本的方式:
./configure --prefix=$PWD/../../prebuilt/windows/x64 --toolchain=msvc --extra-cflags="-MD" --arch=x64 --disable-x86asm --disable-iconv --disable-network \
--enable-filter=stereo3d --enable-libmp3lame --enable-libaom --enable-libdav1d \
--extra-cflags="-I$PWD/../../../zlib-build/prebuilt/include -I$PWD/../../../libpng-build/prebuilt/include -I$PWD/../../../lame-build/prebuilt/include -I$PWD/../../../libaom-build/prebuilt/include -I$PWD/../../../libdav1d-build/prebuilt/include" \
--extra-ldflags="-L$PWD/../../../lame-build/prebuilt/windows/x64/lib -L$PWD/../../../libaom-build/prebuilt/windows/x64/lib -L$PWD/../../../libdav1d-build/prebuilt/windows/x64/lib"

最佳答案

感谢 Gyan 向我指出 ffbuild/config.log .
我创建了 aom.pc文件并放入/usr/lib/pkgconfig :

# libaom pkg-config.

Name: aom
Description: AV1 codec library v2.0.2.
Version: 2.0.2
Requires:
Conflicts:
Libs: -laom
Libs.private:
Cflags:
这有帮助。

关于ffmpeg - 使用 MSYS 使用 libaom 构建 FFmpeg,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66287013/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com