Wiki copymirror

This is a mirror of the wiki at pascal.chat. Editing, history and sign-in are there.

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

bash
sudo pacman -Syu binutils

2. Download the FPC binaries

Download the FPC binaries from here.

3. Unpack and install the FPC binaries

bash
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:

pascal
Program helloworld;
begin
  writeln ('Hello world');
end.

Compile it:

bash
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:

bash
./helloworld 
Hello world

Install Lazarus

1. Install the necessary Manjaro packages

bash
sudo pacman -Syu make subversion qt5pas

2. Download the Lazarus source

bash
cd
mkdir fpc
cd fpc
svn co https://svn.freepascal.org/svn/lazarus/trunk lazarus

3. Compile Lazarus

bash
cd lazarus
make LCL_PLATFORM=qt5

and run it:

bash
./startlazarus

Add Lazarus to your KDE start menu

1. Create this file

bash
touch ~/.local/share/applications/lazarus.desktop

2. Open the file you just created in an editor

bash
kate ~/.local/share/applications/lazarus.desktop

2. Paste in this code

pascal
[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.

Mirror of this article.


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.

Revision 2, last changed by WikiArchive .