[Paraview] /usr/bin/paraview not packaged with CPack in Paraview 4.3.1 Superbuild

Anthony Crognale Anthony.Crognale at spacex.com
Mon Sep 14 13:49:26 EDT 2015


Follow up,

Performing build step for 'qt'
LD_LIBRARY_PATH = /home/acrognale/paraview/build/install/lib::
make[3]: warning: -jN forced in submake: disabling jobserver mode.
/usr/bin/ld: cannot find -lpng
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):
  Failed!!!

After removing libpng 1.2 (Debian version), libpng 1.6.18 (version I compiled from source), and making sure USE_SYSTEM_png=OFF and ENABLE_png=ON were both set.

Thoughts?

Thanks,
Anthony
________________________________________
From: Ben Boeckel <ben.boeckel at kitware.com>
Sent: Monday, September 14, 2015 11:29 AM
To: Anthony Crognale
Cc: paraview at paraview.org
Subject: Re: [Paraview] /usr/bin/paraview not packaged with CPack in Paraview 4.3.1 Superbuild

On Mon, Sep 14, 2015 at 14:15:26 +0000, Anthony Crognale wrote:
> 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.

Yeah, it looks like it built against the superbuild's libpng and running
against the one you grabbed. Other than a compiler and things like libc
or OpenGL, the superbuild *should* be providing everything it needs (and
it is not regularly tested against other external dependency versions).

> Should I turn off use_system_png? Turn off ENABLE_png? Something else?

Using the superbuild-provided png would probably be best
(-DUSE_SYSTEM_png=OFF -DENABLE_png=ON). However, it seems that removing
the 1.6.18 libpng should fix the warning.

--Ben



More information about the ParaView mailing list