# HG changeset patch # User richarddeurtje@gmail.com # Date 1332788239 0 # Node ID 2aebd9de1a5eff05e66250b4d18187b6cf6cd009 # Parent 3709bd70d27c800e29ade96d7ccb9024e1cdc4bc Use another fpc version which doesnt have the dynamically linked libs bug diff -r 3709bd70d27c -r 2aebd9de1a5e HedgeroidGuide.wiki --- a/HedgeroidGuide.wiki Sat Mar 24 15:21:33 2012 +0000 +++ b/HedgeroidGuide.wiki Mon Mar 26 18:57:19 2012 +0000 @@ -11,7 +11,8 @@ * [http://code.google.com/p/hedgewars/ Hedgewars Source]
* [http://developer.android.com/sdk/index.html Android SDK] (Latest version will do)
* [http://developer.android.com/sdk/ndk/index.html Android NDK] (current version is r5b but anything up will probably work)
-* [http://freepascal.org/down/source/sources.var FreePascal] (Latest (stable) version will do)
+* ~~[http://freepascal.org/down/source/sources.var FreePascal] (Latest (stable) version will do)~~
+* [http://sourceforge.net/projects/p-tools/ p-tools] (Fixed freepascal compiler, read below which to download)
* [http://ant.apache.org/ Ant] (Linux distro should just use their package manager to get it, version isn't really important)
* Java compiler, make sure you get JDK (not JRE) version 6 and up @@ -50,7 +51,7 @@ ==!FreePascal == -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: +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: {{{ make crossinstall CPU_TARGET=arm OS_TARGET=linux CROSSBINDIR=/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin OPT=-dFPC_ARMEL BINUTILSPREFIX=arm-linux-androideabi- INSTALL_PREFIX=/fpc_install