Install on aarch64 Arch or Manjaro
Introduction
As of August 2020 binary packages for Lazarus are not available for Arch or Manjaro Linux on 64 bit ARM (aarch64).
A list of ARM packages for Arch Linux is available here.
Manjaro is the default Linux version pre-installed on the Pinebook Pro for example.
It is therefore necessary to download the FPC tar installer, FPC source, Lazarus source and compile Lazarus yourself.
Install Free Pascal
1. Install binutils
sudo pacman -Syu binutils2. Download the FPC binaries
Download the FPC binaries from here.
3. Unpack and install the FPC binaries
tar -xf fpc-3.2.0.aarch64-linux.tar
cd fpc-3.2.0.aarch64-linux
sudo sh install.sh4. Download and unpack the FPC source
Download fpc-3.2.0.source.tar.gz from here, and unpack the it into some convenient directory (eg ~/fpc/fpc-3.2.0).
5. Test FPC
Use an editor to create helloworld.pas:
Program helloworld;
begin
writeln ('Hello world');
end.Compile it:
fpc helloworld.pas
Free Pascal Compiler version 3.2.0 [2020/06/05] for aarch64
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Linux for AArch64
Compiling helloworld.pas
Assembling helloworld
Linking helloworld
4 lines compiled, 0.5 secRun it:
./helloworld
Hello worldInstall Lazarus
1. Install the necessary Manjaro packages
sudo pacman -Syu make subversion qt5pas2. Download the Lazarus source
cd
mkdir fpc
cd fpc
svn co https://svn.freepascal.org/svn/lazarus/trunk lazarus3. Compile Lazarus
cd lazarus
make LCL_PLATFORM=qt5and run it:
./startlazarusAdd Lazarus to your KDE start menu
1. Create this file
touch ~/.local/share/applications/lazarus.desktop2. Open the file you just created in an editor
kate ~/.local/share/applications/lazarus.desktop2. Paste in this code
[Desktop Entry]
Categories=Development;
Comment=IDE
Exec=~/fpc/lazarus/startlazarus %f
GenericName=IDE
Icon=lazarus-icon
InitialPreference=9
MimeType=text/plain;
Name=Lazarus
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-HasTempFileOption=true
X-KDE-SubstituteUID=false
X-KDE-Username=3. Save the file and close the editor
4. Create a 48x48 xpm format icon and save it to /usr/share/pixmaps/lazarus-icon.xpm You can download mine from http://pscan.uk/images/lazarus-icon.xpm
A new menu entry called "Lazarus" should appear in KDE's menu.
Acknowledgement
Original source of information.
From the Free Pascal wiki, page "Install on aarch64 Arch or Manjaro", as it stood on 2020-12-06 after a change by Dieselnutjob, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.