Path: utzoo!news-server.csri.toronto.edu!rutgers!usc!jarthur!nntp-server.caltech.edu!eeyore!madler From: madler@eeyore.caltech.edu (Mark Adler) Newsgroups: comp.sys.next Subject: Re: GNUPLOT on NeXT - Help request Summary: how to compile Gnuplot 2.02 under NeXTstep 2.0 and 2.1 Message-ID: <1991Mar16.174743.14241@nntp-server.caltech.edu> Date: 16 Mar 91 17:47:43 GMT References: <7778@jhunix.HCF.JHU.EDU> <24436@hydra.gatech.EDU> Sender: news@nntp-server.caltech.edu Distribution: usa Organization: California Institute of Technology, Pasadena Lines: 52 To compile GNUPLOT 2.02 (I got mine from duke.cs.duke.edu) on the NeXT, copy makefile.unx to Makefile, and make the following changes: 1. lines 6, 8, 11 of Makefile: optionally change destination directories. 2. line 28 of Makefile: change "gamma" to "lgamma" (modern name on NeXT). 3. line 28 of Makefile: delete "#-gx #" (enable optimization). 4. line 28 of Makefile: add " -bsd" (strict BSD compilation). 5. line 34 of Makefile: delete "-lplot" (no plot support on NeXT). 6. line 34 of Makefile: add " -object -s" (smaller object file). 6. line 44 of Makefile: delete "-DUNIXPLOT" (no plot support on NeXT). 7. Line 102 of plot.h: change "HUGE" to "1e308" (only on version 2.0 of the NeXT operating system--this is fixed in 2.1). Then do a "make install", possibly as root if installing in public directories. Then you can use the terminal types postscript, psbig, epsf1, and epsf2 for producing PostScript pages or Encapsulated PostScript plots. I have also added some types of my own by adding to the files term/post.trm and term.c to provide for different fonts. For example, you can add the type epsf3 by adding: ,{"epsf3", "Encapsulated Postscript graphics language, Times font, 11pt", PS_XMAX, PS_YMAX, PS_VCHAR2, PS_HCHAR2, PS_VTIC, PS_HTIC, EPSF3_init, EPSF_reset, EPSF_text, null_scale, EPSF_graphics, PS_move, PS_vector, PS_linetype, PS_put_text, PS_text_angle, PS_justify_text, PS_point, do_arrow} to term.c after line 788 (which is just the definition for epsf2 with the 2's changed to 3's and a different description), and adding: EPSF3_init() { ps_big = TRUE; ps_font = "Times-Roman"; } to term/post.trm after line 131 (which is just EPSF2_init() modfied). As a test, give the follwing commands to gnuplot: set terminal epsf3 set output "sinc.eps" plot [-20:20] sin(x)/x quit and then do "open sinc.eps" to see the plot in Preview. Mark Adler madler@pooh.caltech.edu