I tried to build a simple OpenGL App with Qt 5.5.1, and everything is fine up until I try to use openGL native function calls like glClearColor.
The Widget actually compiles and produces a black screen, but after I try to use any openGL native function it doesn't even link, but produces the error:
glwidget.cpp:10: error: undefined reference to '_imp__glClearColor@16'
Here is the .pro file:
QT += core gui opengl
CONFIG += windows
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = Vehicle_simulation
TEMPLATE = app
SOURCES += main.cpp\
simulation.cpp \
glwidget.cpp
HEADERS += simulation.h \
glwidget.h
FORMS += simulation.ui
I'm using Desktop Qt mingw492_32 kit. The strange thing though is that I did not find libQtOpenGL.so in the lib folder. Is my QT installation faulty? I tried to reinstall it multiple times, but it didn't help. Where can I download that specific library?
linking it to the project would solve the problem, but I can't seem to find it anywhere.
The problem is the openGL module is missing from the QT installation, it's not that I am unable to link to it.