Installing ffmpeg from source, missing libs
I'm trying to install ffmpeg from source using this guide https://trac.ffmpeg.org/wiki/CompilationGuide/Centos. Getting error in configure ERROR: freetype2 not found manually in command line: $pkg-config --exists freetype2 || echo 'no lib' gives me nothing, so it exists. And also: $pkg-config --cflags freetype2 -I/usr/include/freetype2 $rpm -q freetype freetype-2.4.2-7.fc14.x86_64 freetype-2.4.2-7.fc14.i686 It seems like the configure script doesn't pass this pkg-config --exists command. Could it be wrong freetype version? How do I check the reason of such error? I've also tried ffmpeg version 3.1.11, where there is a special case for libfreetype check in ffmpeg configure. I'm on some previous Fedora version. The configure command I use: ./configure --prefix="$HOME/ffmpeg_build" --pkg-config="--static" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --extra-libs=-lpthread --extra-libs=-lm --bindir="$HOME/bin" --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libx264 --enable-nonfree --enable-gpl'
On Tue, Oct 16, 2018 at 12:03:51 +0200, paweg wrote:
I'm trying to install ffmpeg from source using this guide https://trac.ffmpeg.org/wiki/CompilationGuide/Centos. Getting error in configure ERROR: freetype2 not found manually in command line: $pkg-config --exists freetype2 || echo 'no lib' gives me nothing, so it exists. And also: $pkg-config --cflags freetype2 -I/usr/include/freetype2 $rpm -q freetype freetype-2.4.2-7.fc14.x86_64 freetype-2.4.2-7.fc14.i686 It seems like the configure script doesn't pass this pkg-config --exists command.
It should. It calls: $ test_cmd $pkg_config --exists --print-errors $pkg_version || return in test_pkg_config(), which is called from check_pkg_config(), which is called from require_pkg_config(), which is called from: $ require_pkg_config libfreetype freetype2 "ft2build.h FT_FREETYPE_H" FT_Init_FreeType But it also checks the availability of the function FT_Init_FreeType() in the given headers. Perhaps part of that doesn't work in your install.
Could it be wrong freetype version? How do I check the reason of such error? I've also tried ffmpeg version 3.1.11, where there is a special case for libfreetype check in ffmpeg configure. I'm on some previous Fedora version.
Can you show us the first ~2 and the last ~50 lines of ffbuild/config.log? Which version of ffmpeg are you trying to build? Latest git master? Moritz
Am 16.10.18 um 13:50 schrieb Moritz Barsnick:
On Tue, Oct 16, 2018 at 12:03:51 +0200, paweg wrote:
I'm trying to install ffmpeg from source using this guide https://trac.ffmpeg.org/wiki/CompilationGuide/Centos. Getting error in configure ERROR: freetype2 not found manually in command line: $pkg-config --exists freetype2 || echo 'no lib' gives me nothing, so it exists. And also: $pkg-config --cflags freetype2 -I/usr/include/freetype2 $rpm -q freetype freetype-2.4.2-7.fc14.x86_64 freetype-2.4.2-7.fc14.i686 It seems like the configure script doesn't pass this pkg-config --exists command.
It should. It calls:
$ test_cmd $pkg_config --exists --print-errors $pkg_version || return
fc14 = Fedora 14 current is Fedora 28 with freetype-2.8-10.fc28.x86_64 and F14 is from 2010 - frankly didn't the OP find a more ancient environment when using a distribution with new releases every 6 months?
On Tue, Oct 16, 2018 at 14:51:26 +0200, Reindl Harald wrote:
fc14 = Fedora 14
current is Fedora 28 with freetype-2.8-10.fc28.x86_64 and F14 is from 2010 - frankly didn't the OP find a more ancient environment when using a distribution with new releases every 6 months?
Very true. OTOH, ffmpeg successfully supports quite a host of old library versions (often incl. fallbacks for pre-pkgconfig and such). I can successfully build ffmpeg against freetype-2.3.7. Moritz
participants (3)
-
Moritz Barsnick -
paweg -
Reindl Harald