compile ffmpeg without lame support<br><br><div class="gmail_quote">On Fri, Feb 12, 2010 at 7:41 PM, gershon bialer <span dir="ltr">&lt;<a href="mailto:gershon.bialer@gmail.com">gershon.bialer@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>Hi,</div>
<div> </div>
<div>When I try to compile x264, I get a compiliation error. It appears it can&#39;t reference lame properly, and I can&#39;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&#39;:<br>/root/ffmpeg/libavcodec/libmp3lame.c:212: undefined reference to `lame_close&#39;<br>/usr/local/lib/libavcodec.a(libmp3lame.o): In function `MP3lame_encode_frame&#39;:<br>

/root/ffmpeg/libavcodec/libmp3lame.c:152: undefined reference to `lame_encode_buffer_interleaved&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:160: undefined reference to `lame_encode_buffer&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:170: undefined reference to `lame_encode_flush&#39;<br>

/usr/local/lib/libavcodec.a(libmp3lame.o): In function `MP3lame_encode_init&#39;:<br>/root/ffmpeg/libavcodec/libmp3lame.c:48: undefined reference to `lame_init&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:50: undefined reference to `lame_set_in_samplerate&#39;<br>

/root/ffmpeg/libavcodec/libmp3lame.c:51: undefined reference to `lame_set_out_samplerate&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:52: undefined reference to `lame_set_num_channels&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:56: undefined reference to `lame_set_quality&#39;<br>

/root/ffmpeg/libavcodec/libmp3lame.c:59: undefined reference to `lame_set_mode&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:60: undefined reference to `lame_set_brate&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:66: undefined reference to `lame_set_bWriteVbrTag&#39;<br>

/root/ffmpeg/libavcodec/libmp3lame.c:67: undefined reference to `lame_set_disable_reservoir&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:68: undefined reference to `lame_init_params&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:71: undefined reference to `lame_get_framesize&#39;<br>

/root/ffmpeg/libavcodec/libmp3lame.c:62: undefined reference to `lame_set_brate&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:63: undefined reference to `lame_set_VBR&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:64: undefined reference to `lame_set_VBR_q&#39;<br>

/root/ffmpeg/libavcodec/libmp3lame.c:54: undefined reference to `lame_set_quality&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:79: undefined reference to `lame_close&#39;<br>collect2: ld returned 1 exit status<br>make: *** [x264] Error 1<br>

<a href="mailto:root@server" target="_blank">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&#39;<br>/usr/local/lib/libavcodec.a(libmp3lame.o): In function `MP3lame_encode_frame&#39;:<br>/root/ffmpeg/libavcodec/libmp3lame.c:152: undefined reference to `lame_encode_buffer_interleaved&#39;<br>

/usr/local/lib/libavcodec.a(libmp3lame.o): In function `MP3lame_encode_close&#39;:<br>/root/ffmpeg/libavcodec/libmp3lame.c:212: undefined reference to `lame_close&#39;<br>/usr/local/lib/libavcodec.a(libmp3lame.o): In function `MP3lame_encode_frame&#39;:<br>

/root/ffmpeg/libavcodec/libmp3lame.c:152: undefined reference to `lame_encode_buffer_interleaved&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:160: undefined reference to `lame_encode_buffer&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:170: undefined reference to `lame_encode_flush&#39;<br>

/usr/local/lib/libavcodec.a(libmp3lame.o): In function `MP3lame_encode_init&#39;:<br>/root/ffmpeg/libavcodec/libmp3lame.c:48: undefined reference to `lame_init&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:50: undefined reference to `lame_set_in_samplerate&#39;<br>

/root/ffmpeg/libavcodec/libmp3lame.c:51: undefined reference to `lame_set_out_samplerate&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:52: undefined reference to `lame_set_num_channels&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:56: undefined reference to `lame_set_quality&#39;<br>

/root/ffmpeg/libavcodec/libmp3lame.c:59: undefined reference to `lame_set_mode&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:60: undefined reference to `lame_set_brate&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:66: undefined reference to `lame_set_bWriteVbrTag&#39;<br>

/root/ffmpeg/libavcodec/libmp3lame.c:67: undefined reference to `lame_set_disable_reservoir&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:68: undefined reference to `lame_init_params&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:71: undefined reference to `lame_get_framesize&#39;<br>

/root/ffmpeg/libavcodec/libmp3lame.c:62: undefined reference to `lame_set_brate&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:63: undefined reference to `lame_set_VBR&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:64: undefined reference to `lame_set_VBR_q&#39;<br>

/root/ffmpeg/libavcodec/libmp3lame.c:54: undefined reference to `lame_set_quality&#39;<br>/root/ffmpeg/libavcodec/libmp3lame.c:79: undefined reference to `lame_close&#39;<br>collect2: ld returned 1 exit status<br><a href="mailto:root@server" target="_blank">root@server</a> [~/x264-snapshot-20100130-2245]# /usr/local/lib/libavcodec.a(libmp3lame.o): In function `MP3lame_encode_close&#39;:<br>

-bash: syntax error near unexpected token `libmp3lame.o&#39;<br><a href="mailto:root@server" target="_blank">root@server</a> [~/x264-snapshot-20100130-2245]# /root/ffmpeg/libavcodec/libmp3lame.c:212: undefined reference to `lame_close&#39;<br>

