sddsplot libpng issue

Moderators: cyao, soliday

Post Reply
duanz
Posts: 50
Joined: 30 May 2009, 01:50

sddsplot libpng issue

Post by duanz » 25 Oct 2017, 21:38

Hi,

I'm facing an annoying problem with sddsplot. I built SDDS 3.5.1 and ELEGANT 33.1.1 from source on a RHEL 6.5 server, everything works perfectly except when I want to save a plot using the png device. To be more specific, when I run the following command

sddsplot -col=s,betax twiss.twi -device=png -output=twiss.png

I get the following warning and the plot is not saved successfully.

libpng warning: Application built with libpng-1.2.49 but running with 1.6.10
gd-png error: cannot allocate libpng main struct

It would be highly appreciated if anyone can help on this issue!

Best,

Zhe

soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: sddsplot libpng issue

Post by soliday » 26 Oct 2017, 10:19

The SDDS/png source code that is included is version 1.6.10. But a build on RHEL6 should not be compiling this directory. Instead make sure that you have to following packages installed:
libpng
libpng-devel
gd
gd-devel

Then go to epics/extensions/lib/linux-x86_64/ and delete libgd* and libpng*
Then go back to epics/extensions/src/SDDS and run "make clean all"

While you are at it, make sure that zlib-devel, libtiff-devel, lapack-devel, blas-devel, openmotif-devel, libXaw-devel, ncurses-devel, readline-devel, libXt-devel and libXp-devel are also installed.

duanz
Posts: 50
Joined: 30 May 2009, 01:50

Re: sddsplot libpng issue

Post by duanz » 26 Oct 2017, 11:58

The problem is solved now, thank you!

Best,

Zhe

Post Reply