[FFmpeg-devel] libass cannot be detected in centos 7

Moritz Barsnick barsnick at gmx.net
Sun Jan 27 23:36:11 EET 2019

On Sun, Jan 27, 2019 at 23:48:51 +0300, Dennis Mungai wrote:
> I'm building ffmpeg on centos 7 and one issue keeps cropping up:

This mailing list (ffmpeg-devel) covers topics around the development
of ffmpeg. Your question belongs on ffmpeg-user.

> libass. Yes, its' installed. But ffmpeg's ./configure stage won't detect it.
> BEGIN /tmp/ffconf.Du3r0RrN/test.c
>     1   #include <ass/ass.h>
>     2   #include <stdint.h>
>     3   long check_ass_library_init(void) { return (long) ass_library_init; }
>     4   int main(void) { int ret = 0;
>     5    ret |= ((intptr_t)check_ass_library_init) & 0xFFFF;
>     6   return ret; }
> END /tmp/ffconf.Du3r0RrN/test.c
> gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -I/opt/ffmpeg/include -I/usr/local/cuda/include/ -I/usr/include/      
> +-std=c11 -fomit-frame-pointer -I/opt/ffmpeg/include -pthread -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/glib-2.0                      
> +-I/usr/lib64/glib-2.0/include -I/usr/include/uuid -I/usr/include/libpng15 -pthread -c -o /tmp/ffconf.Du3r0RrN/test.o /tmp/ffconf.Du3r0RrN/test.c                                  
> gcc -L/opt/ffmpeg/lib -L/usr/local/cuda/lib64/ -L/usr/lib64/ -Wl,--as-needed -Wl,-z,noexecstack -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/freetype2
> +-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/uuid -I/usr/include/libpng15 -pthread -o /tmp/ffconf.Du3r0RrN/test /tmp/ffconf.Du3r0RrN/test.o -lass         
> +-lharfbuzz -lfontconfig -lfribidi -lglib-2.0 -lgraphite2 -lpcre -luuid -lexpat -lfreetype -lbz2 -lpng15 -lz -lm -lpthread -lm                                                     
> /usr/bin/ld: cannot find -lbz2
> collect2: error: ld returned 1 exit status
> ERROR: libass not found using pkg-config

The essential error is "cannot find -lbz2". One of your dependencies
seems to require libbz2 - you need to install libbz2-devel.

(This isn't a direct ffmpeg dependency. ffmpeg previously already
checks for libbz2 - for matroska's sake - and figures out it's not


More information about the ffmpeg-devel mailing list