[Ffmpeg-devel] Some errors while linking an application with ffmpeg libraries

Sibnath GHOSH sibnath.ghosh
Thu Apr 19 18:16:48 CEST 2007


I am using the SVN version 8757.

I am trying to link my application with the libraries generated from building ffmpeg namely libavcodec.a, libavformat.a, libavutils.a and all the header files. But I get the following errors while linking my application.

/lib/linux/libavcodec.a(dsputil_align.o)(.text+0x268): In function `put_rnd_pixels8_x':
sh4/dsputil_align.c:276: undefined reference to `rnd_avg2'
/lib/linux/libavcodec.a(dsputil_align.o)(.text+0x408): In function `put_no_rnd_pixels8_x':
sh4/dsputil_align.c:277: undefined reference to `no_rnd_avg2'
/lib/linux/libavcodec.a(dsputil_align.o)(.text+0x5ec): In function `put_rnd_pixels8_y':
sh4/dsputil_align.c:278: undefined reference to `rnd_avg2'
Same with all rnd_xx functions.

I was able to link properly, if I modify the file In /libavcodec/sh4/dsputil_align.c

DEFFUNC(put,   rnd,o,8,OP_C,avg2)


DEFFUNC(put,   rnd,o,8,OP_C,avg32)

Also in libavcodec/parser.c, I had to put #include "ac3tab.h". Otherwise it was not able to find ff_ac3_channels, ff_ac3_freqs, ff_ac3_frame_sizes definitions, inspite including all the header files in the directory.

Are these OK, or do I have to change somewhere else.


More information about the ffmpeg-devel mailing list