# \[Solved\] Jetson TK1: libEGL warning - Can not find libOpenVG

**URL:** <https://forums.developer.nvidia.com/t/solved-jetson-tk1-libegl-warning-can-not-find-libopenvg/36728>\
**Category:** Jetson TK1\
**Created:** [February 12, 2015, 12:34am UTC](https://forums.developer.nvidia.com/t/solved-jetson-tk1-libegl-warning-can-not-find-libopenvg/36728 "2015-02-12T00:34:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Morgane](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/morgane/32/12445_2.png) [@Morgane](https://forums.developer.nvidia.com/u/Morgane)\
**Post date:** [February 12, 2015, 12:34am UTC](https://forums.developer.nvidia.com/t/solved-jetson-tk1-libegl-warning-can-not-find-libopenvg/36728/1 "2015-02-12T00:34:43Z")

</div>

Hi,

I’m working on a Jetson TK1 board R21.1. My host is a Virtual Machine with Ubuntu 14.04 LTS 64bit.  
I would like to create a Qt application using OpenGL and a CUDA library (that I have created using nsight) that I am cross-compiling.

I’m having this error:

```auto
libEGL warning: Could not open driver /usr/lib/arm-linux-gnueabihf/egl/egl_gallium.so (libOpenVG.so.1: cannot open shared object file: No such file or directory)

```

Inside my folder “egl” on the board, I just had the egl-gallium.so so I created a symlink to the libOpenVG.so.1 linked to the /usr/lib/arm-linux-gnueabihf/mesa-egl/libOpenVG.so.1.0.0 but I am still getting the error.  
I understand that egl-gallium is a driver used by EGL ([EGL — The Mesa 3D Graphics Library latest documentation](http://www.mesa3d.org/egl.html))

Am I supposed to use this one on my board ? Or am I supposed to use the dri2 driver ? Where is it supposed to be ? (I’m not able to find the library of dri2 driver)  
How can I specify to use dri2 instead of gallium ?

Thank you for your help,

Morgane

---

<div class="post-metadata">

**Author:** ![GospelCH01](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@GospelCH01](https://forums.developer.nvidia.com/u/GospelCH01)\
**Post date:** [February 12, 2015, 1:48am UTC](https://forums.developer.nvidia.com/t/solved-jetson-tk1-libegl-warning-can-not-find-libopenvg/36728/2 "2015-02-12T01:48:45Z")

</div>

Wild Guess !  
On board under /usr/lib/arm-linux-guneabihf, your libEGL link looks like this

```auto
libEGL.so -> mesa-egl/libEGL.so.1

```

or this

```auto
libEGL.so -> tegra-egl/libEGL.so.1

```

The fromer one is not correct which cuz by apt-get install certain mesa stuffs. Just rebuild the link.

---

<div class="post-metadata">

**Author:** ![Morgane](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/morgane/32/12445_2.png) [@Morgane](https://forums.developer.nvidia.com/u/Morgane)\
**Post date:** [February 12, 2015, 5:34pm UTC](https://forums.developer.nvidia.com/t/solved-jetson-tk1-libegl-warning-can-not-find-libopenvg/36728/3 "2015-02-12T17:34:29Z")

</div>

Hi,

Thank you for your answer !!  
I checked my /usr/lib/arm-linux-gnuabihf/libEGL.so and it was link to the mesa-egl/libEGL.so.1.0.0  
I changed it for the tegra-egl and it’s now working perfectly !

Thanks a lot for your help :)

Morgane

---

<div class="post-metadata">

**Author:** ![kulve](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kulve/32/9688_2.png) [@kulve](https://forums.developer.nvidia.com/u/kulve)\
**Post date:** [February 13, 2015, 5:41am UTC](https://forums.developer.nvidia.com/t/solved-jetson-tk1-libegl-warning-can-not-find-libopenvg/36728/4 "2015-02-13T05:41:10Z")

</div>

I think the libraries are searched in a specific order and the first hit is used.

The order is defined by going through the library directories listed here (in alphabetical order):

```auto
/etc/ld.so.conf.d/

```

So instead of changing the symlinks (they can get broken on apt-get upgrade) you may want to add new files to the conf.d directory to correct the search order.

After changing those, you need to run:

```auto
sudo ldconfig

```
