From: M. F. <mfr...@vi...> - 2001-04-26 00:59:39
|
On Wed, 25 Apr 2001, Alan W. Irwin wrote: > What was the output from configure? Your problem is almost sure to be due > to an old or non-existent header or library for one/some of libgd, libpng, > or zlib. --enable-png has no effect on configure if correct versions of > these necessary libraries/headers are not installed in the usual place. What > versions of all of those have you installed? Where have you installed them > on your system? Have you included the headers (usually in a package with > -dev or -devel in the name) with your installation of the libraries? What > Unix/Linux system do you have? Where is the output of the configure stored? THe config.log is empty. I am using Linux-Mandrake 7.2. I have sucessfully used gd 1.8.1 to draw on web pages by streaming to stdout in a "C" program. I now wanted to add labels, vertical and horizontal axises, and tick marks. Thats when I started looking at plplot. I thought I could plot on png images and send the output to stdout or to a temp file. The gd libraries are in /usr/lib The gd headers are in /usr/include The gd.c code was compiled by make into gd.o so it must have found the headers. [root@search plplot-5.0.3]# find . -name "gd.*" ./drivers/gd.c ./tmp/shared/gd.o ./tmp/gd.c ./tmp/gd.o The plplot doesnt recognise the "png" keyword or so the error says. [root@search plplot-5.0.3]# tmp/x01c | more Plplot library version: 5.0.3 Requested device png not available How can I get it to recognise plsdev("png"); correctly in my "C" code? Thanks. Martin > > I need these details in order to help you. > > Alan W. Irwin > > email: ir...@be... > phone: 250-727-2902 FAX: 250-721-7715 > snail-mail: > Dr. Alan W. Irwin > Department of Physics and Astronomy, > University of Victoria, P.O. Box 3055, > Victoria, British Columbia, Canada, V8W 3P6 > __________________________ > > Linux-powered astrophysics > __________________________ > > On Wed, 25 Apr 2001, M. Frankford wrote: > > > > > I am trying to use the plplot package add dynamic plots of ballistic > > data on a webpage. To do this I need to write plots to png files from a > > :"C" cgi program. I have done this using the gd library. Now I wanted to > > add axis tick marks and the like using the plplot lib. I started by > > modifing the x01c.c program by adding > > > > /* Initialize plplot */ > > plsdev("png"); > > plsfnam("tst.png"); > > plinit(); > > > > When I run it it returned the following error > > > > [root@search plplot-5.0.3]# tmp/x01c | more > > Plplot library version: 5.0.3 > > Requested device png not available > > > > I ran configure as > > sh configure --enable-png > > to make sure prior to make. > > What else do I need to do to plot to png files. Also is it possible to > > send the png output to stdout rather than a file? > > > > Thanks. > > > > Martin > > > > > > > > _______________________________________________ > > Plplot-general mailing list > > Plp...@pl... > > http://lists.sourceforge.net/lists/listinfo/plplot-general > > > > > _______________________________________________ > Plplot-general mailing list > Plp...@pl... > http://lists.sourceforge.net/lists/listinfo/plplot-general > |