Bill Cheatham
Bill Cheatham

Reputation: 11947

OpenGL with QT: /usr/lib/libQtOpenGL.so not found

I am trying to use an example application which uses OpenGL in QT, but when compiling I ger the following error:

:-1: error: error: /usr/lib/libQtOpenGL.so: No such file or directory

I do have the line QT += opengl in my pro file, so I was wondering what the problem might be - is this an option I should have set when I initially compiled QT?

(On Ubuntu 11.10)

Upvotes: 2

Views: 4904

Answers (1)

Bill Cheatham
Bill Cheatham

Reputation: 11947

It turns out I did have the file on my system, but it had been put in /usr/lib/x86_64-linux-gnu/ for some reason. So I ran:

sudo cp /usr/lib/x86_64-linux-gnu/libQtOpenGL.so /usr/lib

at the terminal, and all is well.

Upvotes: 1

Related Questions