X-Received: by 10.224.215.194 with SMTP id hf2mr1879390qab.0.1369154983263; Tue, 21 May 2013 09:49:43 -0700 (PDT) X-Received: by 10.49.120.68 with SMTP id la4mr252976qeb.35.1369154983240; Tue, 21 May 2013 09:49:43 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!ch1no177734qab.0!news-out.google.com!y6ni50756qax.0!nntp.google.com!ch1no177731qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Tue, 21 May 2013 09:49:43 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=134.9.94.100; posting-account=bAA-GAoAAAB3iMTVI_elvUi5mmzl-1CR NNTP-Posting-Host: 134.9.94.100 References: <8f17c8c2-3703-4eb9-ba8b-907cd50127e1@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <948ccd81-37e8-4e63-b055-e5c62a7347b6@googlegroups.com> Subject: Re: "This copy of gnuplot cannot read png/gif/jpeg images" problem From: Rich Cook Injection-Date: Tue, 21 May 2013 16:49:43 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.graphics.apps.gnuplot:1847 On Tuesday, May 21, 2013 9:16:48 AM UTC-7, Rich Cook wrote: > On Tuesday, May 21, 2013 9:13:26 AM UTC-7, Rich Cook wrote: > > > On Monday, May 20, 2013 10:15:46 PM UTC-7, sfeam wrote: > > > > > > > Rich Cook wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hello, I am in charge of installing and maintaining gnuplot on our > > > > > > > > > > > > > > > clusters and am by no means an expert. Our user has reported the > > > > > > > > > > > > > > > following is occurring: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > gnuplot> plot 'test.png' binary filetype=png with rgbimage > > > > > > > > > > > > > > > This copy of gnuplot cannot read png/gif/jpeg images > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > After googling a bit, I have looked in the build log for PNG entrails > > > > > > > > > > > > > > > and see the following: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > checking for gdlib-config... /usr/bin/gdlib-config > > > > > > > > > > > > > > > checking for gdImageCreateTrueColor in -lgd... yes > > > > > > > > > > > > > > > checking gd.h usability... yes > > > > > > > > > > > > > > > checking gd.h presence... yes > > > > > > > > > > > > > > > checking for gd.h... yes > > > > > > > > > > > > > > > checking for gdImageGif in -lgd... yes > > > > > > > > > > > > > > > checking for gdImageGifAnimBegin in -lgd... yes > > > > > > > > > > > > > > > checking for gdImageJpeg in -lgd... yes > > > > > > > > > > > > > > > checking for gdImageStringFT in -lgd... yes > > > > > > > > > > > > > > > checking for gdImagePng in -lgd... yes > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > jpeg terminal: yes > > > > > > > > > > > > > > > gif terminal: yes (with animated gif) > > > > > > > > > > > > > > > png terminal: yes > > > > > > > > > > > > > > > (jpeg, gif and png terminals can use TTF fonts) > > > > > > > > > > > > > > > pdf terminal: no (requires libpdf) > > > > > > > > > > > > > > > ... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > cairo-based pdf and png terminals: yes > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I don';t understand why gnuplot thinks it cannot handle png files. > > > > > > > > > > > > > > > Can someone help me debug this one? Thanks. > > > > > > > > > > > > > > > > > > > > > > > > > > > > That seems odd. Please report the output from > > > > > > > > > > > > > > gnuplot -e "show version long" > > > > > > > > > > > > > > > > > > > > > > > > > > > > There should be an entry +GD_PNG > > > > > > > > > > > > > > If this is present then it indicates that indeed the program should > > > > > > > > > > > > > > be able to read png files. If it's missing then I guess something > > > > > > > > > > > > > > must have gone wrong with the configure+build at a later stage after > > > > > > > > > > > > > > it had already reported that it was going to include png support. > > > > > > > > > > > > > > You might have a look in config.log for error messages that mention > > > > > > > > > > > > > > libgd. But really the info you show is self-contradictory so I > > > > > > > > > > > > > > don't have a good guess at what could be wrong. > > > > > > > > > > > > > > > > > > > > > > > > > > > > Ethan > > > > > > > > > > > > The output seems confusing. There is no +GD_PNG. But there is -LIBGD. I'm not sure where in the config.log or build process it decided to disable the PNG support. > > > > > > > > > > > > > > > > > > rcook@rzgpu2 (lclocal.el6): gnuplot -e "show version long" > > > > > > > > > > > > G N U P L O T > > > > > > Version 4.6 patchlevel 1 last modified 2012-09-26 > > > > > > Build System: Linux x86_64 > > > > > > > > > > > > Copyright (C) 1986-1993, 1998, 2004, 2007-2012 > > > > > > Thomas Williams, Colin Kelley and many others > > > > > > > > > > > > gnuplot home: http://www.gnuplot.info > > > > > > faq, bugs, etc: type "help FAQ" > > > > > > immediate help: type "help" (plot window: hit 'h') > > > > > > Compile options: > > > > > > -READLINE +LIBREADLINE +HISTORY > > > > > > -BACKWARDS_COMPATIBILITY +BINARY_DATA > > > > > > -LIBGD > > > > > > -USE_CWDRC +X11 +X11_POLYGON +MULTIBYTE +X11_EXTERNAL +USE_MOUSE +HIDDEN3D_QUADTREE > > > > > > +DATASTRINGS +HISTOGRAMS +OBJECTS +STRINGVARS +MACROS +IMAGE +USER_LINETYPES +STATS > > > > > > > > > > > > GNUPLOT_DRIVER_DIR = "/usr/local/tools/gnuplot-4.6.1/libexec/gnuplot/4.6" > > > > > > GNUPLOT_PS_DIR = "/usr/local/tools/gnuplot-4.6.1/share/gnuplot/4.6/PostScript" > > > > > > HELPFILE = "/usr/local/tools/gnuplot-4.6.1/share/gnuplot/4.6/gnuplot.gih" > > > > I also see this in config.log: > > > > GDLIB_CONFIG='/usr/bin/gdlib-config' > > > > And so I tried this: > > > > rcook@rzgpu2 (dpkg-mkdeb.GMTn7fiHG9): /usr/bin/gdlib-config --features > > GD_XPM GD_JPEG GD_FONTCONFIG GD_FREETYPE GD_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON > > > > So the libgd that gnuplot is using has PNG support, I think. perhaps can someone who is NOT having this problem send me their build output and config.log and config.status? thanks