[FFmpeg-devel] includes moved: need to change pkgconfig files

Aurelien Jacobs aurel
Thu Apr 24 23:28:04 CEST 2008


sean darcy wrote:

> M?ns Rullg?rd wrote:
> > sean darcy <seandarcy2 at gmail.com> writes:
> > 
> >> The includes seem to have moved from /usr/include/ffmpeg to 
> >> /usr/include/ffmpeg/lib{avcodec, swscale, etc}. I assume this was
> >> for a good reason.
> >>
> >> In any event, the pkgconfig .pc files need to be updated to
> >> reflect the change.
> > 
> > They are correct, no change needed.
> > 
> I ran into a problem building kino.
> 
> The includes are now each in their own directory. For instance,
> 
> find . /usr/include -name avcodec.h
> /usr/include/ffmpeg/libavcodec/avcodec.h
> 
> yet configure creates libavcodec.pc (svn 12936 ):
> 
> cat libavcodec.pc
> prefix=/usr
> exec_prefix=${prefix}
> libdir=/usr/lib
> includedir=/usr/include/ffmpeg
> 
> Name: libavcodec
> Description: FFmpeg codec library
> Version: 51.56.0
> Requires:  theora vorbisenc libavutil = 49.6.0
> Conflicts:
> Libs: -L${libdir} -lavcodec   -lz -pthread -lm -la52 -lfaac -lfaad
> -lgsm -lmp3lame -lm -ltheora -logg -lvorbisenc -lvorbis -logg -lx264
> -lm -lxvidcore    -ldl -ldl
> Cflags: -I${includedir}

In case M?ns answer wasn't clear enough, all of this is on purpose.
If you want to use avcodec.h, you must do:
  #include <libavcodec/avcodec.h>

> I would have thought that the .pc files would point directly to the 
> includes.

What makes you think so ?

Aurel




More information about the ffmpeg-devel mailing list