www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/13/15:39:20

Xref: news2.mv.net comp.os.msdos.djgpp:1087
From: pnl AT lara DOT eng DOT sun DOT com (Paul Loewenstein)
Newsgroups: comp.os.msdos.djgpp
Subject: Ghostscript compiled
Date: 13 Feb 1996 17:55:49 GMT
Organization: Sun Microsystems Inc., Mountain View, CA
Lines: 42
Message-ID: <4fqjb5$rjt@engnews2.Eng.Sun.COM>
NNTP-Posting-Host: lara.eng.sun.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp


I have just compiled ghostscript 2.6.1 using djgpp V2.0.

It is a tribute to the quality of the code and the compiler that it
compiled, linked and ran first time except for the watcom-specific
hack for opening the printer that I inherited in the first version of
the (tiny) djgpp specific code.

I have only ported the tiff, pcx, gif and deskjet (monochrome).  I
have not dealt with handling the screen.  I do not intend to do so.
Other printing and file devices should pose no problem.

I discovered one library bug.  sscanf does not work properly when
the input string is exhausted before the format.

	sscanf ("300", "%fx%f", &xres, &yres);

returns -1 rather than 1.  This affects the reading of the ghostscript
command line.

The biggest struggle was getting the makefile to work.  I never got
the make from the v2.0 distribution to work.  I eventually used a
make of Borland origin, which worked well enough to get things
compiled.  An old v1.x distribution of make tried to work in that it
started issuing sensible commands, but of course bombed when it tried
to invoke v2 gcc.

I don't have time to investigate make further.  I can supply my
makefile to anyone who wishes to try fixing make.  Once make is fixed
I shall get the make procedure finalized and can then upload the extra
files for ghostscript and the binary.

Paul Loewenstein          Sun Microsystems Computer Co., Mailstop UMPK12-302
Staff Engineer            2550 Garcia Avenue, Mountain View, CA 94043-1100, USA
		          Tel: 415-786-6015  FAX: 415-568-9603
                          paul DOT loewenstein AT eng DOT sun DOT com
-- 
Paul Loewenstein          Sun Microsystems Computer Co., Mailstop UMPK12-302
Staff Engineer            2550 Garcia Avenue, Mountain View, CA 94043-1100, USA
		          Tel: 415-786-6015  FAX: 415-568-9603
                          paul DOT loewenstein AT eng DOT sun DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019