[Ffmpeg-devel] Using ffmpeg libs in an OSS project is a nightmare

François Revol revol
Wed Aug 10 22:20:17 CEST 2005


> Fran?ois Revol wrote:
> > > Dear Developers of ffmpeg
> > >
> > > ffmpeg is a very nice project from a technical point of view
> > >
> > > But from the view of a developer and project maintainer of a 
> > > project
> > > that
> > > uses ffmpeg - the project is a nightmare.
> > 
> > The thing that bothers me currently is that libavutil which is one 
> > more
> > lib to care about,
> 
>   Don't know what you mean exactly but it is nothing new,
> only reorganized.

No, that means 2 files to install when using libavcodec, and to check 
the versions of.

> > and isn't even linked to correctly in libavformat
> > (undefined syms).
> 
>   Could you be a bit more concrete here. I made it
> before my job started and only tested it on one
> machine. So it likely that i overlooked problems
> or just didn't see them on my target.

make[1]: Entering directory `/boot/home/devel/ffmpeg/cvs/ffmpeg/
libavformat'
gcc -nostart -Wl,--warn-common -o libavformat.so utils.o cutils.o 
os_support.o allformats.o mpeg.o mpegts.o mpegtsenc.o ffm.o crc.o img.o 
img2.o raw.o rm.o avienc.o avidec.o wav.o mmf.o swf.o au.o gif.o mov.o 
mpjpeg.o dv.o yuv4mpeg.o 4xm.o flvenc.o flvdec.o movenc.o psxstr.o 
idroq.o ipmovie.o nut.o wc3movie.o mp3.o westwood.o segafilm.o idcin.o 
flic.o sierravmd.o matroska.o sol.o electronicarts.o nsvdec.o asf.o asf
-enc.o ogg2.o oggparsevorbis.o oggparsetheora.o oggparseflac.o  pnm.o 
yuv.o png.o jpeg.o gifdec.o sgi.o avio.o aviobuf.o file.o  framehook.o  
udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o  -lavcodec -L../libavcodec -
lmp3lame -lbind -lsocket -lz
utils.o(.text+0xaaa): In function `compute_pkt_fields':
: undefined reference to `av_rescale'

IOW: when using shared libs one *must* link to the libs it uses symbols 
from.
Some platforms are picky about that, unlike linux.

>   I also send it in advance so it can be tested by
> other people, but it seems no one did...

Didn't have the time.

> 
> > Is it ok now to cvs ci again ?
> 
>   What do you want to check in?

The fix.


Fran?ois.






More information about the ffmpeg-devel mailing list