IOhannes m zmoelnig say:
actually gem tries to find out which ldflags to use via pkg-config, <lib>-config and by simple trying to link against <lib>. this solution should make it very simple to add more libraries and don't have to worry about how to get the appropriate libraries (in Gem's configure.ac) however, it has several weaknesses, one of them is, that i don't know at all, how to deal with pic-libraries. (pkg-config doesn't provide a way at all how to do it, and ffmpeg-config needs a special flag (which does not conform to other <lib>-config scripts)
on which platform are you? (which distribution, which arch,..)
ubuntu linux, intel pII
output of 'ffmpeg-config --libs --cflags avcodec avformat': -I/usr/include/ffmpeg -lavcodec -lavutil -lavformat -lavcodec -lavutil -lvorbis -lvorbisenc -ltheora -logg -ldts -la52 -lraw1394 -ldc1394_control -lgsm -lz -lm
now that I think of it, I'm not sure if you really need the *_pic libs. that may work.
one problem however is that on debian based platforms, I think you can install libavformat and libavcodec without installing ffmpeg.
-august.
-------------------
http://aug.ment.org