[Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available

Bo Berglund bo.berglund at gmail.com
Thu Feb 21 20:50:41 CET 2019

On Thu, 21 Feb 2019 19:06:48 +0100, Joe via lazarus
<lazarus at lists.lazarus-ide.org> wrote:

>But unfortunately, this Lazarus didn't compile my test programs. Error 
>"Project1.lpr(23,0): Error: resource compiler "fpcres" not found, 
>switching to external mode"
>Steps to reproduce:
>Create a new Raspian Stretch (Nov 2018) system, switch locale to German, 
>create Lazarus 2.0.0 with Bo's script.
>with this Lazarus create a new project. Put a ToggleBox ToggleBox1 on 
>Form1; Create an On Change
>event handler for ToggleBox1, content "ShowMessage ('Hello')". Try to 
>'sum'-Checksum of the script: 12667
>Hardware: Pi 3B+
>Result of 'sudo find / -name fpcres':

As I have written in the script it deposits the fpc and lazarus
entirely within the users home dir, thus not polluting the system.
So /home/pi/bin is on path and where the binaries built by make all
and deposited by make install results in using this dir.

On my test machine:
$ which fpcres

I.e. exactly like you have.

So I proceeded to do what you described to replicate.
Compile messages:

Compile Project, Target: /home/pi/tmp/project1: Success, Warnings: 2
project1.lpr(23,0) Warning: "crtbegin.o" not found, this will probably
cause a linking failure
project1.lpr(23,0) Warning: "crtend.o" not found, this will probably
cause a linking failure
(I have seen this crtbegin-crtend warning before, but have forgotten
how to fix it, it is caused by something inside fpc.conf, I believe.)

And finally if I hit the green arrow to run the project it compiles
again and then runs and shows the form with the togglebox. When
clicked the message is show normally.

The only difference from your steps is that I have not changed locale
of my Pi....
And Raspbian is what I already have:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 9.6 (stretch)
Release:        9.6
Codename:       stretch

I don't know any command to use to get any more info regarding

Bo Berglund
Developer in Sweden

More information about the lazarus mailing list