2009/4/7 Panagiotis Issaris <[email protected]>

> Hi Paulo,
>
> On Wed, 2009-04-01 at 16:44 +0100, Paulo Assis wrote:
> > Hi,
> > I'm having some problems with libavcodec.
> > First of all, it looks that the include path for avcodec.h has at least
> > three possibilities,
> > depending on the version:
> > ffmpeg/avcodec.h  (ubuntu intrepid)
> > libavcodec/avcodec.h (ubuntu jaunty)
> > ffmpeg/libavcodec/avcodec.h (debian Squeeze)
> >
> > I can check for all of them on my configure script, but it would be much
> > easier if the
> >  include path could be set with 'pkg-config --cflags'.
>
> FFmpeg does provide pkg-config .pc files; so on my system
> "pkg-config --cflags libavcodec" gives:
> -I/usr/local/include
>
> In which there's a libavcodec subdir containing avcodec.h (and other
> headers).
>
> > ...
>
>
> With friendly regards,
> Takis
>
>

> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>


Takis,

Yes this is true the problem is that in older versions the install dir was
something like /usr[/local]/include/ffmpeg and this was what pkg-config
--cflags returned, so setting #include <avcodec.h> was enought now we must
set #include <libavcodec/avcodec.h>, if cflags returned the full include
dir, it would avoid unecessary checks.
I now must use  AC_CHECK_HEADER macro to detect the right include setting.

No worries, it works fine anyway :-) .

Paulo,
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to