Debian Codegraph @

BUILD.TXT

raw
1 You, brave soul, have dared to consider building POWDER?
2
3 Do you not know this source is only released to taunt you?
4
5 Still undeterred?
6
7 Well, let us first examine your target platform.
8
9 (Hint: If it is not Linux/Mac OSX you are in for a world of pain)
10
11 If you just want to replace the graphics, go no farther! Look for
12 an artpack distribution on a previous release for instructions on
13 how to do this with no compiling needed!
14
15 =========
16 = Linux =
17 =========
18
19 A script called buildall.sh is here. Invoke it. If nothing goes wrong, you
20 are done. If things go wrong? Perhaps install sdl-dev? Sacrifice another
21 grid bug? The signs are unclear.
22
23 The tea leaves clear. Make sure you have bash and GNU make!
24
25 Do not try to run make from the source root.
26
27 You may need to chmod +x some scripts. Cygwin sucks.
28
29 ===========
30 = Mac OSX =
31 ===========
32
33 A script called buildall.OSX.sh is here. Invoke it. If nothing goes
34 wrong, you are done. If things go wrong? Make sure you have
35 installed the SDL framework in /Library/Framework. Otherwise I don't
36 know...
37
38 Do not try to run make from the source root. Do not try to run make
39 from port/mac either, as it requires ARCH to be set.
40
41 You may need to chmod +x some scripts. Cygwin sucks.
42
43
44 ===========
45 = Windows =
46 ===========
47
48 .sln is your friend. You need MSVC2003 or later. Build everything in your
49 support directory that has .sln. Put them in your path.
50
51 Use those tools to build the support files - the buildall.sh contains clues.
52
53 port/windows may then be loaded and build.
54
55 =======
56 = GBA =
57 =======
58
59 Purchase a copy of HAM Lib. The free version does not work.
60
61 Use your local compiler to build all the support directory files and put them
62 in your path.
63
64 In gfx, run domake.bat.
65
66 In the source root, run make.
67
68 ======
69 = DS =
70 ======
71
72 Download devkitPro. Thank Richard Quirk for fixing the r21
73 compatibility problem, allowing you to merely use the latest version.
74
75 Use your local compiler to build all the support directory and dump them in
76 your path. Again, you must manually transform the secondary files using
77 buildall.sh as a clue.
78
79 Finally, invoke make in your MSys devkitpro window in the port/ds directory.
80 Victory shall be thine!
81
82 =======
83 = PSP =
84 =======
85
86 The PSP port is thanks to the most excellent Marvin Sanchez. Since I
87 don't have a PSP myself, I'm compiling this blindly.
88
89 He reports success with Cygwin on Windows, I am building under Linux.
90 In either case, you want a copy of pspdev from
91 http://ps2dev.org/psp/Tools. Download the Toolchain specified there.
92
93 You also need to install/compile the SDL for the PSP. I found this
94 website intructive: http://ttyman.free.fr/?p=8
95
96 Then you should be able to follow the DS instructions.
97
98 ========
99 = GP2X =
100 ========
101
102 The GP2X port is thanks to the most excellent David Parker. Since I
103 don't have a GP2X myself, I'm compiling this blindly.
104
105 A script called buildall.gp2x.sh is here that should get you going.
106
107 He used oopo's toolchain, which should work with the given Makefile,
108 but if not you may need to change ports/gp2x/Makefile to the correct
109 paths to your SDK/compiler.
110
111 Packaging involves copying the Powder2X directory from port/gp2x to
112 your SD card. Follow that by the executable powder in port/gp2x into
113 the Powder2x/pdata directory. Finally, dump the gfx and rooms
114 directories to Powder2X/pdata on the SD card.
115
116 =========
117 = WinCE =
118 =========
119
120 The Windows CE port is thanks to the most excellent Ilya Kasnacheev.
121 I don't have a Windows CE device nor a build environment, so Ilya has
122 been releasing the versions.
123
124 In the port/wince directory there is a README should consult on how to
125 get this working. Be warned that setting up the toolchain is not
126 trivial, so it is likely best if you first successfully build a normal
127 Windows POWDER version before trying this.
128
129 =================
130 = PORTING NOTES =
131 =================
132
133 Compile time flags are:
134
135 LINUX
136 A Un*x system is being built. This includes Mac OSX.
137
138 MACOSX
139 A specifically Mac version.
140
141 WIN32
142 Built in Windows
143
144 USING_DS
145 Nintendo DS build
146
147 _WIN32_WCE
148 Built for Windows CE.
149
150 USING_TILE10
151 Use 10x10 base tiles by default rather than 8x8.
152
153 SYS_PSP
154 PSP build. USING_SDL is also set.
155
156 NO_HAM
157 A GBA build with devkitPro rather than HAM
158
159 USING_SDL
160 An SDL based build.
161
162 HAS_KEYBOARD
163 Keyboard input method present, hamfake_getkey() does something.
164 If not set, buttons are used for the input method.
165
166 HAS_STYLUS
167 A stylus exists, enabling mouse based input
168
169 HAS_XYBUTTON
170 A button based input with four normal buttons.
171
172 HAS_DISKIO
173 System can save and load arbitrary files.
174
175 HAS_PRINTF
176 printf and assert exist and are used.
177
178 ===============
179 = POST SCRIPT =
180 ===============
181
182 Please remember that this is not open source. Thank you.