INSTALL 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. Building is (ahem) 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
  17. you did it correctly, there should be a directory named "zlib114" in the
  18. same directory as "physfs.h". This archive has Visual C project files and
  19. the code needed for zipfile support in PhysicsFS, since most Windows boxes
  20. don't have zlib preinstalled.
  21. IMPORTANT: If you are using anything older than Visual Studio.NET, you
  22. will _NEED_ to upgrade to the latest Platform SDK from Microsoft. It is a
  23. free download: http://www.microsoft.com/msdownload/platformsdk/sdkupdate/
  24. Be sure to install _at least_ the Core SDK and the WMI SDK. I'm not sure if
  25. this is needed (or usable for Cygwin). Even though you need these SDK updates,
  26. the compiled PhysicsFS DLL should work on any win32 platform from Win95 and
  27. WinNT 4.0 and later.
  28. No one's tried building this for a WinCE (PocketPC) platform, but it may or
  29. may not work. Patches are welcome.
  30. After that, if building with CygWin, follow the Unix instructions, above.
  31. (Which used to work, see caveat about Platform SDK above). If you're using
  32. Visual C, point the IDE at physfs.dsp, and build. If you're using any other
  33. compiler, send me a patch when you get it working. :)
  34. If someone is willing to maintain prebuilt PhysicsFS DLLs, I'd like to hear
  35. from you; send an email to icculus@clutteredmind.org.
  36. MACOS 8/9:
  37. Download http://icculus.org/physfs/downloads/mac_classic_support.sit and
  38. unpack it in the root of the physfs folder. It should produce a folder
  39. called "Mac Classic Support" that has CodeWarrior 6 project files and a
  40. copy of zlib for zipfile support.
  41. If someone is willing to maintain prebuilt PhysicsFS Shared Libraries for
  42. the Mac, I'd like to hear from you; send an email to icculus@clutteredmind.org.
  43. OTHER PLATFORMS:
  44. Many platforms might "just work" with the Unix Makefile (such as BeOS and
  45. MacOS X), but have not been heavily tested, if tested at all. To implement a
  46. new platform or archiver, please read the heavily-commented physfs_internal.h
  47. and look in the platform/ and archiver/ directories for examples.
  48. --ryan. (icculus@clutteredmind.org)