<div dir="ltr"><div><div><div><div><div><div>Hi, Pusheng:<br></div>Thanks for you reply!<br></div>I checked my ndk, which I used to compile ffmpeg and android app native code, the gcc version is 4.4.3, and I also checked the .so lib files on my devices, they also be compiled by gcc 4.4.3.<br></div>Can you explain me what do you want me to check, maybe I misunderstood you.<br><br></div>Thank you!<br></div>Best Regards<br></div>Ming<br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-12 0:33 GMT-04:00 PushengHe <span dir="ltr"><<a href="mailto:hpsheng2007@163.com" target="_blank">hpsheng2007@163.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">You can check your OS and the version of gcc. <br><br><div>--<br><div>Regards,<br>PushengHe<br></div></div><div><div class="h5"><div></div><br>At 2014-09-12 11:43:20, "Ming Zhang" <<a href="mailto:mingzhangsjtu@gmail.com" target="_blank">mingzhangsjtu@gmail.com</a>> wrote:<br> <blockquote style="PADDING-LEFT:1ex;MARGIN:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div>Hi, everyone:<br></div>I am new to ffmpeg. Recently I am working on project to port ffmpeg to android device.<br></div>At
 the beginning, I compiled ffmpeg to shared libs(.so files) in a very 
normal way following some guides on Internet, load them into my android 
app. It works perfectly.<br></div>Now I want ffmpeg to use libstagefright to fulfill HW decoding.<br></div>The problem is, I can compile the .so libs, but when I launch my app and load those .so libs, there is always a java.lang.UnsatisfiedLinkError:<br></div>Cannot load library: reloc_library[1314]: 114 cannot locate '_ZN7android11MediaBufferC1Ej'<br></div>I
 stuck there for a few days. Does anyone encountered any similar 
problems before? It would be great if someone can give me some hint 
about this error.<br><br></div>My steps:<br></div>1. Compile 
ffmpeg-2.1.4 souce code to .so shared libs. I use the 
build_libstagefright script to do this, and make some modification based
 on some guides from Internet. The script is on the attachment.<br></div>2. Copy the compiled include and lib directories to my android-ndk-r7/sources/ffmpeg-2.1.4/android/arm directory. The Android.mk under this dir is in the attachment(Android.mk1).<br></div>3. Under the jni directory of my android app, the Android.mk and Application.mk files are in the attachment.<br><br></div>I am not sure what else materials you need, if anything is missing, please let me know, I will upload it.<br></div>Thank you guys very much!!! </div>
</blockquote></div></div></div><br><br><span title="neteasefooter"><span></span></span><br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="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></blockquote></div><br></div>