Install on aarch64 Arch or Manjaro
│ English (en) │
This article applies to ARM only.
See also: Multiplatform Programming Guide
This article applies to Linux only.
See also: Multiplatform Programming Guide
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 binutils
2. 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.sh
4. 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 sec
Run it:
./helloworld
Hello world
Install Lazarus
1. Install the necessary Manjaro packages
sudo pacman -Syu make subversion qt5pas
2. Download the Lazarus source
cd
mkdir fpc
cd fpc
svn co https://svn.freepascal.org/svn/lazarus/trunk lazarus
3. Compile Lazarus
cd lazarus
make LCL_PLATFORM=qt5
and run it:
./startlazarus
1. Create this file
touch ~/.local/share/applications/lazarus.desktop
2. Open the file you just created in an editor
kate ~/.local/share/applications/lazarus.desktop
2. 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.