HedgeroidGuide.wiki
changeset 210 3709bd70d27c
parent 208 225b2b73ce41
child 211 2aebd9de1a5e
equal deleted inserted replaced
209:26805ae2a319 210:3709bd70d27c
    54 
    54 
    55 {{{
    55 {{{
    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
    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 }}}
    57 }}}
    58 
    58 
       
    59 Note: The flag CROSSBINDDIR points to the ndk/toolchain/../prebuilt/linux-x86/bin dir, change linux-x86 to your host machine, so for windows it would be 'windows' instead of linux-x86
       
    60 
    59 ==Final==
    61 ==Final==
    60 
    62 
    61 We will generate the Makefile.android, which is needed to compile hedgewars, download SDL and you’ll need to make sure cmake knows where all the compilers are
    63 We will generate the Makefile.android, which is needed to compile hedgewars, download SDL and you’ll need to make sure cmake knows where all the compilers are
    62 
    64 
    63 1.<br>
    65 1.<br>
    86 3.<br>
    88 3.<br>
    87 Finally you can use cmake to create the scripts
    89 Finally you can use cmake to create the scripts
    88 
    90 
    89 {{{
    91 {{{
    90 cd <hedgewars-root>
    92 cd <hedgewars-root>
    91 cmake . -DBUILD_ANDROID_PORT=1
    93 cmake . -DANDROID=1
    92 }}}
    94 }}}
    93 And that’s it. To compile:
    95 And that’s it. To compile:
    94 
    96 
    95 {{{
    97 {{{
    96 cd <hedgewars-root>/project_files/Android-build/
    98 cd <hedgewars-root>/project_files/Android-build/