9 Aug 2018... a simple...
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install fpc
sudo apt-get install lazarus
... was all I needed to get a usable Lazarus 1.6.2 up and running on my RPi 3 b, with 16G SD card, Raspbian 9. An entry to launch Lazarus just appeared in the Programming category from the main menu.
Mastering accessing the GPIO has been... "interesting". The code sample for "Native Hardware Access", turn LED on and off, within http://wiki.freepascal.org/Lazarus_on_R ... are_access very nearly
worked for me. All I had to do to get them to work was to add a sleep(1000); in the FormActivate code, just after the...
Code: Select all
gReturnCode := fpwrite(fileDesc, PIN_17, 2);
fileDesc := fpopen('/sys/class/gpio ... 17, 2);
... sets things up for working with pin 17.... and you have to cause a moment to pass, so set up can be completed, before USING what that code sets up. There may well be similar bits in the other code examples, e.g. the code to READ a pin.
New to Pi and Linux generally... old to computers. Using Raspbian 9 (Stretch) on a Pi 3 B (ver 1.2), apt-get update, apt-get upgrade at least as recently as 5 Aug 2018