<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    <div class="moz-cite-prefix">On 08/18/2015 01:24 AM, Michael Ring
      wrote:<br>
    </div>
    <blockquote cite="mid:55D2EBA5.9050500@michael-ring.org" type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      This is how I build fpc trunk cross compiler:<br>
      <br>
        echo "Building fpchf-linux from trunk"<br>
        SUBARCH=armv7<br>
        CROSSOPT="-dREVINC -dFPC_ARMHF -CX -CpARMV7A -CfVFPV3_D16
      -OpARMV7A -O2 -OoFASTMATH -XX -Xs"<br>
        //CROSSOPT="-dREVINC -dFPC_ARMHF -CX -CpARMV6 -CfVFPV2 -OpARMV6
      -O2 -OoFASTMATH -XX -Xs"<br>
        OPT="-dFPC_ARMHF"<br>
        make clean buildbase  CROSSINSTALL=1 OS_TARGET=linux
      CPU_TARGET=arm  OPT="$OPT" OVERRIDEVERSIONCHECK=1
      CROSSOPT="$CROSSOPT" BINUTILSPREFIX=arm-linux-gnueabihf- || exit 1<br>
        sudo make installbase CROSSINSTALL=1 OS_TARGET=linux
      CPU_TARGET=arm  OPT="$OPT" OVERRIDEVERSIONCHECK=1
      CROSSOPT="$CROSSOPT" BINUTILSPREFIX=arm-linux-gnueabihf- || exit 1<br>
        sudo mv /usr/local/lib/fpc/3.1.1/ppcrossarm
      /usr/local/lib/fpc/3.1.1/ppcrossarmhf<br>
      <br>
      Please note that the rtl is fine for Raspberry Pi 2 (the new quad
      core board) as this is a version that uses armv7 commandset.<br>
      <br>
      For old Raspberry Pi you need to use the commented out CROSSOPT,
      this will create rtl that is suitable for old raspberries.<br>
      <br>
      You should not try to use fpc 2.6.4 as this compiler does not
      support armhf. Most likely the 3.0 pre-release will compile the
      same way, but I never tried.<br>
      <br>
      You need to have cross-binutils installed as you need
      arm-linux-gnueabihf-* tools to be able to successfully compile. <br>
      <br>
      Michael<br>
        <br>
    </blockquote>
    Hi Michael,<br>
    <br>
    Just to make sure, I run the script on the desktop right? just to
    make sure its not to be ran on the Pi.<br>
    <br>
    Thanks again!<br>
    <br>
    Chris<br>
  </body>
</html>