ffmpeg : pkg-config vs. ffmpeg-config

Nicolas Huillard nhuillard at e-dition.fr
Tue Oct 11 09:29:23 UTC 2005


Hello,

I'm currently packaging softdevice 0.2.0 for the Debian e-tobi
repository, adding ./configure support.

I've tested the following patch to ./configure, that use ffmpeg-config
instead of pkg-config, because they give different outputs, at least on
my unclean box.
Should we use one or the other ? Are all these lib really necessary
(-lraw1394 -ldc1394_control -lgsm...) ?


nhuillard at vdr:vdr-plugin-softdevice-0.2.0$ pkg-config --libs libavcodec
libavformat
-lavformat -lavcodec -ldts -lz -ldl -lvorbis -lm -ltheora -lavutil -logg

With these libs, I get the following message when running vdr/softdevice:
vdr: /usr/lib/vdr/plugins/libvdr-softdevice.so.1.3.33: undefined symbol:
dc1394_create_handle


nhuillard at vdr:vdr-plugin-softdevice-0.2.0$ ffmpeg-config --plugin-libs
avcodec avformat
-lavcodec_pic -lavutil_pic -lavformat_pic -lavutil_pic -lavcodec_pic
-lvorbis -lvorbisenc -ltheora -logg -ldts_pic -la52 -lraw1394
-ldc1394_control -lgsm -lz -lm


Other problem on my box is that I did not install postproc (for
testing), but ffmpeg-config still outputs libs, thus I can't tell
whether postproc is installed or not :

nhuillard at vdr:vdr-plugin-softdevice-0.2.0$ ffmpeg-config --plugin-libs
postproc
-lpostproc_pic -lavutil_pic -lavcodec_pic -lvorbis -lvorbisenc -ltheora
-logg -ldts_pic -la52 -lraw1394 -ldc1394_control -lgsm -lz -lm

nhuillard at vdr:vdr-plugin-softdevice-0.2.0$ pkg-config --libs libpostproc
Package libpostproc was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpostproc.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libpostproc' found




--- ./configure 2005-10-07 15:37:53.000000000 +0200
+++ ./configure.debian  2005-10-11 00:49:11.000000000 +0200
@@ -64,12 +64,12 @@
 #########################################################
 # start ffmpeg test
 #
-ffmpeg_l1="libavcodec libavformat"
+ffmpeg_l1="avcodec avformat"

-pkg-config --libs libpostproc >/dev/null 2>&1 && {
ffmpeg_l1="$ffmpeg_l1 libpostproc";libpostproc="yes"; }
+pkg-config --libs libpostproc >/dev/null 2>&1 && {
ffmpeg_l1="$ffmpeg_l1 postproc";libpostproc="yes"; }

-ffmpeg_libs=`pkg-config --libs $ffmpeg_l1`
-ffmpeg_cflags=`pkg-config --cflags $ffmpeg_l1`
+ffmpeg_libs=`ffmpeg-config --plugin-libs $ffmpeg_l1`
+ffmpeg_cflags=`ffmpeg-config --cflags`

 #########################################################
 # start of DirectFB specific tests

-- 
NH



More information about the pkg-vdr-dvb-devel mailing list