INSTALL.txt 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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.txt in the
  6. root of the source tree. If you can't abide by it, delete this source tree
  7. now. The license is extremely liberal, even to closed-source, commercial
  8. applications.
  9. If you've got Doxygen (http://www.doxygen.org/) installed, you can run it
  10. without any command line arguments in the root of the source tree to generate
  11. the API reference (or build the "docs" target from your build system). This
  12. is optional. You can browse the API docs online here:
  13. http://icculus.org/physfs/docs/
  14. UNIX:
  15. You will need CMake (http://www.cmake.org/) 2.4 or later installed.
  16. Run "cmake ." in the root of the source directory to generate Makefiles.
  17. You can then run "ccmake ." and customize the build, but the defaults are
  18. probably okay. You can have CMake generate KDevelop project files if you
  19. prefer these.
  20. Run "make". PhysicsFS will now build.
  21. As root, run "make install".
  22. If you get sick of the library, run "xargs rm < install_manifest.txt" as root
  23. and it will remove all traces of the library from the system paths.
  24. Primary Unix development is done with GNU/Linux, but PhysicsFS is known to
  25. work out of the box with several flavors of Unix. It it doesn't work, patches
  26. to get it running can be sent to icculus@icculus.org.
  27. BeOS:
  28. Use the "Unix" instructions, above. The CMake port to BeOS is fairly new at
  29. the time of this writing, but it works. You can get it from bebits.com ...
  30. Windows:
  31. If building with CygWin, mingw32 or something else that uses the GNU
  32. toolchain, follow the Unix instructions, above.
  33. If you want to use Visual Studio, nmake, or the Platform SDK, you will need
  34. CMake (http://www.cmake.org/) 2.4 or later installed. Point CMake at the
  35. CMakeLists.txt file in the root of the source directory and it will generate
  36. project files for you.
  37. PhysicsFS will only link directly against system libraries that have existed
  38. since Windows 95 and Windows NT 3.51. If there's a newer API we want to use,
  39. we try to dynamically load it at runtime and fallback to a reasonable
  40. behaviour when we can't find it...this is used for Unicode support and
  41. locating user-specific directories, etc.
  42. PhysicsFS has not been tested on 64-bit Windows, but probably works. There is
  43. no 16-bit Windows support at all. Reports of success and problems can go to
  44. Ryan at icculus@icculus.org ...
  45. If someone is willing to maintain prebuilt PhysicsFS DLLs, I'd like to hear
  46. from you; send an email to icculus@icculus.org ...
  47. PocketPC/WindowsCE:
  48. Code exists for PocketPC support, and there are shipping titles that used
  49. PhysicsFS 1.0 on PocketPC...but it isn't tested in 2.0, and is probably
  50. broken with the new build system. Please send patches.
  51. MAC OS 8/9:
  52. Double-click on "CWProjects.sit" in the root of the source tree. This will
  53. unpack into a folder called "Mac Classic Support", which has CodeWarrior 6
  54. project files. Newer CodeWarrior releases should be able to read these project
  55. files, too.
  56. Point CodeWarrior at "physfs.mcp" in that new folder, and build. This will
  57. produce a "PhysicsFS" or "PhysicsFS Debug" shared library, depending on what
  58. configuration you chose to build. After building the lib, you can make sure
  59. it works by building the "test_physfs.mcp" project file, which will create
  60. "test_physfs" or "test_physfs Debug". These binaries are linked against the
  61. DLLs you built previously.
  62. There is also an MPW project file included, if you don't have CodeWarrior. It
  63. is untested.
  64. PhysicsFS builds for classic Mac OS do not require CarbonLib...they use
  65. OS 9 APIs exclusively.
  66. If someone is willing to maintain prebuilt PhysicsFS Shared Libraries for
  67. the Mac, I'd like to hear from you; send an email to icculus@icculus.org.
  68. MAC OS X:
  69. You will need CMake (http://www.cmake.org/) 2.4 or later installed.
  70. You can either generate a Unix makefile with CMake, or generate an Xcode
  71. project, whichever makes you more comfortable.
  72. PowerPC and Intel Macs should both be supported.
  73. If someone is willing to maintain prebuilt PhysicsFS Shared Libraries for
  74. Mac OS X, I'd like to hear from you; send an email to icculus@icculus.org.
  75. OS/2:
  76. You need Innotek GCC and libc installed (or kLIBC). I tried this on a stock
  77. Warp 4 install, no fixpaks. You need to install link386.exe (Selective
  78. Install, "link object modules" option). Once libc and GCC are installed
  79. correctly, unpack the source to PhysicsFS and run the script
  80. file "makeos2.cmd". I know this isn't ideal, but I wanted to have this build
  81. without users having to hunt down a "make" program (While several exist, EMX
  82. doesn't come with one). If someone wants to hack some REXX to make this a bit
  83. more picky about recompiling, I'll accept the patch.
  84. Someone please port CMake to OS/2.
  85. If someone is willing to maintain prebuilt PhysicsFS Shared Libraries for
  86. OS/2, I'd like to hear from you; send an email to icculus@icculus.org.
  87. OTHER PLATFORMS:
  88. Many Unix-like platforms might "just work" with CMake. Some of these platforms
  89. are known to have worked at one time, but have not been heavily tested, if
  90. tested at all. PhysicsFS is, as far as we know, 64-bit and byteorder clean,
  91. and is known to compile on several compilers across many platforms. To
  92. implement a new platform or archiver, please read the heavily-commented
  93. physfs_internal.h and look in the platform/ and archiver/ directories for
  94. examples.
  95. --ryan. (icculus@icculus.org)