&gt; /usr/local/lib/libavcodec.a(libmp3lame.o): In function `MP3lame_encode_frame&#39;:<br>&gt; /root/ffmpeg/libavcodec/libmp3lame.c:152: undefined reference to `lame_encode_buffer_interleaved&#39;<br>-bash: command substitution: line 1: unexpected EOF while looking for matching `&#39;&#39;<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" target="_blank">root@server</a> [~/x264-snapshot-20100130-2245]# /root/ffmpeg/libavcodec/libmp3lame.c:160: undefined reference to `lame_encode_buffer&#39;<br>

&gt; /root/ffmpeg/libavcodec/libmp3lame.c:170: undefined reference to `lame_encode_flush&#39;<br>&gt; /usr/local/lib/libavcodec.a(libmp3lame.o): In function `MP3lame_encode_init&#39;:<br>-bash: command substitution: line 1: unexpected EOF while looking for matching `&#39;&#39;<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" target="_blank">root@server</a> [~/x264-snapshot-20100130-2245]# /root/ffmpeg/libavcodec/libmp3lame.c:48: undefined reference to `lame_init&#39;<br>

&gt; /root/ffmpeg/libavcodec/libmp3lame.c:50: undefined reference to `lame_set_in_samplerate&#39;<br>&gt; /root/ffmpeg/libavcodec/libmp3lame.c:51: undefined reference to `lame_set_out_samplerate&#39;<br>-bash: command substitution: line 1: unexpected EOF while looking for matching `&#39;&#39;<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" target="_blank">root@server</a> [~/x264-snapshot-20100130-2245]# /root/ffmpeg/libavcodec/libmp3lame.c:52: undefined reference to `lame_set_num_channels&#39;<br>

&gt; /root/ffmpeg/libavcodec/libmp3lame.c:56: undefined reference to `lame_set_quality&#39;<br>&gt; /root/ffmpeg/libavcodec/libmp3lame.c:59: undefined reference to `lame_set_mode&#39;<br>-bash: command substitution: line 1: unexpected EOF while looking for matching `&#39;&#39;<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" target="_blank">root@server</a> [~/x264-snapshot-20100130-2245]# /root/ffmpeg/libavcodec/libmp3lame.c:60: undefined reference to `lame_set_brate&#39;<br>

&gt; /root/ffmpeg/libavcodec/libmp3lame.c:66: undefined reference to `lame_set_bWriteVbrTag&#39;<br>&gt; /root/ffmpeg/libavcodec/libmp3lame.c:67: undefined reference to `lame_set_disable_reservoir&#39;<br>-bash: command substitution: line 1: unexpected EOF while looking for matching `&#39;&#39;<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" target="_blank">root@server</a> [~/x264-snapshot-20100130-2245]# /root/ffmpeg/libavcodec/libmp3lame.c:68: undefined reference to `lame_init_params&#39;<br>

&gt; /root/ffmpeg/libavcodec/libmp3lame.c:71: undefined reference to `lame_get_framesize&#39;<br>&gt; /root/ffmpeg/libavcodec/libmp3lame.c:62: undefined reference to `lame_set_brate&#39;<br>-bash: command substitution: line 1: unexpected EOF while looking for matching `&#39;&#39;<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" target="_blank">root@server</a> [~/x264-snapshot-20100130-2245]# /root/ffmpeg/libavcodec/libmp3lame.c:63: undefined reference to `lame_set_VBR&#39;<br>

&gt; /root/ffmpeg/libavcodec/libmp3lame.c:64: undefined reference to `lame_set_VBR_q&#39;<br>&gt; /root/ffmpeg/libavcodec/libmp3lame.c:54: undefined reference to `lame_set_quality&#39;<br>-bash: command substitution: line 1: unexpected EOF while looking for matching `&#39;&#39;<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" target="_blank">root@server</a> [~/x264-snapshot-20100130-2245]# /root/ffmpeg/libavcodec/libmp3lame.c:79: undefined reference to `lame_close&#39;<br>

&gt; collect2: ld returned 1 exit status<br>&gt; make: *** [x264] Error 1<br>&gt;<br>&gt;<br><a href="mailto:root@server" target="_blank">root@server</a> [~/x264-snapshot-20100130-2245]#<br><a href="mailto:root@server" target="_blank">root@server</a> [~/x264-snapshot-20100130-2245]#<br>

<a href="mailto:root@server" target="_blank">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>

<br>_______________________________________________<br>
x264-devel mailing list<br>
<a href="mailto:x264-devel@videolan.org">x264-devel@videolan.org</a><br>
<a href="http://mailman.videolan.org/listinfo/x264-devel" target="_blank">http://mailman.videolan.org/listinfo/x264-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Lep pozdrav,<br><br>Klemen Tušar<br><br><br><a href="http://djmemi.djslo-forum.com">http://djmemi.djslo-forum.com</a><br><a href="http://www.myspace.com/memidj">http://www.myspace.com/memidj</a><br>
<a href="http://www.midnightvibes.com">http://www.midnightvibes.com</a><br>