Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-02

Lazarus on Raspberry Pi 3

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Paulo Costa

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"

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

Paulo Costa

Reply by email

Bo Berglund
to Paulo Costa
Paulo Costa wrote 17 lines
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

Reply by email

Paulo Costa
to Bo Berglund

On 28-Feb-17 22:53, Bo Berglund via Lazarus wrote:

...

> I'm using Raspbian version 8.0 > Linux raspberrypi 4.4.38-v7+ What command(s) gives you this information?

cat /etc/debian_version
"8.0"

uname -a
"Linux raspberrypi 4.4.38-v7+ ", plus other things.

Paulo Costa

Reply by email

Paulo Costa
to Bo Berglund: On Tue, 28 Feb 2017 16:34:45 +0000, Paulo Costa via Lazarus I thought that the previous…
Bo Berglund wrote 5 lines
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.

The error that I've got was something like:
make: -iVSPTPSOTO: Command not found

Searching for that error, I found that it means that fpc is not yet installed (of course, the make install command meant to do that)

I figured that, without any compiler in the path, "make install" needed to know where the starting compiler was like "make all" also needed...

It seems to work:
fpc -i
gives me the date of when I compiled it: 2017/01/27

while the downloaded ppcarm:
./ppcarm -i
gives 2016/03/05

Paulo Costa

Reply by email

Bo Berglund
to Paulo Costa: ... cat /etc/debian_version "8.0" uname -a "Linux raspberrypi 4.4.38-v7+ ", plus other…
Paulo Costa wrote 15 lines
On 28-Feb-17 22:53, Bo Berglund via Lazarus wrote: ... >> I'm using Raspbian version 8.0 >> Linux raspberrypi 4.4.38-v7+ > > What command(s) gives you this information? cat /etc/debian_version "8.0" uname -a "Linux raspberrypi 4.4.38-v7+ ", plus other things.

Thanks, this is what I have:
pi at rpi3-jessie:~ $ cat /etc/debian_version
8.0
pi at rpi3-jessie:~ $ uname -a
Linux rpi3-jessie 4.4.13-v7+ #894 SMP Mon Jun 13 13:13:27 BST 2016 armv7l GNU/Linux

Bo Berglund Developer in Sweden

Reply by email