I've written to the maintainer of Debian Multimedia about libavcodec and pkg-config. Here is an abstract of his answer (the whole answer at the end in french).
Debian Multimedia ffmpeg is from june in the svn repo of ffmpeg ; and the debian lenny from february. The headers have been moved to /usr/include/ffmpeg/avcodec/ (and friends avformat avutils too) since more than 6 months. So : pkg-config always returns /usr/include/ffmpeg and the include have to be changed in the source of MediaKit. Cheers, Bertrand Dekoninck > Bertrand Gmail <[EMAIL PROTECTED]> writes: > >>>> >> > Same problem here on Debian Lenny and ffmpeg from debian-multimedia. >>>> >> > >>>> >> > But "pkg-config libavcodec --cflags" gives : >>>> >> > >>>> >> > -I/usr/include/ffmpeg -I/usr/include/dirac >> > >> > Are the libav* headers in subdirectories of ffmpeg here? On FreeBSD 7 >> > they are all in /usr/include/ffmpeg and pkg-config returns: >> > >> > -I/usr/local/include -I/usr/local/include/ffmpeg > > Quelle version de ffmpeg ? Comme je le disais dans mon précédent > e-mail, les en-têtes ont changés de place depuis au moins 6 mois, si > le ffmpeg de FreeBSD est trop vieux pkg-config ne retournera pas la > même valeur. > > [...] > >> > pkg-config ne devrait-il pas renvoyer -I/usr/include/ffmpeg/libavcodec ? > > Non, parce que les en-têtes sont dans différents répertoires : > > ,---- > | $ ls -l /usr/include/ffmpeg/ > | total 12 > | drwxr-xr-x 2 root root 4096 16 nov 2008 libavcodec > | drwxr-xr-x 2 root root 4096 16 nov 2008 libavutil > | drwxr-xr-x 2 root root 4096 16 nov 2008 libpostproc > `---- > > pkg-config retourne toujours -I/usr/include/ffmpeg et il faut donc > changer les includes dans les sources. > > ,---- > | $ pkg-config --cflags libavcodec > | -I/usr/include/ffmpeg -I/usr/include/dirac > | marillat ~/src/cvs/ffmpeg > | $ pkg-config --cflags libavutil > | -I/usr/include/ffmpeg > | marillat ~/src/cvs/ffmpeg > | $ pkg-config --cflags libpostproc > | -I/usr/include/ffmpeg > `---- > > Christian > _______________________________________________ Etoile-discuss mailing list [email protected] https://mail.gna.org/listinfo/etoile-discuss
