# Cannot redirect the GLES library link to PVRTune's

**URL:** <https://forums.imgtec.com/t/cannot-redirect-the-gles-library-link-to-pvrtunes/1205>\
**Category:** PowerVR Insider\
**Tags:** pvrtune, pvrtrace\
**Created:** [October 6, 2011, 2:21am UTC](https://forums.imgtec.com/t/cannot-redirect-the-gles-library-link-to-pvrtunes/1205 "2011-10-06T02:21:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![maceo1975](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@maceo1975](https://forums.imgtec.com/u/maceo1975)\
**Post date:** [October 6, 2011, 2:21am UTC](https://forums.imgtec.com/t/cannot-redirect-the-gles-library-link-to-pvrtunes/1205/1 "2011-10-06T02:21:14Z")

</div>

hi there…  
  
  
I have trying to use the PVRTune(LinuxX86 package) tracer on my linux device(SGX 535) for the graphic analysis.  
  
  
however, I cannot redirect my apps’s graphic library to the PVRTrace by check it with ldd command.  
  
  
( I’d export the LD\_LIBRARY\_PATH to where the PVRTrace libraries is, and the ‘pvrtrace.cfg’ do created after I execute my Apps first time. )  
  
  
  
  
  
Can anyone give me a clue where I did it wrong?  
  
  
  
  
  
Here is my test environments:  
  
  
(\*) EGL/GLES library link of my Apps:

* * *
  
libEGL.so.1 =\> /usr/lib/libEGL.so.1 (0x4e2c8000)  
  
libGLESv2.so.2 =\> /usr/lib/libGLESv2.so.2 (0x4f3f5000)  
  
  
  
(\*)device EGL/GLES library under /usr/lib/ :  
  

* * *
  
lrwxrwxrwx 1 root root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libGLESv2.so -\> libGLESv2.so.2  
  
lrwxrwxrwx 1 root root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libGLESv2.so.1.1.16.4043 -\> pvr/platform/libGLESv2.so.1.1.16.4043  
  
lrwxrwxrwx 1 root root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libGLESv2.so.2 -\> libGLESv2.so.1.1.16.4043  
  
  
  
lrwxrwxrwx 1 root root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libEGL.so -\> libEGL.so.1  
  
lrwxrwxrwx 1 root root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libEGL.so.1 -\> libEGL.so.1.1.16.4043  
  
lrwxrwxrwx 1 root root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libEGL.so.1.1.16.4043 -\> pvr/mrst/libEGL.so.1.1.16.4043  
  
  
  
(\*) Also changed the lib path in pvrtrace.cfg to link as my apps does:  
  

* * *
  
[root@localhost]# cat pvrtrace.cfg  
  
[host]  
  
EglLibraryPath = /usr/lib/libEGL.so.1  
  
Es1LibraryPath = /usr/lib/libGLES\_CM.so  
  
Es2LibraryPath = /usr/lib/libGLESv2.so.2

---

<div class="post-metadata">

**Author:** ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://forums.imgtec.com/u/tobias)\
**Post date:** [October 6, 2011, 9:07am UTC](https://forums.imgtec.com/t/cannot-redirect-the-gles-library-link-to-pvrtunes/1205/2 "2011-10-06T09:07:09Z")

</div>

Hi maceo,  
  
The problem is likely that your app is looking for symbolic links with specific names, which won’t appear in your LD\_LIBRARY\_PATH. I’d suggest generating sym links for the pvrtrace libraries so that the names match up (i.e. libEGL.so -\> libEGL.so.1, libGLESv2.so -\> libGLESv2.so.2).  
  
This should solve the problem, and allow you to use PVRTrace correctly.  
  
Thanks,  
  
Tobias

---

<div class="post-metadata">

**Author:** ![maceo1975](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@maceo1975](https://forums.imgtec.com/u/maceo1975)\
**Post date:** [October 7, 2011, 5:08am UTC](https://forums.imgtec.com/t/cannot-redirect-the-gles-library-link-to-pvrtunes/1205/3 "2011-10-07T05:08:52Z")

</div>

thanks…that do helps me to fixed the link issue!  
  
  
  
  
  
BTW, Can PVRTrace run in the user mode(not root user)?  
  
  
( there will have a file open error happens(must be opening the trace.pvrt) and caused the test apps terminated when I run it in general user mode. )

---

<div class="post-metadata">

**Author:** ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://forums.imgtec.com/u/tobias)\
**Post date:** [October 7, 2011, 4:14pm UTC](https://forums.imgtec.com/t/cannot-redirect-the-gles-library-link-to-pvrtunes/1205/4 "2011-10-07T16:14:00Z")

</div>

Hi maceo,   
  
It can run in user mode, you just need to make sure that the “TraceFile” key in the pvrtrace.cfg points to a location that the application can write to at run time. If you don’t have a pvrtrace.cfg set up already then this may also be causing a problem, so you may need to create this file manually as root as well. Once that’s all done then you should be good to go in user mode.  
  
Thanks,  
  
Tobias

---

<div class="post-metadata">

**Author:** ![maceo1975](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@maceo1975](https://forums.imgtec.com/u/maceo1975)\
**Post date:** [October 12, 2011, 5:57am UTC](https://forums.imgtec.com/t/cannot-redirect-the-gles-library-link-to-pvrtunes/1205/5 "2011-10-12T05:57:23Z")

</div>

Hi Tobias  
  
  
the problem is resolved!  
  
  
Although I’ve still met a segment fault (dmesg:error 4 in libPVRTrace.so) when I launch some specific apps written by QT, I might need to figure out the root cause of the fault in next stage.  
  
  
Anyway, I have to thanks you for the clue ^\_\_\_\_.^maceo19752011-10-12 08:04:47

---

<div class="post-metadata">

**Author:** ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://forums.imgtec.com/u/tobias)\
**Post date:** [October 12, 2011, 10:34am UTC](https://forums.imgtec.com/t/cannot-redirect-the-gles-library-link-to-pvrtunes/1205/6 "2011-10-12T10:34:51Z")

</div>

Hi maceo,  
  
Glad that worked for you - we’re still working on the kinks in trace, the chances are that the apps that cause these problems are simply putting a lot of strain on the trace library. In some cases this can cause problems. If you would be able to send us ([devtech@imgtec.com](mailto:devtech@imgtec.com)) either a binary app or some test code which causes this issue (or both!) we will be able to look at fixing the issues you’re seeing.  
  
Thanks!  
  
Tobias

---

<div class="post-metadata">

**Author:** ![maceo1975](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@maceo1975](https://forums.imgtec.com/u/maceo1975)\
**Post date:** [October 14, 2011, 6:33am UTC](https://forums.imgtec.com/t/cannot-redirect-the-gles-library-link-to-pvrtunes/1205/7 "2011-10-14T06:33:59Z")

</div>

dear Tobias  
I am afraid not able to send you due to it is confidential concerning.  
very sorry about that! ![Confused]() (I wish I could!)  
Actually, I can run glmark2-es benchmark and log GLES API with PVRTrace without error on my side.  
I will send to you if I have meet the same kind of issue on a free GLES benchmark or apps.  
  
thanks you again! ![Sleepy]()

---

<div class="post-metadata">

**Author:** ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://forums.imgtec.com/u/tobias)\
**Post date:** [October 14, 2011, 6:39am UTC](https://forums.imgtec.com/t/cannot-redirect-the-gles-library-link-to-pvrtunes/1205/8 "2011-10-14T06:39:54Z")

</div>

Hi Maceo,  
  
Fair enough, if you do keep running into problems though it might be possible to set up some sort of NDA if this becomes an issue for you. Let us know via email if this is something you’d like us to do.  
  
Thanks,  
  
Tobias
