Hi, <div><br></div><div>I am trying to trace opengl calls similarly as mentioned in this post - <a href="http://lists.freedesktop.org/archives/apitrace/2012-October/000498.html" target="_blank">http://lists.freedesktop.org/archives/apitrace/2012-October/000498.html</a>. Except I am using an android emulator with api level 15 (ice cream sandwich) and armeabi-v7a image. I am able to change the init.rc file and rebuild the ramdisk.img but it doesn't seem like I can set the LD_PRELOAD environment flag since it won't boot whenever I assign a path to it under service zygote section. I know that there are additional information in the README about using LD_ENVIRONMENT_PATH instead of LD_PRELOAD for the android emulator but I am a bit unsure for non-standalone apps whether this is the correct procedure to follow. If so, I am just wondering what I should set the TRACE_LIBGL variable to since I couldn't find libGL.so.1 in the android emulator. I found that there are however other GL related files in the emulator in /system/lib directory - </div>
<div><br></div><div><div>/system/lib/libGLESv2.so</div><div>/system/lib/libGLESv1_enc.so</div><div>/system/lib/libGLESv2_dbg.so</div><div>/system/lib/libGLESv2_enc.so</div><div>/system/lib/libGLESv1_CM.so</div><div>/system/lib/egl/libGLESv1_CM_emulation.so</div>
<div>/system/lib/egl/libGLESv2_emulation.so</div><div>/system/lib/egl/libGLES_android.so</div></div><div><br></div><div>Also, if using LD_ENVIRONMENT_PATH is the right step, I was thinking of first uploading egltrace.so to /data in emulator, symlinking it to create libGL.so, libGL.so.1 and libGL.so.1.2 (or something equivalent for android), and then modifying init.rc so that it would have export LD_ENVIRONMENT_PATH=/data:$LD_ENVIRONMENT_PATH and export TRACE_LIBGL=</path/to/file/I/should/set> under service zygote section. </div>
<div><br></div><div>Would anyone happen to have any insight regarding this? Any help is greatly appreciated. Thanks so much!</div><div><br></div><div>Best, </div><div>Jakk</div>