sudo apt install fpc
I have had to make a 'tweak' to the logic to prevent 'Invalid floating point operation' to be thrown.
rootNode.Add('id', 0.0);
instead of
rootNode.Add('id', 0);
On Windows and Raspberry Pi rootNode.Add('id', 0);
works just fine.
There's no native x64 compiler for Windows. You need to first download the 32 bit compiler from
https://www.freepascal.org/down/i386/win32.html
Then you need to install the cross compiler
https://www.freepascal.org/down/x86_64/win64.html
Compile for x64
fpc -Px86_64 main.pas
Run main.exe
Windows 11
Ubuntu 24.04
Raspberry Pi 5