HedgeroidGuide.wiki
changeset 211 2aebd9de1a5e
parent 210 3709bd70d27c
child 213 a2be6fe1d509
--- 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]<br>
 * [http://developer.android.com/sdk/index.html Android SDK] (Latest version will do)<br>
 * [http://developer.android.com/sdk/ndk/index.html Android NDK] (current version is r5b but anything up will probably work)<br>
-* [http://freepascal.org/down/source/sources.var FreePascal] (Latest (stable) version will do)<br>
+* ~~[http://freepascal.org/down/source/sources.var FreePascal] (Latest (stable) version will do)~~<br>
+* [http://sourceforge.net/projects/p-tools/ p-tools] (Fixed freepascal compiler, read below which to download)<br>
 * [http://ant.apache.org/ Ant] (Linux distro should just use their package manager to get it, version isn't really important)<br>
 * 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=<ndk>/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin OPT=-dFPC_ARMEL BINUTILSPREFIX=arm-linux-androideabi- INSTALL_PREFIX=<fpc>/fpc_install