# Configure error linking qt Ubuntu 16.04

**URL:** <https://community.mrtrix.org/t/configure-error-linking-qt-ubuntu-16-04/678>\
**Category:** Uncategorized\
**Tags:** installation, linux\
**Created:** [January 25, 2017, 9:17am UTC](https://community.mrtrix.org/t/configure-error-linking-qt-ubuntu-16-04/678 "2017-01-25T09:17:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jdtournier](https://community.mrtrix.org/user_avatar/community.mrtrix.org/jdtournier/32/2594_2.png) [@jdtournier](https://community.mrtrix.org/u/jdtournier)\
**Post date:** [January 25, 2017, 11:24am UTC](https://community.mrtrix.org/t/configure-error-linking-qt-ubuntu-16-04/678/2 "2017-01-25T11:24:31Z")

</div>

The relevant error here is:

```auto
/usr/bin/ld: cannot find -lGL

```

which seems similar to [this issue](https://community.mrtrix.org/t/compilation-on-ubuntu-14-04-failed/125/13?u=jdtournier). I reckon you need to install the right `libgl-dev` package - but that unfortunately depends on your graphics drivers. If you are using the open-source drivers (`mesa`), then the correct package would be `libgl1-mesa-dev` (as per the [installation instructions](http://mrtrix.readthedocs.io/en/latest/installation/linux_install.html#install-dependencies) on the _MRtrix3_ documentation). But if you’re using the nvidia proprietary drivers, then according to [this search](http://packages.ubuntu.com/search?suite=xenial&arch=amd64&mode=exactfilename&searchon=contents&keywords=libGL.so), these should come with one of the `nvidia-361`, `nvidia-340`, or `nvidia-304` packages (depending on your hardware). Try installing (or re-installing) whichever package is the right one, see what happens…

---

_[View the full topic](https://community.mrtrix.org/t/configure-error-linking-qt-ubuntu-16-04/678)._
