I'm trying to add OpenGL in plot-examples. First of all I include the line DEFINES += QCUSTOMPLOT_USE_OPENGL in the plot-examples.pro and then set customPlot->setOpenGl(true); in function. But I get errors like these at the step of building:
1-D:\MyFiles\QCustomPlot\qcustomplot\qcustomplot.cpp:909: error: undefined reference to `_imp__glClearColor@16'
2-D:\MyFiles\QCustomPlot\qcustomplot\qcustomplot.cpp:910: error: undefined reference to `_imp__glClear@4'