Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to compile some OpenGL apps from sources but there is no /usr/lib/, or /usr/lib/ or even /usr/lib/ However fglrxinfo says:

display: :0.0 screen: 0 OpenGL vendor string: ATI Technologies Inc. OpenGL renderer string: ATI Mobility Radeon HD 4500 Series OpenGL version string: 3.3.10237 Compatibility Profile Context

Which is what i espect and the gears demo also works...

How do i get those files? I tried the MESA files and then i got SW rendering which is not what i want...

share|improve this question
up vote 0 down vote accepted

The libgl1-dev package is a meta-package that contains the required lib and can be replaced with software implementations libgl1-mesa-swx11 or dri accelerated version libgl1-mesa-dri.

share|improve this answer

The fglrx package contains /usr/lib/fglrx/

To see which libs glxgears (or any other program) is using use

ldd "$(which glxgears)"
share|improve this answer
I could do that but it would make my binaries to link only against the libs on my machine, if i run those on a intel or nvidia environment it would not work. – Paulo Lopes Mar 13 '11 at 19:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.