INSTALL 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. Building is very easy.
  2. ALL PLATFORMS:
  3. Please understand your rights and mine: read the text file LICENSE in the root
  4. of the source tree. If you can't abide by it, delete this source tree now.
  5. The best documentation for the PhysicsFS API is physfs.h. It is VERY heavily
  6. commented, and makes an excellent, in-depth reference to all the functions.
  7. UNIX:
  8. Edit "Makefile", and follow the instructions. The defaults are probably okay
  9. for general purposes, but give it a once over to make sure. If you don't have
  10. zLib on your system, you'll need to disable ZIP support.
  11. run "make"
  12. That's it. The library will be sitting in a new directory called "bin".
  13. Run "make install" to install the library for use on your system.
  14. WIN32:
  15. Download http://icculus.org/physfs/downloads/physfs-win32-support.zip, and
  16. unpack in the root of the source directory, preserving directory names. If you
  17. did it correctly, there should be a directory named "zlibwin32" in the same
  18. directory as "physfs.h". This archive has Visual C project/workspace files and
  19. the code needed for zipfile support in PhysicsFS, since most Windows boxes
  20. don't have zlib preinstalled.
  21. After that, if building with CygWin, follow the Unix instructions, above. If
  22. you're using Visual C, point the IDE at physfs.dsw, and build. If you're using
  23. any other compiler, send me a patch when you get it working. :)
  24. If someone is willing to maintain prebuilt PhysicsFS DLLs, I'd like to hear
  25. from you; send an email to icculus@clutteredmind.org.
  26. MACOS 8/9:
  27. Download http://icculus.org/physfs/downloads/mac_classic_support.sit and
  28. unpack it in the root of the physfs folder. It should produce a folder
  29. called "Mac Classic Support" that has CodeWarrior 6 project files and a
  30. copy of zlib for zipfile support.
  31. If someone is willing to maintain prebuilt PhysicsFS Shared Libraries for
  32. the Mac, I'd like to hear from you; send an email to icculus@clutteredmind.org.
  33. OTHER PLATFORMS:
  34. Many platforms might "just work" with the Unix Makefile (such as BeOS and
  35. MacOS X), but have not been tested. To implement a new platform or
  36. archiver, please read the heavily-commented physfs_internal.h and look
  37. in the platform/ and archiver/ directories for examples.
  38. --ryan. (icculus@clutteredmind.org)