Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [SOLVED] Qt 5 build, linker error
QtWS25 Last Chance

[SOLVED] Qt 5 build, linker error

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 2.4k Views
  • 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.
  • C Offline
    C Offline
    chrisco
    wrote on last edited by
    #1

    I am building Qt5 from Git using the article on the Qt site:
    http://qt-project.org/wiki/Building_Qt_5_from_Git

    I get this linker error:

    .obj/debug-shared/qpnghandler.o: In function QPngHandlerPrivate::readPngHeader()': /home/coppensc/qt5/qtbase/src/gui/image/qpnghandler.cpp:538: undefined reference to png_set_longjmp_fn'
    .obj/debug-shared/qpnghandler.o: In function QPngHandlerPrivate::readPngImage(QImage*)': /home/coppensc/qt5/qtbase/src/gui/image/qpnghandler.cpp:564: undefined reference to png_set_longjmp_fn'
    .obj/debug-shared/qpnghandler.o: In function QPNGImageWriter::writeImage(QImage const&, int, QString const&, int, int)': /home/coppensc/qt5/qtbase/src/gui/image/qpnghandler.cpp:818: undefined reference to png_set_longjmp_fn# "

    Anybody have any ideas how to solve this?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tpham3783
      wrote on last edited by
      #2

      longjmp is only supported in libpng 1.5. You need to upgrade libpng to version 1.5

      1 Reply Last reply
      0
      • C Offline
        C Offline
        chrisco
        wrote on last edited by
        #3

        Thank you, that helped!

        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