author | Ryan C. Gordon <icculus@icculus.org> |
Wed, 28 Aug 2002 08:58:39 +0000 | |
changeset 480 | 2cf0b6edd200 |
parent 283 | c966316c8998 |
child 488 | 731e85d74cfe |
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 |
||
230 | 20 |
UNIX and BeOS: |
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 |
|
283 | 32 |
BeOS doesn't seem to be building shared libraries with the version of |
33 |
autoconf/automake I used (even though it swears it did). If anyone has some |
|
34 |
insight into this, I'd like to hear from you. |
|
35 |
||
36 |
||
71 | 37 |
|
38 |
WIN32: |
|
283 | 39 |
If building with CygWin, mingw32 or something else that uses the GNU |
40 |
toolchain, follow the Unix instructions, above. |
|
230 | 41 |
|
283 | 42 |
Point Visual Studio 6.0 at "physfs.dsp" in the root of the source tree, and |
43 |
build. This will produce a "physfs.dll" and "physfs.lib" (shared library and |
|
44 |
import lib, respectively) in either a "Debug" or "Release" directory, |
|
45 |
depending on what configuration you chose to build. After building the lib, |
|
46 |
you can make sure it works by building the "test_physfs.dsp" project file, |
|
47 |
which will create "test_physfs.exe" in "Debug" or "Release". This EXE is |
|
48 |
linked against the DLL you built previously. |
|
89
2f9f1d02aaca
Updated win32 build instructions.
Ryan C. Gordon <icculus@icculus.org>
parents:
71
diff
changeset
|
49 |
|
283 | 50 |
Visual Studio.NET probably handles these files, but we'll have honest-to-god |
51 |
.vcproj files in the next official release. |
|
52 |
||
53 |
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
|
54 |
|
d176cef27a77
Updated win32 build info, other tweaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
205
diff
changeset
|
55 |
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
|
56 |
may not work. Patches are welcome. |
d176cef27a77
Updated win32 build info, other tweaks.
Ryan C. Gordon <icculus@icculus.org>
parents:
205
diff
changeset
|
57 |
|
91 | 58 |
If someone is willing to maintain prebuilt PhysicsFS DLLs, I'd like to hear |
59 |
from you; send an email to icculus@clutteredmind.org. |
|
60 |
||
187 | 61 |
|
283 | 62 |
|
187 | 63 |
MACOS 8/9: |
283 | 64 |
Double-click on "CWProjects.sit" in the root of the source tree. This will |
65 |
unpack into a folder called "Mac Classic Support", which has CodeWarrior 6 |
|
66 |
project files. |
|
67 |
||
68 |
Point CodeWarrior at "physfs.mcp" in that new folder, and build. This will |
|
69 |
produce a "PhysicsFS" or "PhysicsFS Debug" shared library, depending on what |
|
70 |
configuration you chose to build. After building the lib, you can make sure |
|
71 |
it works by building the "test_physfs.mcp" project file, which will create |
|
72 |
"test_physfs" or "test_physfs Debug". These binaries are linked against the |
|
73 |
DLLs you built previously. |
|
187 | 74 |
|
75 |
If someone is willing to maintain prebuilt PhysicsFS Shared Libraries for |
|
76 |
the Mac, I'd like to hear from you; send an email to icculus@clutteredmind.org. |
|
77 |
||
78 |
||
283 | 79 |
|
80 |
MACOS X: |
|
81 |
You (currently) need to use the freeware Apple Developer Tools, which are |
|
82 |
based on the GNU toolchain. Fire up a terminal and run "cc"...if this reports |
|
83 |
"no input files" then you've got the tools installed. |
|
84 |
||
85 |
From a terminal, run "./configure --disable-shared --enable-static". Run |
|
86 |
"make". This will get you a static library and a "test_physfs" binary. |
|
87 |
||
88 |
I would love for someone to fix this so it will build shared libraries (since |
|
89 |
static libraries make it awkward to deal with the license terms), or send me |
|
90 |
Project Builder libraries. |
|
91 |
||
92 |
If someone is willing to maintain prebuilt PhysicsFS Shared Libraries for |
|
93 |
MacOS X, I'd like to hear from you; send an email to icculus@clutteredmind.org. |
|
94 |
||
95 |
||
96 |
||
187 | 97 |
OTHER PLATFORMS: |
283 | 98 |
Many Unix-like platforms might "just work" with the GNU autoconf tools. Some |
99 |
of these platforms are known to have worked at one time, but have not been |
|
100 |
heavily tested, if tested at all. To implement a new platform or archiver, |
|
101 |
please read the heavily-commented physfs_internal.h and look in the platform/ |
|
102 |
and archiver/ directories for examples. |
|
187 | 103 |
|
54 | 104 |
--ryan. (icculus@clutteredmind.org) |
105 |