[SOLVED] Qt 5 build, linker error



  • 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 topng_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 topng_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 topng_set_longjmp_fn# "

    Anybody have any ideas how to solve this?



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



  • Thank you, that helped!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.