Results 1 to 4 of 4

Thread: qwt_plot_svgitem Object File not Created

  1. #1
    Join Date
    Nov 2019
    Posts
    4
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Post 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
    Last edited by caggiadj; 20th November 2019 at 22:52.

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,318
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default 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

  3. #3
    Join Date
    Nov 2019
    Posts
    4
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default 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

  4. #4
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,318
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default 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

Similar Threads

  1. QT Object created in a private cannot be accessed
    By aquanaut in forum General Programming
    Replies: 13
    Last Post: 5th March 2015, 11:01
  2. Access Object Created by javascript in qml
    By alizadeh91 in forum Qt Quick
    Replies: 6
    Last Post: 23rd February 2012, 16:06
  3. QtScript. How to add created object to script?
    By sergey_85 in forum Qt Programming
    Replies: 1
    Last Post: 18th February 2010, 15:24
  4. Replies: 4
    Last Post: 9th February 2010, 18:08
  5. Replies: 2
    Last Post: 20th September 2009, 03:52

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.