<div>Hi,</div>
<div> </div>
<div>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</div>
<div> </div>
<div><br>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<br>
/usr/local/lib/libavcodec.a(libmp3lame.o): In function `MP3lame_encode_close':<br>/root/ffmpeg/libavcodec/libmp3lame.c:212: undefined reference to `lame_close'<br>/usr/local/lib/libavcodec.a(libmp3lame.o): In function `MP3lame_encode_frame':<br>
/root/ffmpeg/libavcodec/libmp3lame.c:152: undefined reference to `lame_encode_buffer_interleaved'<br>/root/ffmpeg/libavcodec/libmp3lame.c:160: undefined reference to `lame_encode_buffer'<br>/root/ffmpeg/libavcodec/libmp3lame.c:170: undefined reference to `lame_encode_flush'<br>
/usr/local/lib/libavcodec.a(libmp3lame.o): In function `MP3lame_encode_init':<br>/root/ffmpeg/libavcodec/libmp3lame.c:48: undefined reference to `lame_init'<br>/root/ffmpeg/libavcodec/libmp3lame.c:50: undefined reference to `lame_set_in_samplerate'<br>
/root/ffmpeg/libavcodec/libmp3lame.c:51: undefined reference to `lame_set_out_samplerate'<br>/root/ffmpeg/libavcodec/libmp3lame.c:52: undefined reference to `lame_set_num_channels'<br>/root/ffmpeg/libavcodec/libmp3lame.c:56: undefined reference to `lame_set_quality'<br>
/root/ffmpeg/libavcodec/libmp3lame.c:59: undefined reference to `lame_set_mode'<br>/root/ffmpeg/libavcodec/libmp3lame.c:60: undefined reference to `lame_set_brate'<br>/root/ffmpeg/libavcodec/libmp3lame.c:66: undefined reference to `lame_set_bWriteVbrTag'<br>
/root/ffmpeg/libavcodec/libmp3lame.c:67: undefined reference to `lame_set_disable_reservoir'<br>/root/ffmpeg/libavcodec/libmp3lame.c:68: undefined reference to `lame_init_params'<br>/root/ffmpeg/libavcodec/libmp3lame.c:71: undefined reference to `lame_get_framesize'<br>
/root/ffmpeg/libavcodec/libmp3lame.c:62: undefined reference to `lame_set_brate'<br>/root/ffmpeg/libavcodec/libmp3lame.c:63: undefined reference to `lame_set_VBR'<br>/root/ffmpeg/libavcodec/libmp3lame.c:64: undefined reference to `lame_set_VBR_q'<br>
/root/ffmpeg/libavcodec/libmp3lame.c:54: undefined reference to `lame_set_quality'<br>/root/ffmpeg/libavcodec/libmp3lame.c:79: undefined reference to `lame_close'<br>collect2: ld returned 1 exit status<br>make: *** [x264] Error 1<br>
<a href="mailto:root@server">root@server</a> [~/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<br>
/root/ffmpeg/libavcodec/libmp3lame.c:212: undefined reference to `lame_close'<br>/usr/local/lib/libavcodec.a(libmp3lame.o): In function `MP3lame_encode_frame':<br>/root/ffmpeg/libavcodec/libmp3lame.c:152: undefined reference to `lame_encode_buffer_interleaved'<br>
/usr/local/lib/libavcodec.a(libmp3lame.o): In function `MP3lame_encode_close':<br>/root/ffmpeg/libavcodec/libmp3lame.c:212: undefined reference to `lame_close'<br>/usr/local/lib/libavcodec.a(libmp3lame.o): In function `MP3lame_encode_frame':<br>
/root/ffmpeg/libavcodec/libmp3lame.c:152: undefined reference to `lame_encode_buffer_interleaved'<br>/root/ffmpeg/libavcodec/libmp3lame.c:160: undefined reference to `lame_encode_buffer'<br>/root/ffmpeg/libavcodec/libmp3lame.c:170: undefined reference to `lame_encode_flush'<br>
/usr/local/lib/libavcodec.a(libmp3lame.o): In function `MP3lame_encode_init':<br>/root/ffmpeg/libavcodec/libmp3lame.c:48: undefined reference to `lame_init'<br>/root/ffmpeg/libavcodec/libmp3lame.c:50: undefined reference to `lame_set_in_samplerate'<br>
/root/ffmpeg/libavcodec/libmp3lame.c:51: undefined reference to `lame_set_out_samplerate'<br>/root/ffmpeg/libavcodec/libmp3lame.c:52: undefined reference to `lame_set_num_channels'<br>/root/ffmpeg/libavcodec/libmp3lame.c:56: undefined reference to `lame_set_quality'<br>
/root/ffmpeg/libavcodec/libmp3lame.c:59: undefined reference to `lame_set_mode'<br>/root/ffmpeg/libavcodec/libmp3lame.c:60: undefined reference to `lame_set_brate'<br>/root/ffmpeg/libavcodec/libmp3lame.c:66: undefined reference to `lame_set_bWriteVbrTag'<br>
/root/ffmpeg/libavcodec/libmp3lame.c:67: undefined reference to `lame_set_disable_reservoir'<br>/root/ffmpeg/libavcodec/libmp3lame.c:68: undefined reference to `lame_init_params'<br>/root/ffmpeg/libavcodec/libmp3lame.c:71: undefined reference to `lame_get_framesize'<br>
/root/ffmpeg/libavcodec/libmp3lame.c:62: undefined reference to `lame_set_brate'<br>/root/ffmpeg/libavcodec/libmp3lame.c:63: undefined reference to `lame_set_VBR'<br>/root/ffmpeg/libavcodec/libmp3lame.c:64: undefined reference to `lame_set_VBR_q'<br>
/root/ffmpeg/libavcodec/libmp3lame.c:54: undefined reference to `lame_set_quality'<br>/root/ffmpeg/libavcodec/libmp3lame.c:79: undefined reference to `lame_close'<br>collect2: ld returned 1 exit status<br><a href="mailto:root@server">root@server</a> [~/x264-snapshot-20100130-2245]# /usr/local/lib/libavcodec.a(libmp3lame.o): In function `MP3lame_encode_close':<br>
-bash: syntax error near unexpected token `libmp3lame.o'<br><a href="mailto:root@server">root@server</a> [~/x264-snapshot-20100130-2245]# /root/ffmpeg/libavcodec/libmp3lame.c:212: undefined reference to `lame_close'<br>
> /usr/local/lib/libavcodec.a(libmp3lame.o): In function `MP3lame_encode_frame':<br>> /root/ffmpeg/libavcodec/libmp3lame.c:152: undefined reference to `lame_encode_buffer_interleaved'<br>-bash: command substitution: line 1: unexpected EOF while looking for matching `''<br>
-bash: command substitution: line 3: syntax error: unexpected end of file<br>-bash: /root/ffmpeg/libavcodec/libmp3lame.c:212:: No such file or directory<br><a href="mailto:root@server">root@server</a> [~/x264-snapshot-20100130-2245]# /root/ffmpeg/libavcodec/libmp3lame.c:160: undefined reference to `lame_encode_buffer'<br>
> /root/ffmpeg/libavcodec/libmp3lame.c:170: undefined reference to `lame_encode_flush'<br>> /usr/local/lib/libavcodec.a(libmp3lame.o): In function `MP3lame_encode_init':<br>-bash: command substitution: line 1: unexpected EOF while looking for matching `''<br>
-bash: command substitution: line 3: syntax error: unexpected end of file<br>-bash: /root/ffmpeg/libavcodec/libmp3lame.c:160:: No such file or directory<br><a href="mailto:root@server">root@server</a> [~/x264-snapshot-20100130-2245]# /root/ffmpeg/libavcodec/libmp3lame.c:48: undefined reference to `lame_init'<br>
> /root/ffmpeg/libavcodec/libmp3lame.c:50: undefined reference to `lame_set_in_samplerate'<br>> /root/ffmpeg/libavcodec/libmp3lame.c:51: undefined reference to `lame_set_out_samplerate'<br>-bash: command substitution: line 1: unexpected EOF while looking for matching `''<br>
-bash: command substitution: line 3: syntax error: unexpected end of file<br>-bash: /root/ffmpeg/libavcodec/libmp3lame.c:48:: No such file or directory<br><a href="mailto:root@server">root@server</a> [~/x264-snapshot-20100130-2245]# /root/ffmpeg/libavcodec/libmp3lame.c:52: undefined reference to `lame_set_num_channels'<br>
> /root/ffmpeg/libavcodec/libmp3lame.c:56: undefined reference to `lame_set_quality'<br>> /root/ffmpeg/libavcodec/libmp3lame.c:59: undefined reference to `lame_set_mode'<br>-bash: command substitution: line 1: unexpected EOF while looking for matching `''<br>
-bash: command substitution: line 3: syntax error: unexpected end of file<br>-bash: /root/ffmpeg/libavcodec/libmp3lame.c:52:: No such file or directory<br><a href="mailto:root@server">root@server</a> [~/x264-snapshot-20100130-2245]# /root/ffmpeg/libavcodec/libmp3lame.c:60: undefined reference to `lame_set_brate'<br>
> /root/ffmpeg/libavcodec/libmp3lame.c:66: undefined reference to `lame_set_bWriteVbrTag'<br>> /root/ffmpeg/libavcodec/libmp3lame.c:67: undefined reference to `lame_set_disable_reservoir'<br>-bash: command substitution: line 1: unexpected EOF while looking for matching `''<br>
-bash: command substitution: line 3: syntax error: unexpected end of file<br>-bash: /root/ffmpeg/libavcodec/libmp3lame.c:60:: No such file or directory<br><a href="mailto:root@server">root@server</a> [~/x264-snapshot-20100130-2245]# /root/ffmpeg/libavcodec/libmp3lame.c:68: undefined reference to `lame_init_params'<br>
> /root/ffmpeg/libavcodec/libmp3lame.c:71: undefined reference to `lame_get_framesize'<br>> /root/ffmpeg/libavcodec/libmp3lame.c:62: undefined reference to `lame_set_brate'<br>-bash: command substitution: line 1: unexpected EOF while looking for matching `''<br>
-bash: command substitution: line 3: syntax error: unexpected end of file<br>-bash: /root/ffmpeg/libavcodec/libmp3lame.c:68:: No such file or directory<br><a href="mailto:root@server">root@server</a> [~/x264-snapshot-20100130-2245]# /root/ffmpeg/libavcodec/libmp3lame.c:63: undefined reference to `lame_set_VBR'<br>
> /root/ffmpeg/libavcodec/libmp3lame.c:64: undefined reference to `lame_set_VBR_q'<br>> /root/ffmpeg/libavcodec/libmp3lame.c:54: undefined reference to `lame_set_quality'<br>-bash: command substitution: line 1: unexpected EOF while looking for matching `''<br>
-bash: command substitution: line 3: syntax error: unexpected end of file<br>-bash: /root/ffmpeg/libavcodec/libmp3lame.c:63:: No such file or directory<br><a href="mailto:root@server">root@server</a> [~/x264-snapshot-20100130-2245]# /root/ffmpeg/libavcodec/libmp3lame.c:79: undefined reference to `lame_close'<br>
> collect2: ld returned 1 exit status<br>> make: *** [x264] Error 1<br>><br>><br><a href="mailto:root@server">root@server</a> [~/x264-snapshot-20100130-2245]#<br><a href="mailto:root@server">root@server</a> [~/x264-snapshot-20100130-2245]#<br>
<a href="mailto:root@server">root@server</a> [~/x264-snapshot-20100130-2245]#<br><br clear="all"><br>-- <br>Gershon Bialer<br>SRC Web Design<br>107 W. Van Buren St.<br>Ste. #201<br>Chicago, IL 60605<br></div>