[Lazarus] Lazarus on Raspberry Pi 3

Bo Berglund bo.berglund at gmail.com
Tue Feb 28 23:53:06 CET 2017


On Tue, 28 Feb 2017 16:34:45 +0000, Paulo Costa via Lazarus
<lazarus at lists.lazarus-ide.org> wrote:

>I'm using Lazarus on a Raspberry Pi 3.
>I have tested a few ways to get it working but the best one seems to be 
>Bo Berglund's script and starting compiler. (Thanks)
>
>I had just one problem with it:
>an error would occur when the new fpc is being installed and I had to 
>change line 150 from
>
>make install OPT="$OPTIONS" PREFIX=/home/pi || error_exit "$LINENO: 
>Cannot make install! Aborting"
>
>to
>
>make install FPC="$FPCDIR/ppcarm" OPT="$OPTIONS" PREFIX=/home/pi || 
>error_exit "$LINENO: Cannot make install! Aborting"
>
>Apparently, this line still needs FPC="$FPCDIR/ppcarm"

Hmmm,
I thought that the previous lines created the new FPC compiler, which
we want to install. The added FPC="$FPCDIR/ppcarm" will use the seed
compiler rather than the one created by the previous make as far as I
understand and that is not what we want.

For others below are the affected lines (with the error exception code
removed). Note that the seed compiler is located at "$FPCDIR/ppcarm"
and the cd command moves to the top of the checked out FPC code by
version number.

echo "------- Building fpc and lazarus --------"
echo "Building and installing version $FPCVER of FPC"
cd "$FPCDIR/$FPCVER"
make clean
make all FPC="$FPCDIR/ppcarm" OPT="$OPTIONS"
make install OPT="$OPTIONS" PREFIX=/home/pi

So what will be the difference when using the above compared to:

make install FPC="$FPCDIR/ppcarm" OPT="$OPTIONS" PREFIX=/home/pi

I will have to make a test next time I have a blank RPi3 to install
on. That could happen with FPC 3.0.2 now being released.

>
>I'm using Raspbian version 8.0
>Linux raspberrypi 4.4.38-v7+

What command(s) gives you this information?


-- 
Bo Berglund
Developer in Sweden



More information about the Lazarus mailing list