qwt_plot_svgitem Object File not Created
Howdy Y'all,
I recently added a QwtPlotSvgItem to my code base. I've declared and instantiated everything correctly but my makefile spits out
undefined reference to `QwtPlotSvgItem::QwtPlotSvgItem(QwtText const&)'
The problem is the qwt_plot_svgitem object file isn't compiling. I'm in a Linux environment, Redhat. I've tried putting in svg and xml in a couple of the .pro without any difference. A previous post from 2009 had something with this file but they were in windows. What should I add to compile this file?
I'm running Qwt 6.1.3
Sincerely,
Me
Re: qwt_plot_svgitem Object File not Created
Probably you have built Qwt without SVG support - the reason for this might be that your Qt libs have been built without SVG support.
Do you see a warning when calling qmake for qwt/src.pro ?
Uwe
Re: qwt_plot_svgitem Object File not Created
Hey Uwe,
Your comment pointed me where to look at the qwtconfig.pri file. I didn't see a warning related to SVG but I did uncomment the line
QWT_CONFIG += QwtSvg
and the qwt+plot_svgitem.o file is thankfully created. However now QSvgGenerator isn't compiling leading to errors in the qwt files reliant on it. I have tried adding QT += svg to a couple points in the src.pro file and the qwt.pro like in the pervasive examples online without success. Is there secondary place like in qwtconfig.pri where SVGGenerator would be implemented?
Sincerely
Me
Re: qwt_plot_svgitem Object File not Created
The QSvg classes are part of Qt and your problem seems to be, that your version of Qt has not been built with SVG support. So if you want to use the SVG classes you have to rebuild Qt.
Uwe