pkgconfig Libs.private flags cause ffmpeg build failure
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)
-
-
- changed status to resolved
closing, based on Ricardo's comment in issue 136 which was marked as resolved
- Log in to comment
It was discussed before: https://bitbucket.org/multicoreware/x265/issue/136/fix-detection-of-static-x265-lib-via-pkg