I have some problems with compiling "hello world" application in kubuntu linux 11.10. This is project file:
// opengltext.pro
SOURCES += \
main.cpp
QT += opengl
And one cpp file:
// main.cpp
#include <QApplication>
int main( int argc, char *argv[] )
{
QApplication app( argc, argv );
return app.exec();
}
i have got the following errors:
:-1: error: cannot find -lGLU
:-1: error: cannot find -lGL
:-1: error: collect2: ld returned 1 exit status
I try find in google the solution of this problem. But didn't find. i try to install:
sudo apt-get install libglw1-mesa-dev
but this error is still taking place
What's the problem?
You need the following 2 packages:
xlibmesa-gl-dev
xlibmesa-glu-dev
-- edit --
Thanks for correction @ephemient, these were obsolete names, right names are:
libgl1-mesa-dev
libglu1-mesa-dev
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With