Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    [SOLVED] Qt 5 build, linker error

    Installation and Deployment
    2
    3
    2195
    Loading More Posts
    • 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
      chrisco last edited by

      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 Reply Quote 0
      • T
        tpham3783 last edited by

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

        1 Reply Last reply Reply Quote 0
        • C
          chrisco last edited by

          Thank you, that helped!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post