[Lazarus] Fppkg reports RTL not installed - Lazarus 2.2.4/fpc 3.2.2 from sources on Ubuntu

Bo Berglund bo.berglund at gmail.com
Tue Feb 21 13:48:19 CET 2023

On Tue, 21 Feb 2023 11:46:57 +0100, Luca Olivetti via lazarus
<lazarus at lists.lazarus-ide.org> wrote:

>El 21/2/23 a les 11:12, Bo Berglund via lazarus ha escrit:
>> So it is definitely about the Lazarus version 2.2.4!
>I know that this won't help you, but just for the record I have Lazarus 
>2.2.4 both under windows and linux and no popup on either.
>Both self compiled with fpc 3.2.2 (32 bits fpc from installer under 
>windows, 64 bits fpc self compiled under linux).

Now I have installed Lazarus 2.2.4 with fpc 3.2.2 on an RPi4B where I already
had Lazarus 2.0.8 and fpc 3.0.4.

The result is *exactly the same* as what I have described above:

when I first start Lazarus 3.2.2 the customize dialog pops up where I have to
configure various parts of the system:
Lazarus:  /home/pi/dev/lazarus/2.2.4/
Fpc: /home/pi/lib/fpc/3.2.2/ppcarm
Fpc sources: /home/pi/dev/fpc/3.2.2
Make: /usr/bin/make
Debugger: /usr/bin/gdb
Fppkg: /home/pi/.config/fppkg.cfg (from the dropdown selector)

The bottom pane shows this message:
File: /home/pi/.config/fppkg.cfg
Error: there is a problem with the Fppkg configuration. (Fppkg reports that the
RTL is not installed.)
You could try to restore the configuration files automatically, or adapt the
configuration file manually.

At this point I can start the IDE and it looks pretty much normal.

Close Lazarus and open it again and I am back at the Config dialog with a stated
error about the Fppkg item.

My procedure for installing is this:

1. Build freepascal:
Install various dependencies first:
sudo apt install -y libx11-dev libgdk-pixbuf2.0-dev libcairo2-dev
gir1.2-coglpango-1.0 libpangox-1.0-dev xorg-dev libgtk2.0-dev libpango1.0-dev

sudo apt install -y freetds-dev gdb

copy ppcarm version 3.2.0 from another RPi to $HOME/dev/fpc


cd $HOME/dev/fpc
tar -xvf source-release_3_2_2.tar.gz
mv source-release_3_2_2 3.2.2

cd 3.2.2

make clean FPC="$HOME/dev/fpc/ppcarm"
make all FPC="$HOME/dev/fpc/ppcarm"
make install PREFIX="$HOME" FPC="$HOME/dev/fpc/3.2.2/compiler/ppcarm"
rm "$HOME/bin/ppcarm"
ln -sf "$HOME/lib/fpc/3.2.2/ppcarm" "$HOME/bin/ppcarm"
make sourceinstall PREFIX="$HOME" FPC="$HOME/bin/ppcarm"
$HOME/lib/fpc/3.2.2/samplecfg $HOME/lib/fpc/3.2.2 $HOME
mv "$HOME/fpc.cfg" "$HOME/.fpc.cfg"

2. Build Lazarus
cd $HOME/dev/lazarus
tar xvf lazarus-lazarus_2_2_4.tar.gz
mv lazarus-lazarus_2_2_4 2.2.4

cd 2.2.4

make clean
time make bigide
strip -s lazarus
mkdir -p $HOME/.lazarus_2.2.4

3. Create desktop file to launch Lazarus:
nano $HOME/.local/share/applications/lazarus_2.2.4.desktop

Add this to the file:

[Desktop Entry]
Comment=Lazarus IDE 2.2.4
Name=Lazarus 2.2.4
Exec=/home/pi/dev/lazarus/2.2.4/startlazarus --pcp=/home/pi/.lazarus_2.2.4 %f

At this point the start menu "Programming" submenu contains the "Lazarus 2.2.4"
item and Lazarus can be launched.

Any ideas what has gone wrong?
And please note that unlike on Linux (source install as above) I have installed
Lazarus 2.2.4 on Windows using the official installer from SourceForge and the
exact same thing happens...

Bo Berglund
Developer in Sweden

More information about the lazarus mailing list