Mail Archives: djgpp/2000/06/14/09:15:38
Clive Jenkins <clive DOT jenkins AT celco DOT co DOT uk> wrote:
> Can anybody offer a DJGPP-compiled port of the PBM (Portable Bit Map)
> Utilities that come with X-Windows?
I have one sitting at home. But it's a very old one (made with DJGPP
1.10, or so), so the source may not work as-is, any more. I think it
should be a whole lot easier with today's DJGPP. With a bit of luck,
it could be as simple as just editing the makefile a bit and typing
'make', if you have a rather complete set of DJGPP/GNU tools
installed.
To give some background: the programs are built in a somewhat strange
way to keep the whole package at a manageable installed size. This was
necessary back then, partly due to the lack of dynamic libraries in
DOS, partly due to disk space limitations. Each category of tools
(pbm, pgm, ppm and pnm series) is compiled into a single, large
executable that takes the name of the actual tool as its first command
line parameter. A truckload of batchfiles substitutes the normal
executables. But you cannot pipe stuff into batchfiles, usually, so
the usual pipes of PBM utitily calls passing data from one to the next
didn't work. Later, I found out that .bat files compiled by 'bat2exec'
do support redirection, so I compiled all of them, and achieved a
nicely working PBMplus package.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -