home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3258 < prev    next >
Encoding:
Internet Message Format  |  1991-04-30  |  5.6 KB

  1. From: mcastle@mcs213e.cs.umr.edu (Mike Castle {Nexus})
  2. Newsgroups: alt.sources
  3. Subject: PBMPlus on MS-DOS patches (ADDENDUM)
  4. Message-ID: <2703@umriscc.isc.umr.edu>
  5. Date: 29 Apr 91 21:47:12 GMT
  6.  
  7.  
  8. It was pointed out to me that I had forgotten to indicate what release of
  9. PBMPlus my patches should be applied to.  Sorry.
  10.  
  11. Apply the patches to the  BETA TEST distribution of 05feb91 of pbmplus.
  12.  
  13. Also, I went ahead and extracted my README.DOS file.  
  14.  
  15. ----------------------------------
  16.  
  17.  This is my first release of my port of the pbmplus package to DOS.
  18.  It was done using DJ Delorie's DOS port of GCC.  You REQUIRE a 386 or
  19.  better machine.  387 optional for parts, and those parts should tell you
  20.  when you don't have one.  See the GCC package for more details.  Also, 
  21.  lots of ram and disk space help.  See below for more information.
  22.  
  23.  The gcc package can be obtained from:  grape.ecs.clarkson.edu 
  24.  (I believe it can also be found on garbo.uwase.fi, and probably others.  
  25.  Check archie).
  26.  
  27.  The PBMPlus package can be obtained from ftp.ee.lbl.gov:pbmplus.tar.Z and
  28.  export.lcs.mit.edu:contrib/pmbplus.tar.Z
  29.  
  30.  I believe this package works for the most part.
  31.  
  32.  Parts I know don't work:
  33.  GIFTOPPM  -- this may be a flaw in GCC malloc, I don't know.
  34.  PBMTOGEM  -- this is a little-endian/big-endian problem *sigh*    
  35.            at least GEMTOPBM works....
  36.  PNMGAMMA  -- all 0's get mapped to 256, even with correction of 1.0.  Go
  37.               figure.  Fix, make an appropriate file of all 1's and run
  38.               through PNMARITH (well, I think this will work).
  39.    
  40.  None of the TIFF stuff.  Can't get the damn library to link in.  I think 
  41.  this is just pilot error on my part with using 'ld'  
  42.  
  43.  This is the first real project I've worked on in C, and I'm pretty much 
  44.  clueless.  :->    It doesn't take a genius to go through and change printf 
  45.  to fprintf(ofp , just someone with nothing better to do, and an editor 
  46.  that supports macros well.     
  47.  
  48.  If anyone finds any other problems, please get in touch with me.  I 
  49.  won't have net access over the summer (I'm looking into it, but no luck
  50.  yet, and I can't afford lond-distance phone calls on a regular basis).
  51.  If you find a problem, I would be interested in a copy of the input file
  52.  in the original format, and one in GIF, TARGA, RAW, or any format that 
  53.  CSHOW can handle.  I would also like copies of any other patches you may
  54.  develop. 
  55.   
  56.  You can either send me disks (with self-addressed stamped envelope to 
  57.  mail them back with, hopefully with fixes :-), or send me mail, and I'll
  58.  send disks with an SASE to you.
  59.  
  60.  My address is:
  61.          Mike Castle
  62.          R 2 Bx 69
  63.          Troy, MO 63379 
  64.          USA        
  65.  
  66.  
  67.  EXEs:  If you are reading this from the distribution through 
  68.  comp.binaries.ibm.pc, then most likely you have all (or most) of the 
  69.  .exe files.  The file GO32.EXE _MUST_ be in you path.  This is the DJ's 
  70.  DOS extender, and is needed to get the other programs to work.    I used 
  71.  just the stub that calls the extender rather than the actual extender 
  72.  when I created the actuall exe files in order to save space.  The entire
  73.  package would have been about twice the size had I built them with the 
  74.  extender.  If you want to change that, get the original PBMPlus source,
  75.  apply my patches, and then rebuild (see PATCHes: below).
  76.  
  77.  PATCHes:  As will be posted to alt.sources, my patches include several 
  78.  utility batch files to (hopefully) aid making them.  They are:
  79.      MAKEALL.BAT    This assumes using GNUMAKE (available on Simtel20, et al)    
  80.      MAKEEXE.BAT    This builds the actuall executables from the 32-bit 
  81.                        code produced by GCC.  Edit it to fit your system, 
  82.                 and desires.
  83.      DELP?M.BAT     These exist in each directory, and just deletes all 
  84.                 of the a.out files from GCC.  Useful for cleaning up.
  85.      EXEP?M.BAT     Also in each directory.    Called by MAKEEXE.BAT, they
  86.                 perform the actuall 'copy /b stub.exe+xxxxx xxxxx.eexe'
  87.  
  88.  The makefile.pc in each of pbm, pgm, ppm, and pnm directories might work
  89.  with other make's.  I don't know.  But it should still provide a good 
  90.  indication of how to procede.
  91.  
  92.  If you have unix-like utilities for DOS (rm, mv, etc), you can probably 
  93.  use the original makefiles.  Just watch out for long command lines in 
  94.  the pnm makefile.       
  95.  
  96.  These patches *should* allow compilation on a unix machine resulting in 
  97.  identical executables to the official PBMPlus package (well, in theory, 
  98.  it should).
  99.  
  100.  CAVEATs: This package is SLOW.    This is due to the fact that when you do 
  101.  redirection through DOS (ala tgatoppm my.tga | ppmquant 256 | ppmtogif),
  102.  DOS has to create tempory output/input files for redirection purposes.    
  103.  Hazards of a single-tasking OS.  To determine the amount of diskspace 
  104.  you need, do this:
  105.    disk_space = height * width * 12
  106.         
  107.  for 1 redirection ( pcxtoppm my.pcx | ppmtogif ).
  108.  
  109.  Multiply by 2 for more than 1 redirection.    
  110.  
  111.  DEVIATIONS:  Since DOS doens't like certain characters to go through 
  112.  stdin/stdout, I changed all p?mto???.exe's to produce an output file 
  113.  instead of using redirection as you would on a unix system.  If used 
  114.  directly, like 'ppmtogif my.ppm' the output file will be my.gif.  If 
  115.  used with redirection, the outfile will be noname.gif.    The extensions 
  116.  were chosen, for the most part, from the last three letters of the 
  117.  p?mtoxxx utility.  Some were changed, some should probably be changed.     
  118.  
  119.  Sorry for the rambling nature of this doc, just writing things down as I 
  120.  think of them.    
  121.  
  122.  Enjoy the package, bugs and all.
  123.  
  124.  Mike Castle
  125. -- 
  126. Mike Castle (Nexus)  s087891@umrvma.umr.edu  or  mcastle@mcs213k.cs.umr.edu
  127.  
  128. Feel lonely?  Want someone to send you e-mail?  Just post to *.test with a 
  129. Reply-To: field, and watch your mailbox explode!!
  130.