INSTALL 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. The latest PhysicsFS information and releases can be found at:
  2. http://icculus.org/physfs/
  3. Building is (ahem) very easy.
  4. ALL PLATFORMS:
  5. Please understand your rights and mine: read the text file LICENSE in the root
  6. of the source tree. If you can't abide by it, delete this source tree now.
  7. If you've got Doxygen (http://www.doxygen.org/) installed, you can run it
  8. without any command line arguments in the root of the source tree to generate
  9. the API reference. This is optional. You can browse the API docs online
  10. here: http://icculus.org/physfs/docs/
  11. UNIX and BeOS:
  12. (If you got this code from CVS, run "./bootstrap" first.)
  13. Run ./configure --help and see what features can be optionally enabled or
  14. disabled. "./configure" does its best to pick optimal defaults for your
  15. platform.
  16. Run "make".
  17. As root, run "make install".
  18. If you get sick of the library, run "make uninstall" as root and it will
  19. remove all traces of the library from the system paths.
  20. BeOS doesn't seem to be building shared libraries with the version of
  21. autoconf/automake I used (even though it swears it did). If anyone has some
  22. insight into this, I'd like to hear from you.
  23. WIN32:
  24. If building with CygWin, mingw32 or something else that uses the GNU
  25. toolchain, follow the Unix instructions, above.
  26. Point Visual Studio 6.0 at "physfs.dsp" in the root of the source tree, and
  27. build. This will produce a "physfs.dll" and "physfs.lib" (shared library and
  28. import lib, respectively) in either a "Debug" or "Release" directory,
  29. depending on what configuration you chose to build. After building the lib,
  30. you can make sure it works by building the "test_physfs.dsp" project file,
  31. which will create "test_physfs.exe" in "Debug" or "Release". This EXE is
  32. linked against the DLL you built previously.
  33. Visual Studio.NET probably handles these files, but we'll have honest-to-god
  34. .vcproj files in the next official release.
  35. If you're using another compiler, send me a patch when you get it working. :)
  36. No one's tried building this for a WinCE (PocketPC) platform, but it may or
  37. may not work. Patches are welcome.
  38. If someone is willing to maintain prebuilt PhysicsFS DLLs, I'd like to hear
  39. from you; send an email to icculus@clutteredmind.org.
  40. MACOS 8/9:
  41. Double-click on "CWProjects.sit" in the root of the source tree. This will
  42. unpack into a folder called "Mac Classic Support", which has CodeWarrior 6
  43. project files.
  44. Point CodeWarrior at "physfs.mcp" in that new folder, and build. This will
  45. produce a "PhysicsFS" or "PhysicsFS Debug" shared library, depending on what
  46. configuration you chose to build. After building the lib, you can make sure
  47. it works by building the "test_physfs.mcp" project file, which will create
  48. "test_physfs" or "test_physfs Debug". These binaries are linked against the
  49. DLLs you built previously.
  50. If someone is willing to maintain prebuilt PhysicsFS Shared Libraries for
  51. the Mac, I'd like to hear from you; send an email to icculus@clutteredmind.org.
  52. MACOS X:
  53. You (currently) need to use the freeware Apple Developer Tools, which are
  54. based on the GNU toolchain. Fire up a terminal and run "cc"...if this reports
  55. "no input files" then you've got the tools installed.
  56. From a terminal, run "./configure --disable-shared --enable-static". Run
  57. "make". This will get you a static library and a "test_physfs" binary.
  58. I would love for someone to fix this so it will build shared libraries (since
  59. static libraries make it awkward to deal with the license terms), or send me
  60. Project Builder libraries.
  61. If someone is willing to maintain prebuilt PhysicsFS Shared Libraries for
  62. MacOS X, I'd like to hear from you; send an email to icculus@clutteredmind.org.
  63. OTHER PLATFORMS:
  64. Many Unix-like platforms might "just work" with the GNU autoconf tools. Some
  65. of these platforms are known to have worked at one time, but have not been
  66. heavily tested, if tested at all. To implement a new platform or archiver,
  67. please read the heavily-commented physfs_internal.h and look in the platform/
  68. and archiver/ directories for examples.
  69. --ryan. (icculus@clutteredmind.org)