equal
deleted
inserted
replaced
45 |
45 |
46 ==Android NDK== |
46 ==Android NDK== |
47 |
47 |
48 Download and untar it, ill refer to the ndk as `<`NDK`>`. That’s it :) |
48 Download and untar it, ill refer to the ndk as `<`NDK`>`. That’s it :) |
49 |
49 |
50 ==FreePascal== |
50 == FreePascal == |
51 |
51 |
52 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: |
52 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: |
53 |
53 |
54 {{{ |
54 {{{ |
55 make crossinstall CPU_TARGET=arm OS_TARGET=linux CROSSBINDIR=<ndk>/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin BINUTILSPREFIX=arm-linux-androideabi- OPT=-dFPC_ARMEL INSTALL_PREFIX=<fpc>/fpc_install |
55 make crossinstall CPU_TARGET=arm OS_TARGET=linux CROSSBINDIR=<ndk>/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin BINUTILSPREFIX=arm-linux-androideabi- OPT=-dFPC_ARMEL INSTALL_PREFIX=<fpc>/fpc_install |
94 and it should be installed on your emulator/device if it was connected. |
94 and it should be installed on your emulator/device if it was connected. |
95 |
95 |
96 On the device/emulator start the application up :) |
96 On the device/emulator start the application up :) |
97 |
97 |
98 |
98 |
|
99 |
|
100 |
|
101 |
|
102 |
|
103 |
|
104 |
99 TODO verify that it works on Windows and OS X add dependency list of utilities (ant, fpc compiler for host, make etcetc) |
105 TODO verify that it works on Windows and OS X add dependency list of utilities (ant, fpc compiler for host, make etcetc) |