pkgconfig Libs.private flags cause ffmpeg build failure

Issue #145 resolved
Former user created an issue

On a Centos 6.5 system I attempted to build ffmpeg per the instructions on their website. However, I needed a static x265 library and a shared libass library. The configure command below failed with the error "ERROR: x265 not found using pkg-config". The error can be corrected if the pkgconfig file is modified to move the flags from Libs.private to Libs. I tried this change after examining the pkgconfig file for x264.

PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" \ ./configure \ --prefix="$HOME/ffmpeg_build" \ --extra-cflags="-I$HOME/ffmpeg_build/include" \ --extra-ldflags="-L$HOME/ffmpeg_build/lib" \ --bindir="$HOME/bin" \ --enable-gpl \ --enable-libfreetype \ --enable-libass \ --enable-libx265

Comments (2)

  1. Log in to comment