Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] Undefined symbols: QSvgRenderer::render(QPainter*)

[Solved] Undefined symbols: QSvgRenderer::render(QPainter*)

Scheduled Pinned Locked Moved General and Desktop
4 Posts 1 Posters 4.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DropDeadCreative
    wrote on last edited by
    #1

    Hi there. I'm trying to compile an app on Mac OS X 10.4 using QT 4.6.3.

    I get the error:

    Undefined symbols:
    QSvgRenderer::load(QByteArray const&)
    QSvgRenderer::render(QPainter*)
    QSvgRenderer::QSvgRenderer(QObject*)
    QSvgRenderer::isValid() const
    QSvgRenderer::viewBox() const

    When configuring QT I set the following image formats: -qt-libpng -qt-libmng -qt-libtiff -qt-libjpeg

    So, am I getting this because I didn't include -qt-libsvg? libqsvg.a wound up in /usr/local/Trolltech/Qt-4.6.3/plugins/imageformats however.

    Any advice is greatly appreciated. Thanks.

    EDIT: Also, can I now, after having configured and built QT somehow add svg, gif etc.. to my current build without having to totally rebuild Qt?

    1 Reply Last reply
    0
    • ? This user is from outside of this forum
      ? This user is from outside of this forum
      Guest
      wrote on last edited by
      #2

      In your app, do you have this defined in your .pro file?

      QT += svg

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DropDeadCreative
        wrote on last edited by
        #3

        This was resolved. Not sure how though, I simply unpacked the sources to my app and built again, compiled with no errors this time. Go figure.

        Thank you for your reply!

        1 Reply Last reply
        0
        • ? This user is from outside of this forum
          ? This user is from outside of this forum
          Guest
          wrote on last edited by
          #4

          good to hear it :)

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved