[FFmpeg-trac] #4593(avformat:new): Building ffmpeg with a libvpx installed with a custom prefix path fails

FFmpeg trac at avcodec.org
Fri Jun 5 22:54:35 CEST 2015


#4593: Building ffmpeg with a libvpx installed with a custom prefix path fails
-------------------------------------+-------------------------------------
             Reporter:  exophoric    |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  avformat     |                  Version:  git-
             Keywords:  pkg-config   |  master
  libvpx                             |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:

 I'm trying to build ffmpeg with libvpx-1.4.0 under linux (tried on CentOS
 6 and Ubuntu 12.04). Although, being without root access, I compiled and
 installed libvpx in a non-system location.

 Reading ffmpeg's configure script, I saw that it doesn't use pkg-config to
 find the proper path of libvpx headers and libraries.

 How to reproduce:

 1) Configure, build and install libvpx using a custom --prefix location
 2) Add the custom location of libvpx/lib/pkgconfig to PKG_CONFIG_PATH
 environment variable
 2.5) Ensure that "pkg-config --libs vpx" reports the correct path
 3) Launch ffmpeg's configure script using --enable-libvpx switch

 How to workaround the problem:

 I successfully built ffmpeg with libvpx-1.4.0 support by disabling the
 checks in the configure script (commenting out lines 5155 to 5160, as of
 6fd15d6) and by adding the path to headers in CFLAGS of config.mak and
 libs in LDFLAGS. But that is probably a stupid idea.

 How to possibly fix the problem:

 I think that pkg-config could be used to find libvpx, just as it is used
 to find libx264. libvpx supports pkgconfig since v0.9.5 which was released
 in late 2010.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4593>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list