home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / xv221src / readme < prev    next >
Encoding:
Text File  |  1992-04-26  |  11.0 KB  |  229 lines

  1. Thank you for acquiring a copy of the XV distribution.  I hope you enjoy it.
  2.  
  3. If you like the program and decide to use it, *please* send me a short
  4. email message to that effect.  Be sure to mention the full name of your
  5. organization.  When our sponsors ask us 'what have you been doing', it 
  6. always looks good if we can come up with a nice long list of folks who are
  7. using code developed in the GRASP Lab.  Brownie points, y'see.
  8.  
  9. Also, if you find XV to be nifty, useful, generally 'cool', and of
  10. some value to you, your donation (not tax-deductable) would be greatly
  11. appreciated.  $10 (U.S.) is probably a fine amount to donate.  Folks
  12. who donate $25 and up will receive a Real Nice bound copy of the XV
  13. Manual.  It'll look lovely in your bookcase, on your coffee table, or
  14. mounted over your fireplace.  If you send $25 (or more!), please
  15. explicitly say whether or not you wish me to send you a copy of the
  16. manual.  I say this because some folks have sent $25, and not
  17. particularly wanted a manual.  Since it costs a fair amount of time
  18. and money to produce and mail out manuals, I'd just as soon keep the
  19. money (and time) if you don't really want a manual.
  20.  
  21. Please send all donations (or other correspondence) to:
  22.     John Bradley
  23.     1053 Floyd Terrace
  24.     Bryn Mawr, PA  19010
  25.  
  26. U.S. Funds only, please.  Checks should be made payable to 'John Bradley'.
  27.  
  28.  
  29. Installation
  30. ------------
  31. If you don't plan to use Imake, copy 'Makefile.std' (a regular old-style
  32. minimalist makefile) to 'Makefile'.  (Actually, this has already been done
  33. for you, as I prefer to just use 'make'.  This is mainly to let you know that
  34. if you ever *do* run Imake (and thereby trash the Makefile), there's a backup
  35. of the 'simple' Makefile in 'Makefile.std'.)
  36.  
  37. If you are building the program on a Sun running SunOS, a DECstation
  38. running Ultrix, you should be able to just type 'make' and have
  39. everything compile cleanly.  (On the DECstation, you'll see some
  40. warnings about some functions being too long to be optimized.  Ignore
  41. such messages.)  
  42.  
  43. On an IBM RS/6000, you can build cleanly with one minor tweak.  Replace
  44. tiff/Makefile with tiff/Makefile.aix, then type 'make' in the main XV 
  45. directory.
  46.  
  47. Otherwise, particularly if you're running on a SVR4-based system,
  48. you'll probably have to edit the Makefile.
  49.  
  50. Check the Makefile for the configuration option(s).  There are unfortunately
  51. quite a few these days, to support a number of different machines.  If
  52. you're on a SVR4-based machine, you'll probably need '-DSVR4' and '-DDIRENT'.
  53. Read the file for more specific info.
  54.  
  55. Otherwise, check the options in the Imakefile, and generate a Makefile
  56. using 'xmkmf' (or whatever).  Be sure to 'make depend' before building
  57. the program.
  58.  
  59. GCC USERS: It is important that the XV source and the contents of the JPEG and
  60. TIFF subdirectories all be compiled with the same compiler.  While this should
  61. normally be the case, as the value of the CC variable in the XV makefile is
  62. propigated to the makefiles in the subdirectories, it's something to keep in
  63. mind.  Also, be sure to specify '-traditional' when compiling with gcc, 
  64. otherwise it'll blow up on some code in the TIFF subdirectory.
  65.  
  66. GCC USERS: If you compile XV with gcc, and find XV crashing in the
  67. function 'vsprintf()', the gcc-specific include files on your system
  68. are barfified.  You should get your sysadmin-type to fix the
  69. gcc-include files (you can test it by compiling 'vargs.c', a simple
  70. varargs-verification program in the unsupt directory), or alternately,
  71. just use 'cc' instead.
  72.  
  73. HP USERS:  If you are running HP-UX 7.* , you should remove the '-O' compiler
  74. flag from the Makefile.  The optimizer supplied with that version of the OS 
  75. has been known to break code in xvgam.c (and possibly elsewhere, as well).  
  76. You'll know the optimizer has broken the code if pictures come out 'purple'.
  77.  
  78. DECSTATION USERS:  I've had a report that compiling 'xvevent.c' with the
  79. optimizer turned on (Ultrix 4.1, MIPS C compiler version 2.1) breaks the
  80. routine TrackPicValues().  I haven't been able to verify this behavior, but
  81. if you're building on this sort of system, you may want to turn optimization
  82. off.
  83.  
  84. IRIS/HP/Other SysV-based machines:  If you find XV 'going out to lunch' when
  85. you click on any of the buttons in the controls window, (or do any of a 
  86. number of other things), it is almost certainly a matter of configuring the 
  87. 'Timer()' function (in xvmisc.c) to correctly wait the requested number of
  88. milliseconds.  This is one of those things that doesn't seem to be very
  89. well nailed down in the different variants of Unix.  IF you experience
  90. problems, take a look at that function, and add an '#ifdef' for your machine 
  91. that makes it use the whatever the proper 'sleep for some number of 
  92. milliseconds' call on your machine.  (Could be poll(), usleep(), setitimer(),
  93. or possibly select(), and probably some others.)
  94.  
  95.  
  96. Once you've built the program succesfully, copy the programs 'xv' and
  97. 'bggen' and 'vdcomp' (if you want PDS/VICAR support) to wherever you
  98. like your binaries to live, and copy the files 'docs/xv.man' and
  99. 'docs/bggen.man' to the approprate man-page directory.  Don't forget
  100. to change the suffixes appropriately.  'imake' users can just say
  101. 'make install' and 'make install.man', with any luck.
  102.  
  103. Note: also included in this distribution (in the unsupt directory) is
  104. 'getweather', a dopey little shell script that you may want to run in
  105. a crontab entry every hour, on the half-hour or so.  It will
  106. automagically go out and get the current US weather map via anonymous
  107. ftp, and stick it in some standard place (normally /usr/local/lib/weather.gif).
  108.  
  109. Finally, print out a copy of docs/xvdocs.ps on a PostScript printer.  If you
  110. are unable to do so, and would like a printed copy of the manual, contact
  111. the author for details.  (Or donate $25!)
  112.  
  113. Note:  If you are using 'transcript 2.1' to drive your PostScript printer,
  114. you may run into a problem where the xvdocs.ps file prints in the wrong font
  115. (courier, or something, instead of helvetica).  This seems to be caused by
  116. 'psrv', which tries to reverse the pages of all PostScript files.  It fails
  117. on this PostScript file.  You (or the local system administrator) can 
  118. temporarily fix this by replacing the line:
  119.   'REVERSE = /pkg/lib/ps/psrv'
  120. with
  121.   'REVERSE = /bin/cat'
  122. in the file /pkg/lib/ps/psint.sh.  (Your pathnames may vary.)
  123.  
  124.  
  125. Caveats
  126. -------
  127.  
  128. XV has been developed on a Sun 4/280 running SunOS 4.1, using both the normal
  129. 'cc' and gcc-1.37 compilers.  There shouldn't be anything grotesque enough
  130. in the code to break any other compilers.  (Though 'optimizers' from HP are
  131. quite another story...)
  132.  
  133. The viewing environment has mainly been an IBM RS6000 with an 8-bit
  134. color display.  It has been tested with MWM, TWM, OLWM, TVTWM, and
  135. DXWM, in roughly that order of thoroughness.  (ie, I personally use
  136. MWM, and most of the folks in the GRASP Lab use TWM.)
  137.  
  138. I have personally compiled and tested it on the following systems: Sun
  139. 4 running SunOS 4.1, VAXstation 3500 running Ultrix 3.0, MicroVax II
  140. running Ultrix 2.0, DecStation 3100 running UWS 3.0, IBM RISC
  141. System/6000 running AIX 3.1.
  142.  
  143. It has displayed on the following systems:  IBM RT (8-bit color), Sun 3 
  144. (1-bit B/W), Sun 3 (8-bit grayscale), Sun 4 (1-bit B/W), MicroVax II (8-bit
  145. color), MicroVax II (4-bit grayscale), a variety of HPs (4-bit color, 6-bit 
  146. color, 8-bit color, and 24-bit color), and Visual, NCD, Tektronix, and
  147. HDS X terminals (1-bit B/W and 8-bit color).
  148.  
  149. 'vsprintf.c' has been included for the benefit of those on machines that
  150. don't have it.  (Basically, machines running 'vanilla' BSD 4.3)
  151.  
  152.  
  153. Bizarrities
  154. -----------
  155.  
  156. There are some known problems with running XV in conjunction with 'dxwm'.
  157. I'm hoping that that is now a defunct window manager, and that everybody who 
  158. was using that will switch to mwm.  Whether this hope is well-founded or not 
  159. is another matter entirely.  See the DXWM option in the Makefile/Imakefile.
  160.  
  161.  
  162. Problems with TWM and TVTWM
  163. ---------------------------
  164.  
  165. XV would appear to exercise a pair of bugs in the version of TWM in MIT's
  166. X11R4 Standard Distribution tape.  Perhaps they've been fixed by now.
  167.  
  168. Colormap Installation: under twm, if you have multiple XVs running,
  169. and each has their own colormap, sometimes the colormap doesn't get
  170. properly installed if you move the mouse directly from one XV to the
  171. other, quickly, so that it doesn't see the mouse go into the root
  172. window, or any other window.  If you move the mouse outside the window
  173. and move it back in, it SHOULD install the colormap correctly.
  174.  
  175. Colormap Installation: Note, if an alternate colormap is installed, it
  176. will ONLY be installed when the mouse is inside the IMAGE window.  It
  177. will not be installed when the mouse is in any other XV windows
  178. (except, possibly, the color editor window).  This is because I can't
  179. guarantee that the other windows will still have contrasting
  180. foreground/background colors when the alternate colormap is installed.
  181. It is assumed that if you put the mouse in a window, you will want to
  182. use that window, so you'd better be able to READ that window...
  183.  
  184. There's a bug in my version of TWM that creeps up if you have
  185. titlebars turned off.  Essentially, XV tells the window manager to
  186. make the window a certain size.  TWM (wrongly) adds enough room at the
  187. top to put its title bar there, but doesn't draw it, since titlebars
  188. are turned off.  XV gets back a ConfigureNotify event on the window
  189. with the new size, which is large by 20-odd pixels in height.  
  190.  
  191. There *used* to be a '-twmkludge' option in the previous version of xv
  192. to 'work around' this problem.  Unfortunately, this workaround introduced
  193. more problems than it solved, and has since been removed.  The current
  194. thinking is:  if you're using TWM, you should probably be using titlebars.
  195. If you insist on not having titlebars, and your TWM doesn't behave properly,
  196. you should fix TWM.  (It's a one-line fix, and I'll gladly send it to anybody
  197. who asks for it.)
  198.  
  199.  
  200. Copyright Notice
  201. ----------------
  202. Copyright 1989, 1990, 1991, 1992 by John Bradley 
  203.               and the University of Pennsylvania
  204.  
  205. Permission to use, copy, and distribute for non-commercial purposes,
  206. is hereby granted without fee, providing that the above copyright
  207. notice appear in all copies and that both the copyright notice and this
  208. permission notice appear in supporting documentation. 
  209.  
  210. The software may be modified for your own purposes, but modified versions
  211. may not be distributed without prior consent of the the author.
  212.  
  213. This software is provided "as is" without any express or implied warranty.
  214.  
  215. The author may be contacted via:
  216.     US Mail:   John Bradley
  217.                GRASP Lab, Room 312C
  218.                3401 Walnut St.  
  219.                Philadelphia, PA  19104
  220.  
  221.     Phone:     (215) 898-8813
  222.     EMail:     bradley@cis.upenn.edu       
  223.  
  224.  
  225. If you'd like to do something with XV that the copyright prohibits (such
  226. as include it in a commercial product), please contact the author (preferably
  227. through email).  Arrangements can probably be worked out.
  228.  
  229.