INSTALL.txt 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. Classic Mac OS support has been dropped in PhysicsFS 2.0. Apple hasn't updated
  53. pre-OSX versions in almost a decade at this point, none of the hardware
  54. they've shipped will boot it for almost as many years, and finding
  55. developer tools for it is becoming almost impossible. As the switch to Intel
  56. hardware has removed the "Classic" emulation environment, it was time to
  57. remove support from PhysicsFS. That being said, the PhysicsFS 1.0 branch can
  58. still target back to Mac OS 8.5, so you can use that if you need support for
  59. this legacy OS. We still very much support Mac OS X, though: see below.
  60. MAC OS X:
  61. You will need CMake (http://www.cmake.org/) 2.4 or later installed.
  62. You can either generate a Unix makefile with CMake, or generate an Xcode
  63. project, whichever makes you more comfortable.
  64. PowerPC and Intel Macs should both be supported.
  65. If someone is willing to maintain prebuilt PhysicsFS Shared Libraries for
  66. Mac OS X, I'd like to hear from you; send an email to icculus@icculus.org.
  67. OS/2:
  68. You need Innotek GCC and libc installed (or kLIBC). I tried this on a stock
  69. Warp 4 install, no fixpaks. You need to install link386.exe (Selective
  70. Install, "link object modules" option). Once libc and GCC are installed
  71. correctly, unpack the source to PhysicsFS and run the script
  72. file "makeos2.cmd". I know this isn't ideal, but I wanted to have this build
  73. without users having to hunt down a "make" program (While several exist, EMX
  74. doesn't come with one). If someone wants to hack some REXX to make this a bit
  75. more picky about recompiling, I'll accept the patch.
  76. Someone please port CMake to OS/2.
  77. If someone is willing to maintain prebuilt PhysicsFS Shared Libraries for
  78. OS/2, I'd like to hear from you; send an email to icculus@icculus.org.
  79. OTHER PLATFORMS:
  80. Many Unix-like platforms might "just work" with CMake. Some of these platforms
  81. are known to have worked at one time, but have not been heavily tested, if
  82. tested at all. PhysicsFS is, as far as we know, 64-bit and byteorder clean,
  83. and is known to compile on several compilers across many platforms. To
  84. implement a new platform or archiver, please read the heavily-commented
  85. physfs_internal.h and look in the platform/ and archiver/ directories for
  86. examples.
  87. --ryan. (icculus@icculus.org)