I'm trying to install QWT for QT Creator on Windows 10 x64. I'm totally new to this framework.
Following the guidelines:
Run mingw 7.3 and run following commands:
After it completes, I add path to QWT\lib
in environment variables.
QMAKEFEATURES
with qwt\features
variable.In QT Creator project, created before, in file "*.pro" I add next strings:
Also I include in the project header.
#include <QWidget>
#include <QtGui>
#include <qwt_plot.h>
#include <qwt_plot_curve.h>
#include <qglobal.h>
Now, when I try to run an example project, I get the following error:
error: undefined reference to `QwtPlot::QwtPlot(QWidget*)'
Google says - that means unconnected QWT lib, but what im doing wrong?
Ok, solution found, im followed next steps:
In *.pro file im add
CONFIG += qwt
Add additional user variable in enivromental variables
QT_PLUGIN_PATH(QWT\plugins)
Add additional paths in enivromental variables
C:\QT\Qtx.x.x\x.x.x\mingw48_32\bin
C:\Qt\Qtx.x.x\Tools\mingw48_32\bin
I dont know which was helpfull, but now project compiles without any errors.