From: Alan W. I. <ir...@be...> - 2004-07-09 19:37:06
|
On 2004-07-08 13:22-0400 ger...@si... wrote: > > Hi, everybody: > > I have downloaded PLplot and succesfully installed it (sun4u sparc SunOS > 5.8) . I have run the fortran examples and they all work. I have read the > manual and familiarized my self with most commands. > > Now, how in the world do I actually compile my own fortran program that uses > plplot commands? Nowhere in the user's manual is there a compilation > example and the make files that compile the examples is HUGE and has a lot > of stuff that I don't understand. > > Does anyone have step-by-step instructions or a short, specific make file > for a single program? > > The directory where I installed PLplot from is : /usw/ude/plplot-5.3.1 > > The directory where I installed PLplot into is : /usw/ude/plplot First, put your installed tree bin first on your path, copy the installed examples to /tmp, build the executables, then run them. That is do the following: export PATH='/usw/ude/plplot/bin:'$PATH cd /tmp cp -a /usw/ude/plplot/share/plplot5.3.1/examples /tmp cd /tmp/examples make ./plplot-test.sh That last command should generate postscript results for a large number of examples if everything is working well on your system. Second, you will see in the results of the above make command (which is special to the install tree examples), the exact command required to build the installed fortran examples. It should be straightforward to generalize from that to your own fortran applications. HTH. Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the PLplot scientific plotting software package (plplot.org), the Yorick front-end to PLplot (yplot.sf.net), the Loads of Linux Links project (loll.sf.net), and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |