home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / graphic / qrt / os2port.doc < prev    next >
Text File  |  1990-02-02  |  3KB  |  78 lines

  1. Compiling QRT using Microsoft C 5.1 under OS/2 and MS-DOS
  2. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  3.  
  4. The enclosed file OS2F_QRT.EXE is an OS/2 Family Application version of
  5. the QRT program.  This means the program was compiled so it would run
  6. under both OS/2 and MS-DOS.   It works on all 80x86 processors and also
  7. takes advantage of the 80x87 math coprocessor if it is available, and
  8. emulates it if not. This document describes what has to be done to
  9. compile the program using MSC version 5.1.
  10.  
  11. NOTE: I did not have the source code for the QRT2GIF program, so it has
  12. NOT been converted.  You must still run this program under MS-DOS.
  13.  
  14. The QRT program works very well in the background under OS/2.  For
  15. example, you can enter the command:
  16.  
  17.   DETACH QRT -xres 320 -yres 200 -aspect 1.3 < filename
  18.  
  19. My IBM PS/2 model 60 with an 80287 processor calculated the TABLE image
  20. at this resolution in one hour, thirty seven minutes using this command.
  21. (with all other tasks shut down in OS/2).
  22.  
  23. NOTICE: 
  24. The enclosed QRT source code was not modified by me in any way.
  25. Instead, I am including this set of instructions that tell how to
  26. modify the official source code.  I do not believe in modifying
  27. someones work and then distributing it without the permission of the
  28. author.
  29.  
  30.  
  31. 1) File Names
  32. ~~~~~~~~~~~~~
  33.   The first problem encountered was the file names.  Some of the file
  34. names were too long for MS-DOS's limitations of 8 characters in front
  35. of the decimal and 3 characters after the decimal.  Some of the files
  36. had to be renamed to fit the MS-DOS format.
  37.  
  38. 2) The Makefile
  39. ~~~~~~~~~~~~~~~
  40.   I modified the existing unix makefile and created the MSC makefile. 
  41. There was a strange bug in the make program in that it wouldn't find
  42. one file (intersect.c) even after I renamed it intersec.c to fit in the
  43. MS-DOS file name limitations. I found if I manually compiled this file
  44. and then ran make, everything worked ok.
  45.  
  46.   Basically all I did to the unix makefile was rename the files to
  47. MS-DOS compatible file names and add the MSC compiler options to link
  48. in the large memory model and set the stack to E000h (I just picked a
  49. large number when I got a stack error, it may be a way too large but it
  50. works).  I also changed the name of the object files from "*.o" to
  51. "*.obj" to match the MSC naming convention. This file is included as
  52. MAKEFILE.MSC in this package.  
  53.  
  54.  
  55. 3) The source code
  56. ~~~~~~~~~~~~~~~~~~
  57.   The program SHOULD compile with no problems under MSC 5.1.
  58. Unfortunately, a bug in the MSC 5.1 compiler forced me to change one
  59. line in the file PATTERN.C.  The file MSC_PATT.C in this package is a
  60. replacement for the PATTERN.C file in the official distribution.
  61.  
  62.  
  63. 4) Binding the program
  64. ~~~~~~~~~~~~~~~~~~~~~~
  65. After compiling the program (under OS/2) I ran the BIND program to turn
  66. it into a family application that will run under both OS/2 and MS-DOS. 
  67.  
  68.  
  69. 5) More Information
  70. ~~~~~~~~~~~~~~~~~~~
  71. For more information on the OS/2 (MSC) port, you can contact me at:
  72.  
  73. Kevin Lowey
  74. Fidonet:   1:140/43
  75. Bitnet:    Lowey@Sask.Bitnet
  76. UUCP:      lowey@dvinci.uucp
  77. Internet:  Lowey@SASK.USask.CA 
  78.