Ben, I had been using the system libpng version 1.2.52, but it appears `png_set_longjmp_fn` was not introduced until 1.6, so I tried building libpng 1.6.18 from source last night, which then allows Paraview to continue building with qt enabled, however, when running the built version, I get:
libpng warning: Application built with libpng-1.4.8 but running with 1.6.18 So it appears that there is some other version of libpng (maybe bundled in the superbuild?) that it was using to build. Should I turn off use_system_png? Turn off ENABLE_png? Something else? Thanks, Anthony ________________________________________ From: Ben Boeckel <[email protected]> Sent: Monday, September 14, 2015 10:12 AM To: Anthony Crognale Cc: [email protected] Subject: Re: [Paraview] /usr/bin/paraview not packaged with CPack in Paraview 4.3.1 Superbuild On Mon, Sep 14, 2015 at 02:00:22 +0000, Anthony Crognale wrote: > After enabling qt and recompiling after a clean, I receive the following > error: "make clean" isn't really reliable in a superbuild. I usually do "rm -rf */"[1] in the build tree to keep the cache but kill any state related to the build. > .obj/release-shared/qpnghandler.o: In function > `QPngHandlerPrivate::readPngHeader()': > qpnghandler.cpp:(.text+0xb4f): undefined reference to `png_set_longjmp_fn' > .obj/release-shared/qpnghandler.o: In function > `QPngHandlerPrivate::readPngImage(QImage*)': > qpnghandler.cpp:(.text+0xdbd): undefined reference to `png_set_longjmp_fn' > .obj/release-shared/qpnghandler.o: In function > `QPNGImageWriter::writeImage(QImage const&, int, QString const&, int, int)': > qpnghandler.cpp:(.text+0x1a0c): undefined reference to `png_set_longjmp_fn' > collect2: error: ld returned 1 exit status > make[4]: *** [../../lib/libQtGui.so.4.8.6] Error 1 > Makefile:1073: recipe for target '../../lib/libQtGui.so.4.8.6' failed > make[3]: *** [sub-gui-make_default-ordered] Error 2 > Makefile:382: recipe for target 'sub-gui-make_default-ordered' failed > CMake Error at /home/acrognale/paraview/build/pv-qt-build.cmake:26 (message): > > Any thoughts? Are you using a system libpng? What version is it? --Ben [1]More surgical is "rm -rf install/ */src/*-stamp/*-install", but this still has cases where it is insufficient. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
