31 hg clone http://hg.libsdl.org/SDL_net |
31 hg clone http://hg.libsdl.org/SDL_net |
32 hg clone http://hg.libsdl.org/SDL_ttf |
32 hg clone http://hg.libsdl.org/SDL_ttf |
33 hg clone http://hg.libsdl.org/SDL_mixer |
33 hg clone http://hg.libsdl.org/SDL_mixer |
34 }}} |
34 }}} |
35 |
35 |
36 We will now go into each of them |
36 Each library has its own iOS project file under the folder Xcode-iOS/; also here you need to build both Release and Debug for all the Architectures available. After this step remeber to update the include paths and linker information in the main Xcode project file. |
37 # SDL - quite easy, comes with a project file in Xcode-iPhoneOS that can be used to generate the library |
|
38 # SDL_image - easy, you need to uncompress a tar file to get the project file but then you can compile the library |
|
39 # SDL_net - surprise! No project file for iOS; i had to take the Mac one and change targets |
|
40 # SDL_ttf - the above applies here as well |
|
41 # SDL_mixer - here's where the fun begins! Besides changing targets, you need to remove unnecessary decodes from the preprocessor macros; you'll find more details about this [http://projectsymphony.blogspot.com/2009/12/how-to-compile-sdlmixer-for-iphone.html here] |
|
42 |
37 |
43 == Necessary Tools == |
38 == Necessary Tools == |
44 |
39 |
45 Besides the iOS SDK, you need a special variant of Freepascal to build the engine; luckily the whole process of getting it is well documented here: http://wiki.lazarus.freepascal.org/iPhone/iPod_development |
40 Besides the iOS SDK, you need a special variant of Freepascal to build the engine as well as the standard Freepascal compiler. So let's download and install (in order): |
|
41 |
|
42 * [http://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/2.6.0/fpc-2.6.0.intel-macosx.dmg/download fpc-intel-macosx] |
|
43 * [http://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/2.6.0/fpc-2.6.0.arm-ios.dmg/download fpc-arm-ios] |
|
44 |
|
45 The latter one will run a script on its own, let it finish and if no errors are reported, your system is ready! If you get stuck anywhere, luckily there is a full documentation about this process on the [http://wiki.lazarus.freepascal.org/iPhone/iPod_development Freepascal Wiki] |
46 |
46 |
47 = Building process = |
47 = Building process = |
48 |
48 |
49 And now we should be able to finally open the main Hedgewars.xcodeproj file! There are yet two steps before getting a working build. |
49 And now we should be able to finally open the main Hedgewars.xcodeproj file! There are yet two steps before getting a working build. |
50 |
50 |