INSTALL 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ------------------------------------------------------------------------------
  2. NOTE: THESE INSTRUCTIONS NEED TO BE UPDATED FOR THE NEW BUILD SYSTEM. THIS
  3. AFFECTS UNIX, WIN32 AND MACOS!
  4. Please bitch to Ryan (icculus@clutteredmind.org) until he updates this.
  5. ------------------------------------------------------------------------------
  6. Building is (ahem) very easy.
  7. ALL PLATFORMS:
  8. Please understand your rights and mine: read the text file LICENSE in the root
  9. of the source tree. If you can't abide by it, delete this source tree now.
  10. The best documentation for the PhysicsFS API is physfs.h. It is VERY heavily
  11. commented, and makes an excellent, in-depth reference to all the functions.
  12. UNIX:
  13. Edit "Makefile", and follow the instructions. The defaults are probably okay
  14. for general purposes, but give it a once over to make sure. If you don't have
  15. zLib on your system, you'll need to disable ZIP support.
  16. run "make"
  17. That's it. The library will be sitting in a new directory called "bin".
  18. Run "make install" to install the library for use on your system.
  19. WIN32:
  20. Download http://icculus.org/physfs/downloads/physfs-win32-support.zip, and
  21. unpack in the root of the source directory, preserving directory names. If
  22. you did it correctly, there should be a directory named "zlib114" in the
  23. same directory as "physfs.h". This archive has Visual C project files and
  24. the code needed for zipfile support in PhysicsFS, since most Windows boxes
  25. don't have zlib preinstalled.
  26. IMPORTANT: If you are using anything older than Visual Studio.NET, you
  27. will _NEED_ to upgrade to the latest Platform SDK from Microsoft. It is a
  28. free download: http://www.microsoft.com/msdownload/platformsdk/sdkupdate/
  29. Be sure to install _at least_ the Core SDK and the WMI SDK. I'm not sure if
  30. this is needed (or usable for Cygwin). Even though you need these SDK updates,
  31. the compiled PhysicsFS DLL should work on any win32 platform from Win95 and
  32. WinNT 4.0 and later.
  33. No one's tried building this for a WinCE (PocketPC) platform, but it may or
  34. may not work. Patches are welcome.
  35. After that, if building with CygWin, follow the Unix instructions, above.
  36. (Which used to work, see caveat about Platform SDK above). If you're using
  37. Visual C, point the IDE at physfs.dsp, and build. If you're using any other
  38. compiler, send me a patch when you get it working. :)
  39. If someone is willing to maintain prebuilt PhysicsFS DLLs, I'd like to hear
  40. from you; send an email to icculus@clutteredmind.org.
  41. MACOS 8/9:
  42. Download http://icculus.org/physfs/downloads/mac_classic_support.sit and
  43. unpack it in the root of the physfs folder. It should produce a folder
  44. called "Mac Classic Support" that has CodeWarrior 6 project files and a
  45. copy of zlib for zipfile support.
  46. If someone is willing to maintain prebuilt PhysicsFS Shared Libraries for
  47. the Mac, I'd like to hear from you; send an email to icculus@clutteredmind.org.
  48. OTHER PLATFORMS:
  49. Many platforms might "just work" with the Unix Makefile (such as BeOS and
  50. MacOS X), but have not been heavily tested, if tested at all. To implement a
  51. new platform or archiver, please read the heavily-commented physfs_internal.h
  52. and look in the platform/ and archiver/ directories for examples.
  53. --ryan. (icculus@clutteredmind.org)