HedgeroidGuide.wiki
changeset 211 2aebd9de1a5e
parent 210 3709bd70d27c
child 213 a2be6fe1d509
equal deleted inserted replaced
210:3709bd70d27c 211:2aebd9de1a5e
     9 We need to download these packages:
     9 We need to download these packages:
    10 
    10 
    11 * [http://code.google.com/p/hedgewars/ Hedgewars Source]<br>
    11 * [http://code.google.com/p/hedgewars/ Hedgewars Source]<br>
    12 * [http://developer.android.com/sdk/index.html Android SDK] (Latest version will do)<br>
    12 * [http://developer.android.com/sdk/index.html Android SDK] (Latest version will do)<br>
    13 * [http://developer.android.com/sdk/ndk/index.html Android NDK] (current version is r5b but anything up will probably work)<br>
    13 * [http://developer.android.com/sdk/ndk/index.html Android NDK] (current version is r5b but anything up will probably work)<br>
    14 * [http://freepascal.org/down/source/sources.var FreePascal] (Latest (stable) version will do)<br>
    14 * ~~[http://freepascal.org/down/source/sources.var FreePascal] (Latest (stable) version will do)~~<br>
       
    15 * [http://sourceforge.net/projects/p-tools/ p-tools] (Fixed freepascal compiler, read below which to download)<br>
    15 * [http://ant.apache.org/ Ant] (Linux distro should just use their package manager to get it, version isn't really important)<br>
    16 * [http://ant.apache.org/ Ant] (Linux distro should just use their package manager to get it, version isn't really important)<br>
    16 * Java compiler, make sure you get JDK (not JRE) version 6 and up
    17 * Java compiler, make sure you get JDK (not JRE) version 6 and up
    17 
    18 
    18 ==Hedgewars Source==
    19 ==Hedgewars Source==
    19 
    20 
    48 
    49 
    49 Download and untar it, ill refer to the ndk as `<`NDK`>`. That’s it :)
    50 Download and untar it, ill refer to the ndk as `<`NDK`>`. That’s it :)
    50 
    51 
    51 ==!FreePascal ==
    52 ==!FreePascal ==
    52 
    53 
    53 We need to download the sources from the Freepascal website and compile the crosscompiler. I have grabbed the latest stable release 2.4.4 , though any version will work. Once downloaded, extract the  tar/zip and place the files in a known directory. I will refer to the directory  with `<`fpc`>` from now on. Next navigate to the `<`fpc`>` directory and compile it, for this various tools are needed, ‘make’ for instance. But also a fpc compiler for your system. Some apt-get/aptitude magic will solve these problems, make a comment if you run in to problems. Use this to compile the crosscompiler:
    54 We need to download the sources from the Freepascal website and compile the crosscompiler. ~~I have grabbed the latest stable release 2.4.4 , though any version will work.~~ _Because of a bug in the latest fpc sources I recommend you download the p-tools repository/tar. In this link http://sourceforge.net/projects/p-tools/ find the directory fpc4android when I refer to `<`fpc`>` I mean this directory_. Once downloaded, extract the  tar/zip and place the files in a known directory. I will refer to the directory  with `<`fpc`>` from now on. Next navigate to the `<`fpc`>` directory and compile it, for this various tools are needed, ‘make’ for instance. But also a fpc compiler for your system. Some apt-get/aptitude magic will solve these problems, make a comment if you run in to problems. Use this to compile the crosscompiler:
    54 
    55 
    55 {{{
    56 {{{
    56 make crossinstall CPU_TARGET=arm OS_TARGET=linux CROSSBINDIR=<ndk>/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin OPT=-dFPC_ARMEL BINUTILSPREFIX=arm-linux-androideabi- INSTALL_PREFIX=<fpc>/fpc_install
    57 make crossinstall CPU_TARGET=arm OS_TARGET=linux CROSSBINDIR=<ndk>/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin OPT=-dFPC_ARMEL BINUTILSPREFIX=arm-linux-androideabi- INSTALL_PREFIX=<fpc>/fpc_install
    57 }}}
    58 }}}
    58 
    59