From: M. F. <mfr...@vi...> - 2001-04-25 19:18:01
|
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 |
From: Dan L. <dle...@ip...> - 2001-04-25 19:28:22
|
M. Frankford, I'm quoting from Allen Irwin's description of the requirements for png in his email of 3/29/01" [Plplot-general] Version 5.0.3 released': (1) General PNG and JPEG drivers have been added which are based on the libgd library (available for Unix/Linux/Mac/Windows). These drivers encourage the use of PLplot for web applications because the PNG and JPEG formats are so favoured for the web. We classify these two drivers as late-beta and we are sufficiently confident of them that we configure them by default if you have the appropriate headers and libraries installed from libgd, libpng, libjpeg, and zlib. (You need at least libgd-1.7 to obtain good PNG images, and at least libgd-1.8 to obtain JPEG images under PLplot.) For more information on libgd and the additional required libraries please visit http://www.boutell.com/gd/. Perhaps your system doesn't have all the appropriate headers installed, then even though you have enabled png configure will not enable it. Dan "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 -- ==================================================== Dan Leonard Computer Specialist (Programmer) Smithsonian Astrophysical Observatory (617) 496-7075 |
From: Alan W. I. <ir...@be...> - 2001-04-25 19:51:50
|
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? 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 > |
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 > |
From: Alan W. I. <ir...@be...> - 2001-04-26 06:12:14
|
On Wed, 25 Apr 2001, M. Frankford wrote: > 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? > > I am using Linux-Mandrake 7.2. I have sucessfully used gd 1.8.1 to.... Thanks for that version information. On Mandrake 7.2 make sure you have installed the development versions of the libgd, libpng, and zlib packages. I don't have access to 7.2, but to give you some guidance these packages are called libgd1-devel-1.8.4-3mdk.i586.rpm, libpng2-devel-1.0.9-1mdk.i586.rpm, and zlib1-devel-1.1.3-15mdk.i586.rpm for Mandrake 8.0 (Of course you will also need the corresponding 3 packages without -devel in their names.) I suspect some of these 6 packages (7.2 versions!) are currently not installed on your system, and rectification of this will solve your problem. > Where is the output of the configure stored? It is just written to the screen (as stderr I believe) so just cut and paste that into your e-mail to me if installation of the required packages doesn't solve your problem. > The gd.c code was compiled by make into gd.o so it must have found the > headers. That's a reasonable inference, but it turns out not to be correct. If configure doesn't find the essential headers and libraries, then it disables png, and gd.c becomes essentially an empty file through #define's. Compilation of this file produces a vacuous gd.o. We may be changing this configuration method in the next version of PLplot. 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 __________________________ |
From: M. F. <mfr...@vi...> - 2001-04-26 16:07:39
|
I had previously installed gd-1.8.1-4mdk.i586.rpm gd-devel-1.8.1-4mdk.i586.rpm gd-utils-1.8.1-4mdk.i586.rpm I went to rpmfind.net looking for the gd devel you recommended. It was not to be found. Where can I find the rpms you recommended? Thanks. Martin On Wed, 25 Apr 2001, Alan W. Irwin wrote: > On Wed, 25 Apr 2001, M. Frankford wrote: > > > 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? > > > > > I am using Linux-Mandrake 7.2. I have sucessfully used gd 1.8.1 to.... > > Thanks for that version information. On Mandrake 7.2 make sure you have > installed the development versions of the libgd, libpng, and zlib packages. > I don't have access to 7.2, but to give you some guidance these packages are > called libgd1-devel-1.8.4-3mdk.i586.rpm, libpng2-devel-1.0.9-1mdk.i586.rpm, > and zlib1-devel-1.1.3-15mdk.i586.rpm for Mandrake 8.0 (Of course you will > also need the corresponding 3 packages without -devel in their names.) > > I suspect some of these 6 packages (7.2 versions!) are currently not > installed on your system, and rectification of this will solve your problem. > > > Where is the output of the configure stored? > > It is just written to the screen (as stderr I believe) so just cut and paste > that into your e-mail to me if installation of the required packages doesn't > solve your problem. > > > The gd.c code was compiled by make into gd.o so it must have found the > > headers. > > That's a reasonable inference, but it turns out not to be correct. If > configure doesn't find the essential headers and libraries, then it disables > png, and gd.c becomes essentially an empty file through #define's. > Compilation of this file produces a vacuous gd.o. We may be changing this > configuration method in the next version of PLplot. > > 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 > __________________________ > > > _______________________________________________ > Plplot-general mailing list > Plp...@pl... > http://lists.sourceforge.net/lists/listinfo/plplot-general > |