使用 MSYS 使用 libaom 构建 FFmpeg
Build FFmpeg with libaom using MSYS
我正在尝试使用 MSYS
和 Microsoft Visual C++
为 Windows
构建 FFmpeg
(版本 4.3.1
)。
配置脚本说: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:
这很有帮助。
我正在尝试使用 MSYS
和 Microsoft Visual C++
为 Windows
构建 FFmpeg
(版本 4.3.1
)。
配置脚本说: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:
这很有帮助。