Hi,
I am trying to install Mali graphics debugger(v2.0.2) on my target(arm_fbdev) as mentioned in the MGD user guide.
I started the mgddaemon and preloaded the interceptor library path before launching the OpenGL ES app but i could not get any trace on MGD GUI.
However, it seems that the host is properly connected as per below log
"Host Connected."
Also . i tried the other alternative to LD_PRELOAD ,i.e., setting LD_LIBRARY_PATH & MGD_LIBRARY_PATH as mentioned in the guide
but still could not get any traces.
I could see libEGL.so and libGLESv2.so in arm_fbdev folder other than the interceptor library.
Please suggest if I am missing anything on setup.
Thanks and Regards
Prabal Ghosh
Hi Chris,
Thanks a lot for your reply.
MGD is working fine and i could see the trace in MGD GUI.
The issue was with LD_LIBRARY_PATH/LD_PRELOAD on my target system which was not being set properly.
I made few changes by copying libEGL.so and libGLESv2.so (present in arm_fbdev) into my /usr/lib/ directory and setting MGD_LIBRARY_PATH=/usr/lib/malidriver/ .(directory created by me)
Things seems to be working fine now.
Yep that would do it, glad you got it working! For the benefit of people googling this later though, it's not advisable to copy the interceptor libs to /usr/lib as it changes the behaviour for normal operation, as everything will now see the MGD libs in /usr/lib and so stuff will stop working unless you have MGD_LIBRARY_PATH correctly set. Correct operation would be achieved without this side effect if you left the real libs in /usr/lib, and set MGD_LIBRARY_PATH to that, and set LD_LIBRARY_PATH to the location of the interceptor libs for the apps you wish to trace .
Cheers,
Chris