<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Dear all,</span></div><div><span>I configured like this:</span></div><div><span><span class="tab"> ./configure --enable-gpl --enable-libfdk_aac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264</span></span></div><div><span><span class="tab">that i followed the link : <a href="http://ffmpeg.org/trac/ffmpeg/wiki/CentosCompilationGuide">http://ffmpeg.org/trac/ffmpeg/wiki/CentosCompilationGuide</a>.</span></span></div><div><span><span class="tab">I got the same size when linking without -g option. I also tried with static and dynamic link but the result is still same.</span></span></div><div><span><span class="tab">All of ffmpeg functions i used come from 2 examples decoding_encoding.c and resampling_audio.c provided in /doc/example directory of
ffmpeg.</span></span></div><div><span><span class="tab">whenever i remove any library specified in the linking command, the errors appear. For example:</span></span></div><div><span><span class="tab">If i remove -lavcodec, the error is:</span></span></div><div><span><span class="tab">g++ -o x2pcm main.o util.o -L/usr/lib64 -L/usr/local/lib -Wl,-Bstatic -lavformat -lavutil -lswresample -Wl,-Bdynamic -lvorbis -lx264 -lmp3lame -logg -lvorbisenc -lvpx -lz -lpthread<br>/usr/local/lib/libavformat.a(rl2.o): In function `rl2_read_packet':<br>/home/nhanndt/ffmpeg-source/ffmpeg/libavformat/rl2.c:245: undefined reference to `av_free_packet'<br>/usr/local/lib/libavformat.a(sbgdec.o): In function `sbg_read_packet':<br>/home/nhanndt/ffmpeg-source/ffmpeg/libavformat/sbgdec.c:1456: undefined reference to `av_new_packet'<br>/usr/local/lib/libavformat.a(swfdec.o): In function `swf_read_packet':<br>/home/nhanndt/ffmpeg-source/ffmpeg/libavformat/swfdec.c:440: undefined
reference to `av_new_packet'<br>/home/nhanndt/ffmpeg-source/ffmpeg/libavformat/swfdec.c:352: undefined reference to `av_new_packet'<br>/home/nhanndt/ffmpeg-source/ffmpeg/libavformat/swfdec.c:363: undefined reference to `av_packet_new_side_data'</span></span></div><div><span><span class="tab">and so on...</span></span></div><div><br></div> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <div style="margin: 5px 0px; padding: 0px; border: 1px solid rgb(204, 204, 204); height: 0px; line-height: 0; font-size: 0px;" class="hr" contentEditable="false" readonly="true"></div> <b><span style="font-weight: bold;">From:</span></b> RenE J.V. Bertin <rjvbertin@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> "This list is about using libavcodec, libavformat, libavutil,
libavdevice and libavfilter." <libav-user@ffmpeg.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, March 4, 2013 5:22 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Libav-user] libav-user list post!<br> </font> </div> <br>
<div id="yiv290510160"><div><div><br></div><div><br>On 4 Mar 2013, at 07:07, thanh nhan thanh nhan <<a href="mailto:nhanndt_87@yahoo.com" rel="nofollow" target="_blank" ymailto="mailto:nhanndt_87@yahoo.com">nhanndt_87@yahoo.com</a>> wrote:<br>
<br></div><blockquote type="cite"><div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 12pt; background-color: rgb(255, 255, 255);"><div>Dear libav-user list admin,</div><div>I wanna post the following message on thi mailing list:</div>
<div> </div><div><i>I am developing pcm decoding using ffmpeg libraries in Linux. I successfully built my program. The problem is the executable file size is very big ( ~ 63Mb) even though i just used few functions on audio decoding. I wanna downsize the executable file as much as possible. I think the problem is on the linking process. I made the Makefile with:</i></div>
<div><span class="yiv290510160tab"><i> "g++ -L/usr/lib64 -L/usr/local/lib -g -o x2pcm main.o util.o -lavformat -lavcodec -lavutil -lswresample -lvorbis -lx264 -lmp3lame -logg -lvorbisenc -lvpx -lpthread -lz"</i></span></div>
<div><span class="yiv290510160tab"><i>Is there any suggestion for me to solve this problem?</i></span></div><div><span class="yiv290510160tab"><i>Thanks in advance!</i></span></div><div><span class="yiv290510160tab"><i></i></span> </div><div><span class="yiv290510160tab">Regards,</span></div>
</div></div></blockquote><blockquote type="cite"><div><span>______________________________</span><br></div></blockquote><br><div>What is the size you get when linking without the -g option? Also, are you using static or shared libraries, and why are you linking in video libraries if you're only doing decoding?</div>
<div><br></div><div>R</div></div>
</div><br>_______________________________________________<br>Libav-user mailing list<br><a href="mailto:Libav-user@ffmpeg.org" ymailto="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br><a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br><br><br> </div> </div> </div></body></html>