home *** CD-ROM | disk | FTP | other *** search
/ Internet File Formats / InternetFileFormatsCD.bin / graphics / tiff / unix / archive.z / archive / text0015.txt < prev    next >
Encoding:
Text File  |  1995-09-20  |  1.9 KB  |  50 lines

  1. >Hello all,
  2. >
  3. >Apologies if this is a FAQ -- I looked in the archives and the sources 
  4. >mentioned there, but could not find what I was after...
  5.  
  6. I don't think it is a FAQ.
  7.  
  8. >1) Has anyone ported the latest libtiff to MSDOS, specifically using MSC 
  9. >7.0, 6.0 or the Visual C++ compiler?
  10.  
  11. Well I tried to see if it was possible. A major problem is that LibTIFF was
  12. written for UNIX computers with unlimited memory resources :-). A port to DOS
  13. will need some dos extender because huge amount of memory *may* be needed in
  14. order to read an image.
  15. You need to change the tif_msdos.c file so that all functions, i.e. file read
  16. and file write will work even if they have to write more than 64Kb data. The
  17. same goes for the memcpy, memset, memcmp, malloc, realloc and free functions
  18. (_TIFF prepended).
  19. Also you need to compile it so that all pointers are HUGE by default. The
  20. library may cast tdata_t pointers to pointers to any data type. So the
  21. default pointer type must be able to address more than 64Kb.
  22.  
  23. >2) Do you have a make file for one of the above, &/or notes on 16 vs 32 
  24. >bit issues and which routines might need to be omitted or reworked?
  25.  
  26. There is a makefile but it is old and I don't think it can be used for much.
  27. The porting problem is not in the makefile but the machine specific module.
  28.  
  29. >3) If anyone has comments on some other DOS C compiler (32 bit?) that eases 
  30. >any of the potential problems, I'd love to hear about that too.
  31.  
  32. I know that gcc for dos will work. I compiled the tools some time ago and
  33. they worked for me. One good thing about this compiler is that it is free
  34. (available from oak.oakland.edu in pub/msdos/djgpp)
  35.  
  36. >Much thanks,
  37. >
  38. >Mickey Feldman
  39. >Spatial Insights, Inc.  
  40.  
  41. You are welcome!
  42.  
  43. /Soren
  44. --
  45. Soren Pingel Dalsgaard, Computer Science Department  )\._..--....,---,
  46. Aarhus University, Ny Munkegade 116, DK-8000 Aarhus /,   _.. \   _.. ,`._ ,.
  47. DENMARK, email:pingel@daimi.aau.dk, ph:+45 89423284`._.-(___.'..(___.'`-.;.'
  48.  
  49.  
  50.