author | Ryan C. Gordon <icculus@icculus.org> |
Sun, 30 Mar 2003 18:59:54 +0000 | |
changeset 553 | 4338d9c0bbcd |
parent 488 | 731e85d74cfe |
child 590 | 171fd8b3f7f2 |
permissions | -rw-r--r-- |
214
19846c18071b
Initial autoconf support.
Ryan C. Gordon <icculus@icculus.org>
parents:
208
diff
changeset
|
1 |
|
283 | 2 |
The latest PhysicsFS information and releases can be found at: |
3 |
http://icculus.org/physfs/ |
|
214
19846c18071b
Initial autoconf support.
Ryan C. Gordon <icculus@icculus.org>
parents:
208
diff
changeset
|
4 |
|
208
d176cef27a77
Updated win32 build info, other tweaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
205
diff
changeset
|
5 |
Building is (ahem) very easy. |
54 | 6 |
|
71 | 7 |
|
8 |
ALL PLATFORMS: |
|
91 | 9 |
|
71 | 10 |
Please understand your rights and mine: read the text file LICENSE in the root |
11 |
of the source tree. If you can't abide by it, delete this source tree now. |
|
12 |
||
283 | 13 |
If you've got Doxygen (http://www.doxygen.org/) installed, you can run it |
14 |
without any command line arguments in the root of the source tree to generate |
|
15 |
the API reference. This is optional. You can browse the API docs online |
|
16 |
here: http://icculus.org/physfs/docs/ |
|
17 |
||
71 | 18 |
|
19 |
||
488 | 20 |
UNIX: |
230 | 21 |
(If you got this code from CVS, run "./bootstrap" first.) |
54 | 22 |
|
230 | 23 |
Run ./configure --help and see what features can be optionally enabled or |
24 |
disabled. "./configure" does its best to pick optimal defaults for your |
|
25 |
platform. |
|
54 | 26 |
|
230 | 27 |
Run "make". |
28 |
As root, run "make install". |
|
29 |
If you get sick of the library, run "make uninstall" as root and it will |
|
30 |
remove all traces of the library from the system paths. |
|
54 | 31 |
|
488 | 32 |
Primary Unix development is done with GNU/Linux, but PhysicsFS is known to |
33 |
work out of the box with several flavors of Unix. It it doesn't work, patches |
|
34 |
to get it running can be sent to icculus@clutteredmind.org. |
|
35 |
||
283 | 36 |
|
488 | 37 |
BeOS: |
38 |
Use the "Unix" instructions, above. |
|
39 |
||
40 |
||
41 |
AtheOS: |
|
42 |
Use the "Unix" instructions, above. |
|
283 | 43 |
|
71 | 44 |
|
45 |
WIN32: |
|
283 | 46 |
If building with CygWin, mingw32 or something else that uses the GNU |
47 |
toolchain, follow the Unix instructions, above. |
|
230 | 48 |
|
488 | 49 |
If you're using Visual C++ 6, point it at "physfs.dsp" in the root of the |
50 |
source tree, and build. This will produce a "physfs.dll" and "physfs.lib" |
|
51 |
(shared library and import lib, respectively) in either a "Debug" or |
|
52 |
"Release" directory, depending on what configuration you chose to build. |
|
53 |
After building the lib, you can make sure it works by building the |
|
54 |
"test_physfs.dsp" project file, which will create "test_physfs.exe" in |
|
55 |
"Debug" or "Release". This EXE is linked against the DLL you built |
|
56 |
previously. |
|
89
2f9f1d02aaca
Updated win32 build instructions.
Ryan C. Gordon <icculus@icculus.org>
parents:
71
diff
changeset
|
57 |
|
488 | 58 |
Visual Studio.NET users should do the same thing, but use the "physfs.vcproj" |
59 |
and "test_physfs.vcproj" project files instead. |
|
283 | 60 |
|
61 |
If you're using another compiler, send me a patch when you get it working. :) |
|
208
d176cef27a77
Updated win32 build info, other tweaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
205
diff
changeset
|
62 |
|
d176cef27a77
Updated win32 build info, other tweaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
205
diff
changeset
|
63 |
No one's tried building this for a WinCE (PocketPC) platform, but it may or |
d176cef27a77
Updated win32 build info, other tweaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
205
diff
changeset
|
64 |
may not work. Patches are welcome. |
d176cef27a77
Updated win32 build info, other tweaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
205
diff
changeset
|
65 |
|
91 | 66 |
If someone is willing to maintain prebuilt PhysicsFS DLLs, I'd like to hear |
67 |
from you; send an email to icculus@clutteredmind.org. |
|
68 |
||
187 | 69 |
|
283 | 70 |
|
187 | 71 |
MACOS 8/9: |
283 | 72 |
Double-click on "CWProjects.sit" in the root of the source tree. This will |
73 |
unpack into a folder called "Mac Classic Support", which has CodeWarrior 6 |
|
74 |
project files. |
|
75 |
||
76 |
Point CodeWarrior at "physfs.mcp" in that new folder, and build. This will |
|
77 |
produce a "PhysicsFS" or "PhysicsFS Debug" shared library, depending on what |
|
78 |
configuration you chose to build. After building the lib, you can make sure |
|
79 |
it works by building the "test_physfs.mcp" project file, which will create |
|
80 |
"test_physfs" or "test_physfs Debug". These binaries are linked against the |
|
81 |
DLLs you built previously. |
|
187 | 82 |
|
83 |
If someone is willing to maintain prebuilt PhysicsFS Shared Libraries for |
|
84 |
the Mac, I'd like to hear from you; send an email to icculus@clutteredmind.org. |
|
85 |
||
86 |
||
283 | 87 |
|
88 |
MACOS X: |
|
89 |
You (currently) need to use the freeware Apple Developer Tools, which are |
|
90 |
based on the GNU toolchain. Fire up a terminal and run "cc"...if this reports |
|
91 |
"no input files" then you've got the tools installed. |
|
92 |
||
488 | 93 |
Follow the Unix directions, above (configure, make, make install). |
283 | 94 |
|
95 |
If someone is willing to maintain prebuilt PhysicsFS Shared Libraries for |
|
96 |
MacOS X, I'd like to hear from you; send an email to icculus@clutteredmind.org. |
|
97 |
||
98 |
||
488 | 99 |
OS/2: |
100 |
You need EMX installed. I tried this on a stock Warp 4 install, no fixpaks. |
|
101 |
I used the latest EMX and patches (which are several years old now). You need |
|
102 |
to install link386.exe (Selective Install, "link object modules" option). Once |
|
103 |
EMX is installed correctly, unpack the source to PhysicsFS and run the script |
|
104 |
file "makeos2.cmd". I know this isn't ideal, but I wanted to have this build |
|
105 |
without users having to hunt down a "make" program (While several exist, EMX |
|
106 |
doesn't come with one). If someone wants to hack some REXX to make this a bit |
|
107 |
more piccky about recompiling, I'll accept the patch. |
|
108 |
||
109 |
If someone is willing to maintain prebuilt PhysicsFS Shared Libraries for |
|
110 |
OS/2, I'd like to hear from you; send an email to icculus@clutteredmind.org. |
|
111 |
||
283 | 112 |
|
187 | 113 |
OTHER PLATFORMS: |
283 | 114 |
Many Unix-like platforms might "just work" with the GNU autoconf tools. Some |
115 |
of these platforms are known to have worked at one time, but have not been |
|
488 | 116 |
heavily tested, if tested at all. PhysicsFS is, as far as we know, 64-bit and |
117 |
byteorder clean, and is known to compile on several compilers across many |
|
118 |
platforms. To implement a new platform or archiver, please read the |
|
119 |
heavily-commented physfs_internal.h and look in the platform/ and archiver/ |
|
120 |
directories for examples. |
|
187 | 121 |
|
54 | 122 |
--ryan. (icculus@clutteredmind.org) |
123 |