[Libav-user] Need Help to execute demo program
sangeeta chowdhary
sangitachowdhary at gmail.com
Mon Jan 14 11:31:31 CET 2013
I have added lz and lm, still issues
[root at node2 ffmpeginstaller.7.4]# gcc -I/usr/src/ffmpegscript/ffmpeg/
test.c -lm -lz -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/libavcodec//libavcodec.a(libmp3lame.o):
In function `mp3lame_encode_frame':
libmp3lame.c:(.text+0x4f): undefined reference to `lame_encode_flush'
libmp3lame.c:(.text+0x1c4): undefined reference to `lame_encode_buffer'
libmp3lame.c:(.text+0x251): undefined reference to `lame_encode_buffer_int'
libmp3lame.c:(.text+0x281): undefined reference to
`lame_encode_buffer_float'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libmp3lame.o):
In function `mp3lame_encode_close':
libmp3lame.c:(.text.unlikely+0x3a): undefined reference to `lame_close'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libmp3lame.o):
In function `mp3lame_encode_init':
libmp3lame.c:(.text.unlikely+0x5e): undefined reference to `lame_init'
libmp3lame.c:(.text.unlikely+0x79): undefined reference to
`lame_set_num_channels'
libmp3lame.c:(.text.unlikely+0x93): undefined reference to `lame_set_mode'
libmp3lame.c:(.text.unlikely+0xa2): undefined reference to
`lame_set_in_samplerate'
libmp3lame.c:(.text.unlikely+0xb1): undefined reference to
`lame_set_out_samplerate'
libmp3lame.c:(.text.unlikely+0xc7): undefined reference to
`lame_set_quality'
libmp3lame.c:(.text.unlikely+0xce): undefined reference to
`lame_set_quality'
libmp3lame.c:(.text.unlikely+0xe2): undefined reference to `lame_set_VBR'
libmp3lame.c:(.text.unlikely+0xf8): undefined reference to
`lame_set_VBR_quality'
libmp3lame.c:(.text.unlikely+0x116): undefined reference to `lame_set_brate'
libmp3lame.c:(.text.unlikely+0x121): undefined reference to
`lame_set_bWriteVbrTag'
libmp3lame.c:(.text.unlikely+0x134): undefined reference to
`lame_set_disable_reservoir'
libmp3lame.c:(.text.unlikely+0x13d): undefined reference to
`lame_init_params'
libmp3lame.c:(.text.unlikely+0x14e): undefined reference to
`lame_get_encoder_delay'
libmp3lame.c:(.text.unlikely+0x16e): undefined reference to
`lame_get_framesize'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libopencore-amr.o):
In function `amr_wb_decode_close':
libopencore-amr.c:(.text+0x10): undefined reference to `D_IF_exit'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libopencore-amr.o):
In function `amr_wb_decode_frame':
libopencore-amr.c:(.text+0xa4): undefined reference to `D_IF_decode'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libopencore-amr.o):
In function `amr_nb_decode_frame':
libopencore-amr.c:(.text+0x1db): undefined reference to
`Decoder_Interface_Decode'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libopencore-amr.o):
In function `amr_nb_encode_frame':
libopencore-amr.c:(.text+0x695): undefined reference to
`Encoder_Interface_Encode'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libopencore-amr.o):
In function `amr_wb_decode_init':
libopencore-amr.c:(.text.unlikely+0x70): undefined reference to `D_IF_init'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libopencore-amr.o):
In function `amr_nb_encode_close':
libopencore-amr.c:(.text.unlikely+0xa8): undefined reference to
`Encoder_Interface_exit'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libopencore-amr.o):
In function `amr_nb_encode_init':
libopencore-amr.c:(.text.unlikely+0x16e): undefined reference to
`Encoder_Interface_init'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libopencore-amr.o):
In function `amr_nb_decode_close':
libopencore-amr.c:(.text.unlikely+0x2c3): undefined reference to
`Decoder_Interface_exit'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libopencore-amr.o):
In function `amr_nb_decode_init':
libopencore-amr.c:(.text.unlikely+0x33e): undefined reference to
`Decoder_Interface_init'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libvorbisenc.o):
In function `oggvorbis_encode_frame':
libvorbisenc.c:(.text+0x48): undefined reference to `vorbis_analysis_buffer'
libvorbisenc.c:(.text+0xa9): undefined reference to `vorbis_analysis_wrote'
libvorbisenc.c:(.text+0xe5): undefined reference to
`vorbis_analysis_blockout'
libvorbisenc.c:(.text+0xfb): undefined reference to `vorbis_analysis'
libvorbisenc.c:(.text+0x10e): undefined reference to
`vorbis_bitrate_addblock'
libvorbisenc.c:(.text+0x174): undefined reference to
`vorbis_bitrate_flushpacket'
libvorbisenc.c:(.text+0x2c9): undefined reference to `vorbis_analysis_wrote'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libvorbisenc.o):
In function `oggvorbis_encode_close':
libvorbisenc.c:(.text.unlikely+0x20): undefined reference to
`vorbis_analysis_wrote'
libvorbisenc.c:(.text.unlikely+0x2c): undefined reference to
`vorbis_block_clear'
libvorbisenc.c:(.text.unlikely+0x38): undefined reference to
`vorbis_dsp_clear'
libvorbisenc.c:(.text.unlikely+0x44): undefined reference to
`vorbis_info_clear'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libvorbisenc.o):
In function `oggvorbis_encode_init':
libvorbisenc.c:(.text.unlikely+0xa1): undefined reference to
`vorbis_info_init'
libvorbisenc.c:(.text.unlikely+0xf9): undefined reference to
`vorbis_encode_setup_vbr'
libvorbisenc.c:(.text.unlikely+0x141): undefined reference to
`vorbis_encode_setup_managed'
libvorbisenc.c:(.text.unlikely+0x164): undefined reference to
`vorbis_encode_ctl'
libvorbisenc.c:(.text.unlikely+0x1a0): undefined reference to
`vorbis_encode_ctl'
libvorbisenc.c:(.text.unlikely+0x1ca): undefined reference to
`vorbis_encode_ctl'
libvorbisenc.c:(.text.unlikely+0x2d0): undefined reference to
`vorbis_encode_setup_init'
libvorbisenc.c:(.text.unlikely+0x31e): undefined reference to
`vorbis_analysis_init'
libvorbisenc.c:(.text.unlikely+0x343): undefined reference to
`vorbis_block_init'
libvorbisenc.c:(.text.unlikely+0x38e): undefined reference to
`vorbis_comment_init'
libvorbisenc.c:(.text.unlikely+0x3a6): undefined reference to
`vorbis_comment_add_tag'
libvorbisenc.c:(.text.unlikely+0x3be): undefined reference to
`vorbis_analysis_headerout'
libvorbisenc.c:(.text.unlikely+0x501): undefined reference to
`vorbis_comment_clear'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libx264.o):
In function `X264_frame':
libx264.c:(.text+0x30): undefined reference to `x264_picture_init'
libx264.c:(.text+0x36): undefined reference to `x264_bit_depth'
libx264.c:(.text+0xef): undefined reference to `x264_encoder_reconfig'
libx264.c:(.text+0x11a): undefined reference to `x264_encoder_reconfig'
libx264.c:(.text+0x16a): undefined reference to `x264_encoder_encode'
libx264.c:(.text+0x2c0): undefined reference to
`x264_encoder_delayed_frames'
libx264.c:(.text+0x3b9): undefined reference to `x264_encoder_encode'
libx264.c:(.text+0x3ed): undefined reference to
`x264_encoder_delayed_frames'
libx264.c:(.text+0x438): undefined reference to `x264_encoder_encode'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libx264.o):
In function `X264_init_static':
libx264.c:(.text.unlikely+0x2): undefined reference to `x264_bit_depth'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libx264.o):
In function `X264_close':
libx264.c:(.text.unlikely+0x57): undefined reference to `x264_encoder_close'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libx264.o):
In function `X264_init':
libx264.c:(.text.unlikely+0x84): undefined reference to `x264_param_default'
libx264.c:(.text.unlikely+0x104): undefined reference to
`x264_param_default_preset'
libx264.c:(.text.unlikely+0x21e): undefined reference to `x264_param_parse'
libx264.c:(.text.unlikely+0x358): undefined reference to `x264_param_parse'
libx264.c:(.text.unlikely+0x3f0): undefined reference to `x264_param_parse'
libx264.c:(.text.unlikely+0x420): undefined reference to `x264_param_parse'
libx264.c:(.text.unlikely+0x658): undefined reference to `x264_param_parse'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libx264.o):libx264.c:(.text.unlikely+0x685):
more undefined references to `x264_param_parse' follow
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libx264.o):
In function `X264_init':
libx264.c:(.text.unlikely+0x835): undefined reference to
`x264_param_apply_fastfirstpass'
libx264.c:(.text.unlikely+0x90c): undefined reference to
`x264_param_apply_profile'
libx264.c:(.text.unlikely+0xad1): undefined reference to
`x264_encoder_open_129'
libx264.c:(.text.unlikely+0xb1e): undefined reference to
`x264_encoder_headers'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libxvid.o):
In function `xvid_encode_frame':
libxvid.c:(.text+0x227): undefined reference to `xvid_encore'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libxvid.o):
In function `xvid_encode_close':
libxvid.c:(.text.unlikely+0x1a): undefined reference to `xvid_encore'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libxvid.o):
In function `xvid_encode_init':
libxvid.c:(.text.unlikely+0x1dc): undefined reference to `xvid_global'
libxvid.c:(.text.unlikely+0x3ed): undefined reference to
`xvid_plugin_2pass2'
libxvid.c:(.text.unlikely+0x417): undefined reference to
`xvid_plugin_single'
libxvid.c:(.text.unlikely+0x460): undefined reference to
`xvid_plugin_lumimasking'
libxvid.c:(.text.unlikely+0x778): undefined reference to `xvid_encore'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavformat//libavformat.a(matroskadec.o):
In function `matroska_decode_buffer':
matroskadec.c:(.text+0x682): undefined reference to `BZ2_bzDecompressInit'
matroskadec.c:(.text+0x6d8): undefined reference to `BZ2_bzDecompress'
matroskadec.c:(.text+0x714): undefined reference to `BZ2_bzDecompressEnd'
matroskadec.c:(.text+0x7bb): undefined reference to `BZ2_bzDecompressEnd'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(pthread.o):
In function `frame_thread_free':
pthread.c:(.text+0x1807): undefined reference to `pthread_join'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(pthread.o):
In function `ff_thread_free':
pthread.c:(.text+0x1912): undefined reference to `pthread_join'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(pthread.o):
In function `ff_thread_init':
pthread.c:(.text+0x1ce5): undefined reference to `pthread_create'
pthread.c:(.text+0x1fbf): undefined reference to `pthread_create'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(frame_thread_encoder.o):
In function `ff_frame_thread_encoder_free':
frame_thread_encoder.c:(.text+0x339): undefined reference to `pthread_join'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(frame_thread_encoder.o):
In function `ff_frame_thread_encoder_init':
frame_thread_encoder.c:(.text+0x59c): undefined reference to
`pthread_create'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libxvid_rc.o):
In function `ff_xvid_rate_control_uninit':
libxvid_rc.c:(.text+0x16): undefined reference to `xvid_plugin_2pass2'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libxvid_rc.o):
In function `ff_xvid_rate_estimate_qscale':
libxvid_rc.c:(.text+0x115): undefined reference to `xvid_plugin_2pass2'
libxvid_rc.c:(.text+0x20f): undefined reference to `xvid_plugin_2pass2'
/usr/src/ffmpegscript/mplayer/ffmpeg/libavcodec//libavcodec.a(libxvid_rc.o):
In function `ff_xvid_rate_control_init':
libxvid_rc.c:(.text+0x471): undefined reference to `xvid_plugin_2pass2'
collect2: ld returned 1 exit status
You have new mail in /var/spool/mail/root
[root at node2 ffmpeginstaller.7.4]#
On Mon, Jan 14, 2013 at 3:55 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> sangeeta chowdhary <sangitachowdhary at ...> writes:
>
> > swfdec.c:(.text+0xd5d): undefined reference to `inflateInit_'
>
> Looks like -lz is missing.
>
> > atrac3.c:(.text.unlikely+0xb9): undefined reference to `sin'
>
> Looks like -lm is missing.
>
> Carl Eugen
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130114/e73ad7ca/attachment.html>
More information about the Libav-user
mailing list