[Libav-user] Need Help to execute demo program

sangeeta chowdhary sangitachowdhary at gmail.com
Mon Jan 21 06:32:02 CET 2013


Hi Team,

Which library I am missing ?

[root at node2 ffmpeginstaller.7.4]# gcc -I/usr/src/ffmpegscript/ffmpeg/
test.c -L/usr/src/ffmpegscript/mplayer/ffmpeg/libavformat/ -lavformat
-L/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec/ -lavcodec
-L/usr/src/ffmpegscript/mplayer/ffmpeg/libswscale/ -lswscale
-L/usr/src/ffmpegscript/mplayer/ffmpeg/libavutil/ -lavutil
/usr/src/ffmpegscript/mplayer/ffmpeg/libavformat//libavformat.a(swfdec.o):
In function `swf_read_packet':
swfdec.c:(.text+0x89f): undefined reference to `uncompress'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavformat//libavformat.a(swfdec.o):
In function `swf_read_header':
swfdec.c:(.text+0xd5d): undefined reference to `inflateInit_'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavformat//libavformat.a(swfdec.o):
In function `zlib_refill':
swfdec.c:(.text+0xeab): undefined reference to `inflate'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavformat//libavformat.a(swfdec.o):
In function `swf_read_close':
swfdec.c:(.text.unlikely+0xa): undefined reference to `inflateEnd'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(atrac3.o): In
function `atrac3_decode_init':
atrac3.c:(.text.unlikely+0xb9): undefined reference to `sin'
atrac3.c:(.text.unlikely+0xf6): undefined reference to `sin'
atrac3.c:(.text.unlikely+0x220): undefined reference to `exp2f'
atrac3.c:(.text.unlikely+0x24d): undefined reference to `exp2f'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(binkaudio.o):
In function `decode_init':
binkaudio.c:(.text.unlikely+0x1fe): undefined reference to `expf'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(cngdec.o): In
function `cng_decode_frame':
cngdec.c:(.text+0x3c3): undefined reference to `pow'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(cngenc.o): In
function `cng_encode_frame':
cngenc.c:(.text+0xa3): undefined reference to `log10'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(cook.o): In
function `cook_decode_init':
cook.c:(.text.unlikely+0x64d): undefined reference to `pow'
cook.c:(.text.unlikely+0x679): undefined reference to `pow'
cook.c:(.text.unlikely+0x6d2): undefined reference to `pow'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(cscd.o): In
function `decode_frame':
cscd.c:(.text+0x226): undefined reference to `uncompress'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(dct.o): In
function `ff_dct_init':
dct.c:(.text.unlikely+0x10c): undefined reference to `sin'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(dxa.o): In
function `decode_frame':
dxa.c:(.text+0x6dc): undefined reference to `uncompress'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(exr.o): In
function `decode_frame':
exr.c:(.text+0x14ae): undefined reference to `uncompress'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(fft_float.o):
In function `ff_init_ff_cos_tabs':
fft_float.c:(.text.unlikely+0x7a): undefined reference to `cos'




On Mon, Jan 14, 2013 at 1:36 PM, sangeeta chowdhary <
sangitachowdhary at gmail.com> wrote:

> [root at node2 ffmpeginstaller.7.4]# gcc -I/usr/src/ffmpegscript/ffmpeg/
> test.c -L/usr/src/ffmpegscript/ffmpeg/ -l avformat
> /usr/bin/ld: cannot find -lavformat
> collect2: ld returned 1 exit status
>
>
> On Mon, Jan 14, 2013 at 1:34 PM, 吴立明 Joy Woo <miscab at gmail.com> wrote:
>
>> gcc -I/usr/src/ffmpegscript/ffmpeg/ test.c
>> -L/usr/src/ffmpegscript/ffmpeg/ -l avformat
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130121/182aea64/attachment.html>


More information about the Libav-user mailing list