[x264-devel] MP3 Lame compilation error

Klemen Tusar techouse at gmail.com
Sat Feb 13 02:52:14 CET 2010


compile ffmpeg without lame support

On Fri, Feb 12, 2010 at 7:41 PM, gershon bialer <gershon.bialer at gmail.com>wrote:

> Hi,
>
> When I try to compile x264, I get a compiliation error. It appears it can't
> reference lame properly, and I can't figure out why. What could be the
> problem? My compilation error follows. Thanks
>
>
> gcc -o x264 x264.o input/yuv.o input/y4m.o output/raw.o output/matroska.o
> output/matroska_ebml.o output/flv.o output/flv_bytestream.o input/thread.o
> input/lavf.o libx264.a -lm -lpthread -s -L. -lavformat -lswscale -lavcodec
> -lavutil -lm -lz -lpthread
> /usr/local/lib/libavcodec.a(libmp3lame.o): In function
> `MP3lame_encode_close':
> /root/ffmpeg/libavcodec/libmp3lame.c:212: undefined reference to
> `lame_close'
> /usr/local/lib/libavcodec.a(libmp3lame.o): In function
> `MP3lame_encode_frame':
> /root/ffmpeg/libavcodec/libmp3lame.c:152: undefined reference to
> `lame_encode_buffer_interleaved'
> /root/ffmpeg/libavcodec/libmp3lame.c:160: undefined reference to
> `lame_encode_buffer'
> /root/ffmpeg/libavcodec/libmp3lame.c:170: undefined reference to
> `lame_encode_flush'
> /usr/local/lib/libavcodec.a(libmp3lame.o): In function
> `MP3lame_encode_init':
> /root/ffmpeg/libavcodec/libmp3lame.c:48: undefined reference to `lame_init'
> /root/ffmpeg/libavcodec/libmp3lame.c:50: undefined reference to
> `lame_set_in_samplerate'
> /root/ffmpeg/libavcodec/libmp3lame.c:51: undefined reference to
> `lame_set_out_samplerate'
> /root/ffmpeg/libavcodec/libmp3lame.c:52: undefined reference to
> `lame_set_num_channels'
> /root/ffmpeg/libavcodec/libmp3lame.c:56: undefined reference to
> `lame_set_quality'
> /root/ffmpeg/libavcodec/libmp3lame.c:59: undefined reference to
> `lame_set_mode'
> /root/ffmpeg/libavcodec/libmp3lame.c:60: undefined reference to
> `lame_set_brate'
> /root/ffmpeg/libavcodec/libmp3lame.c:66: undefined reference to
> `lame_set_bWriteVbrTag'
> /root/ffmpeg/libavcodec/libmp3lame.c:67: undefined reference to
> `lame_set_disable_reservoir'
> /root/ffmpeg/libavcodec/libmp3lame.c:68: undefined reference to
> `lame_init_params'
> /root/ffmpeg/libavcodec/libmp3lame.c:71: undefined reference to
> `lame_get_framesize'
> /root/ffmpeg/libavcodec/libmp3lame.c:62: undefined reference to
> `lame_set_brate'
> /root/ffmpeg/libavcodec/libmp3lame.c:63: undefined reference to
> `lame_set_VBR'
> /root/ffmpeg/libavcodec/libmp3lame.c:64: undefined reference to
> `lame_set_VBR_q'
> /root/ffmpeg/libavcodec/libmp3lame.c:54: undefined reference to
> `lame_set_quality'
> /root/ffmpeg/libavcodec/libmp3lame.c:79: undefined reference to
> `lame_close'
> collect2: ld returned 1 exit status
> make: *** [x264] Error 1
> root at server [~/x264-snapshot-20100130-2245]# gcc -o x264 x264.o
> input/yuv.o input/y4m.o output/raw.o output/matroska.o
> output/matroska_ebml.o output/flv.o output/flv_bytestream.o input/thread.o
> input/lavf.o libx264.a -lm -lpthread -s -L. -lavformat -lswscale -lavcodec
> -lavutil -lm -lz -lpthread
> /root/ffmpeg/libavcodec/libmp3lame.c:212: undefined reference to
> `lame_close'
> /usr/local/lib/libavcodec.a(libmp3lame.o): In function
> `MP3lame_encode_frame':
> /root/ffmpeg/libavcodec/libmp3lame.c:152: undefined reference to
> `lame_encode_buffer_interleaved'
> /usr/local/lib/libavcodec.a(libmp3lame.o): In function
> `MP3lame_encode_close':
> /root/ffmpeg/libavcodec/libmp3lame.c:212: undefined reference to
> `lame_close'
> /usr/local/lib/libavcodec.a(libmp3lame.o): In function
> `MP3lame_encode_frame':
> /root/ffmpeg/libavcodec/libmp3lame.c:152: undefined reference to
> `lame_encode_buffer_interleaved'
> /root/ffmpeg/libavcodec/libmp3lame.c:160: undefined reference to
> `lame_encode_buffer'
> /root/ffmpeg/libavcodec/libmp3lame.c:170: undefined reference to
> `lame_encode_flush'
> /usr/local/lib/libavcodec.a(libmp3lame.o): In function
> `MP3lame_encode_init':
> /root/ffmpeg/libavcodec/libmp3lame.c:48: undefined reference to `lame_init'
> /root/ffmpeg/libavcodec/libmp3lame.c:50: undefined reference to
> `lame_set_in_samplerate'
> /root/ffmpeg/libavcodec/libmp3lame.c:51: undefined reference to
> `lame_set_out_samplerate'
> /root/ffmpeg/libavcodec/libmp3lame.c:52: undefined reference to
> `lame_set_num_channels'
> /root/ffmpeg/libavcodec/libmp3lame.c:56: undefined reference to
> `lame_set_quality'
> /root/ffmpeg/libavcodec/libmp3lame.c:59: undefined reference to
> `lame_set_mode'
> /root/ffmpeg/libavcodec/libmp3lame.c:60: undefined reference to
> `lame_set_brate'
> /root/ffmpeg/libavcodec/libmp3lame.c:66: undefined reference to
> `lame_set_bWriteVbrTag'
> /root/ffmpeg/libavcodec/libmp3lame.c:67: undefined reference to
> `lame_set_disable_reservoir'
> /root/ffmpeg/libavcodec/libmp3lame.c:68: undefined reference to
> `lame_init_params'
> /root/ffmpeg/libavcodec/libmp3lame.c:71: undefined reference to
> `lame_get_framesize'
> /root/ffmpeg/libavcodec/libmp3lame.c:62: undefined reference to
> `lame_set_brate'
> /root/ffmpeg/libavcodec/libmp3lame.c:63: undefined reference to
> `lame_set_VBR'
> /root/ffmpeg/libavcodec/libmp3lame.c:64: undefined reference to
> `lame_set_VBR_q'
> /root/ffmpeg/libavcodec/libmp3lame.c:54: undefined reference to
> `lame_set_quality'
> /root/ffmpeg/libavcodec/libmp3lame.c:79: undefined reference to
> `lame_close'
> collect2: ld returned 1 exit status
> root at server [~/x264-snapshot-20100130-2245]#
> /usr/local/lib/libavcodec.a(libmp3lame.o): In function
> `MP3lame_encode_close':
> -bash: syntax error near unexpected token `libmp3lame.o'
> root at server [~/x264-snapshot-20100130-2245]#
> /root/ffmpeg/libavcodec/libmp3lame.c:212: undefined reference to
> `lame_close'
> > /usr/local/lib/libavcodec.a(libmp3lame.o): In function
> `MP3lame_encode_frame':
> > /root/ffmpeg/libavcodec/libmp3lame.c:152: undefined reference to
> `lame_encode_buffer_interleaved'
> -bash: command substitution: line 1: unexpected EOF while looking for
> matching `''
> -bash: command substitution: line 3: syntax error: unexpected end of file
> -bash: /root/ffmpeg/libavcodec/libmp3lame.c:212:: No such file or directory
> root at server [~/x264-snapshot-20100130-2245]#
> /root/ffmpeg/libavcodec/libmp3lame.c:160: undefined reference to
> `lame_encode_buffer'
> > /root/ffmpeg/libavcodec/libmp3lame.c:170: undefined reference to
> `lame_encode_flush'
> > /usr/local/lib/libavcodec.a(libmp3lame.o): In function
> `MP3lame_encode_init':
> -bash: command substitution: line 1: unexpected EOF while looking for
> matching `''
> -bash: command substitution: line 3: syntax error: unexpected end of file
> -bash: /root/ffmpeg/libavcodec/libmp3lame.c:160:: No such file or directory
> root at server [~/x264-snapshot-20100130-2245]#
> /root/ffmpeg/libavcodec/libmp3lame.c:48: undefined reference to `lame_init'
> > /root/ffmpeg/libavcodec/libmp3lame.c:50: undefined reference to
> `lame_set_in_samplerate'
> > /root/ffmpeg/libavcodec/libmp3lame.c:51: undefined reference to
> `lame_set_out_samplerate'
> -bash: command substitution: line 1: unexpected EOF while looking for
> matching `''
> -bash: command substitution: line 3: syntax error: unexpected end of file
> -bash: /root/ffmpeg/libavcodec/libmp3lame.c:48:: No such file or directory
> root at server [~/x264-snapshot-20100130-2245]#
> /root/ffmpeg/libavcodec/libmp3lame.c:52: undefined reference to
> `lame_set_num_channels'
> > /root/ffmpeg/libavcodec/libmp3lame.c:56: undefined reference to
> `lame_set_quality'
> > /root/ffmpeg/libavcodec/libmp3lame.c:59: undefined reference to
> `lame_set_mode'
> -bash: command substitution: line 1: unexpected EOF while looking for
> matching `''
> -bash: command substitution: line 3: syntax error: unexpected end of file
> -bash: /root/ffmpeg/libavcodec/libmp3lame.c:52:: No such file or directory
> root at server [~/x264-snapshot-20100130-2245]#
> /root/ffmpeg/libavcodec/libmp3lame.c:60: undefined reference to
> `lame_set_brate'
> > /root/ffmpeg/libavcodec/libmp3lame.c:66: undefined reference to
> `lame_set_bWriteVbrTag'
> > /root/ffmpeg/libavcodec/libmp3lame.c:67: undefined reference to
> `lame_set_disable_reservoir'
> -bash: command substitution: line 1: unexpected EOF while looking for
> matching `''
> -bash: command substitution: line 3: syntax error: unexpected end of file
> -bash: /root/ffmpeg/libavcodec/libmp3lame.c:60:: No such file or directory
> root at server [~/x264-snapshot-20100130-2245]#
> /root/ffmpeg/libavcodec/libmp3lame.c:68: undefined reference to
> `lame_init_params'
> > /root/ffmpeg/libavcodec/libmp3lame.c:71: undefined reference to
> `lame_get_framesize'
> > /root/ffmpeg/libavcodec/libmp3lame.c:62: undefined reference to
> `lame_set_brate'
> -bash: command substitution: line 1: unexpected EOF while looking for
> matching `''
> -bash: command substitution: line 3: syntax error: unexpected end of file
> -bash: /root/ffmpeg/libavcodec/libmp3lame.c:68:: No such file or directory
> root at server [~/x264-snapshot-20100130-2245]#
> /root/ffmpeg/libavcodec/libmp3lame.c:63: undefined reference to
> `lame_set_VBR'
> > /root/ffmpeg/libavcodec/libmp3lame.c:64: undefined reference to
> `lame_set_VBR_q'
> > /root/ffmpeg/libavcodec/libmp3lame.c:54: undefined reference to
> `lame_set_quality'
> -bash: command substitution: line 1: unexpected EOF while looking for
> matching `''
> -bash: command substitution: line 3: syntax error: unexpected end of file
> -bash: /root/ffmpeg/libavcodec/libmp3lame.c:63:: No such file or directory
> root at server [~/x264-snapshot-20100130-2245]#
> /root/ffmpeg/libavcodec/libmp3lame.c:79: undefined reference to `lame_close'
> > collect2: ld returned 1 exit status
> > make: *** [x264] Error 1
> >
> >
> root at server [~/x264-snapshot-20100130-2245]#
> root at server [~/x264-snapshot-20100130-2245]#
> root at server [~/x264-snapshot-20100130-2245]#
>
>
> --
> Gershon Bialer
> SRC Web Design
> 107 W. Van Buren St.
> Ste. #201
> Chicago, IL 60605
>
> _______________________________________________
> x264-devel mailing list
> x264-devel at videolan.org
> http://mailman.videolan.org/listinfo/x264-devel
>
>


-- 
Lep pozdrav,

Klemen Tušar


http://djmemi.djslo-forum.com
http://www.myspace.com/memidj
http://www.midnightvibes.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20100213/e06ab5dd/attachment-0001.htm>


More information about the x264-devel mailing list