Difference between revisions of "Build current FPC and Lazarus for Raspbian"
From Lazarus wiki
Jump to navigationJump to searchm |
m |
||
Line 10: | Line 10: | ||
# Install subversion: <code>sudo apt install subversion</code> | # Install subversion: <code>sudo apt install subversion</code> | ||
# Get bootstrap [https://sourceforge.net/projects/freepascal/files/Linux/3.0.2/fpc-3.0.2.arm-linux-eabihf-raspberry.tar/download FPC compiler] | # Get bootstrap [https://sourceforge.net/projects/freepascal/files/Linux/3.0.2/fpc-3.0.2.arm-linux-eabihf-raspberry.tar/download FPC compiler] | ||
+ | # Extract compiler. This will create a <code>fpc-3.0.2.arm-linux</code> directory | ||
+ | # In this directory, as pi user, run <code>./install.sh</code> | ||
+ | # At the four prompts, answer <code>Enter, n, n, n</code>: this is, accept suggested directory <code>/home/pi/fpc-3.0.2</code>, no Textmode IDE, no documentation, no demos. Ignore <code>tar</code> warnings. Note the additional files written to <code>/home/pi</code>: <code>.fpc.cfg</code>, <code>.config/fppkg.cfg</code>, <code>.fppkg/config/default</code>. To delete this bootstrap compiler, these files and the <code>/home/pi/fpc-3.0.2</code> install directory have to be deleted. |
Revision as of 04:21, 27 August 2019
Raspbian Buster (based on Debian 10 Buster) has FPC and Lazarus available in the repositories, but they suffer from the same "design decisions" that don't allow for a nice experience, namely the smooth IDE rebuilding capability based on source packages that is possible with FPC/Lazarus official .deb packages vs the crippled experience with the official Debian/Raspbian packages. One wishes there were official FPC/Lazarus packages for Raspbian as there are for Intel Debian/Ubuntu, which are also frequently updated; not being that the case (at least for now), this page shows the steps for building your own FPC, FPC-source and Lazarus packages for Raspbian.
Requirements:
- Raspberry Pi 4 4 GB
- Latest Raspbian fully up to date
Steps:
- Install subversion:
sudo apt install subversion
- Get bootstrap FPC compiler
- Extract compiler. This will create a
fpc-3.0.2.arm-linux
directory - In this directory, as pi user, run
./install.sh
- At the four prompts, answer
Enter, n, n, n
: this is, accept suggested directory/home/pi/fpc-3.0.2
, no Textmode IDE, no documentation, no demos. Ignoretar
warnings. Note the additional files written to/home/pi
:.fpc.cfg
,.config/fppkg.cfg
,.fppkg/config/default
. To delete this bootstrap compiler, these files and the/home/pi/fpc-3.0.2
install directory have to be deleted.