Hi,
I want to use QWT library to display plots. But I´ve a problem to integrate qwt in my application.
I build the qwt shared library by executing
qmake && make
qmake && make
To copy to clipboard, switch view to plain text mode
.
Afterwards I copied the libs to a subfolder in my project.
This is a snippet of my pro file:
DEPENDPATH += ../libs/lib/shared
INCLUDEPATH += ../libs/include
LIBS += -L../libs/lib/shared -lqwt -lqwtmathml
DEPENDPATH += ../libs/lib/shared
INCLUDEPATH += ../libs/include
LIBS += -L../libs/lib/shared -lqwt -lqwtmathml
To copy to clipboard, switch view to plain text mode
and this is a snippet of my source file:
int main(int argc, char **args)
{
plot->setTitle("Das ist ein Test");
}
int main(int argc, char **args)
{
QwtPlot *plot = new QwtPlot;
plot->setTitle("Das ist ein Test");
}
To copy to clipboard, switch view to plain text mode
During compiling I get this error:
..
/GrindingWheelWearSimulationTool
/lib
/shared
/libqwt.
so: undefined reference to `
QwtPlot::applyProperties(QString const
&)'../GrindingWheelWearSimulationTool/lib/shared/libqwt.so: undefined reference to `QwtPlot::grabProperties() const'
collect2: ld gab 1 als Ende-Status zurück
../GrindingWheelWearSimulationTool/lib/shared/libqwt.so: undefined reference to `QwtPlot::applyProperties(QString const&)'
../GrindingWheelWearSimulationTool/lib/shared/libqwt.so: undefined reference to `QwtPlot::grabProperties() const'
collect2: ld gab 1 als Ende-Status zurück
To copy to clipboard, switch view to plain text mode
The problem is independant of using the shared or the static library.
How can I solve this error?
Thanks
Micha
Bookmarks