Sign in Join
Wiki copytemporary

Install on aarch64 Arch or Manjaro: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11## Introduction
22
33As of August 2020 binary packages for Lazarus are not available for Arch or Manjaro Linux on 64 bit ARM (aarch64).
44
55A list of ARM packages for Arch Linux is available [here](https://archlinuxarm.org/packages).
66
77Manjaro is the default Linux version pre-installed on the Pinebook Pro for example.
88
99It is therefore necessary to download the FPC tar installer, FPC source, Lazarus source and compile Lazarus yourself.
1010
1111## Install Free Pascal
1212
13131\. Install binutils
1414
1515``` bash
1616sudo pacman -Syu binutils
1717```
1818
19192\. Download the FPC binaries
2020
2121Download the FPC binaries from [here](https://www.freepascal.org/down/aarch64/linux-hungary.html).
2222
23233\. Unpack and install the FPC binaries
2424
2525``` bash
2626tar -xf fpc-3.2.0.aarch64-linux.tar
2727cd fpc-3.2.0.aarch64-linux
2828sudo sh install.sh
2929```
3030
31314\. Download and unpack the FPC source
3232
3333Download fpc-3.2.0.source.tar.gz from [here](https://www.freepascal.org/down/source/sources.html), and unpack the it into some convenient directory (eg ~/fpc/fpc-3.2.0).
3434
35355\. Test FPC
3636
3737Use an editor to create helloworld.pas:
3838
3939``` pascal
4040Program helloworld;
4141begin
4242 writeln ('Hello world');
4343end.
4444```
4545
4646Compile it:
4747
4848``` bash
4949fpc helloworld.pas
5050Free Pascal Compiler version 3.2.0 [2020/06/05] for aarch64
5151Copyright (c) 1993-2020 by Florian Klaempfl and others
5252Target OS: Linux for AArch64
5353Compiling helloworld.pas
5454Assembling helloworld
5555Linking helloworld
56564 lines compiled, 0.5 sec
5757```
5858
5959Run it:
6060
6161``` bash
6262./helloworld
6363Hello world
6464```
6565
6666## Install Lazarus
6767
68681\. Install the necessary Manjaro packages
6969
7070``` bash
7171sudo pacman -Syu make subversion qt5pas
7272```
7373
74742\. Download the Lazarus source
7575
7676``` bash
7777cd
7878mkdir fpc
7979cd fpc
8080svn co https://svn.freepascal.org/svn/lazarus/trunk lazarus
8181```
8282
83833\. Compile Lazarus
8484
8585``` bash
8686cd lazarus
8787make LCL_PLATFORM=qt5
8888```
8989
9090and run it:
9191
9292``` bash
9393./startlazarus
9494```
9595
9696## Add Lazarus to your KDE start menu
9797
98981\. Create this file
9999
100100``` bash
101101touch ~/.local/share/applications/lazarus.desktop
102102```
103103
1041042\. Open the file you just created in an editor
105105
106106``` bash
107107kate ~/.local/share/applications/lazarus.desktop
108108```
109109
1101102\. Paste in this code
111111
112-`[Desktop Entry]`\
113-`Categories=Development;`\
114-`Comment=IDE`\
115-`Exec=~/fpc/lazarus/startlazarus %f`\
116-`GenericName=IDE`\
117-`Icon=lazarus-icon`\
118-`InitialPreference=9`\
119-`MimeType=text/plain;`\
120-`Name=Lazarus`\
121-`Path=`\
122-`StartupNotify=true`\
123-`Terminal=false`\
124-`TerminalOptions=`\
125-`Type=Application`\
126-`X-DBUS-ServiceName=`\
127-`X-DBUS-StartupType=`\
128-`X-KDE-HasTempFileOption=true`\
129-`X-KDE-SubstituteUID=false`\
130-`X-KDE-Username=`
112+``` pascal
113+[Desktop Entry]
114+Categories=Development;
115+Comment=IDE
116+Exec=~/fpc/lazarus/startlazarus %f
117+GenericName=IDE
118+Icon=lazarus-icon
119+InitialPreference=9
120+MimeType=text/plain;
121+Name=Lazarus
122+Path=
123+StartupNotify=true
124+Terminal=false
125+TerminalOptions=
126+Type=Application
127+X-DBUS-ServiceName=
128+X-DBUS-StartupType=
129+X-KDE-HasTempFileOption=true
130+X-KDE-SubstituteUID=false
131+X-KDE-Username=
132+```
131133
1321343\. Save the file and close the editor
133135
1341364\. 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>
135137
136138A new menu entry called "Lazarus" should appear in KDE's menu.
137139
138140## Acknowledgement
139141
140142[Original source of information](https://forum.manjaro.org/t/how-to-install-fpc-and-lazarus-on-pinebook-pro-arm-64-bit/152872).
141143
142144[Mirror of this article](https://wiki.pine64.org/wiki/Pinebook_Pro/Freepascal_and_Lazarus_IDE_on_Manjaro).
143145
144146---
145147*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](/wiki-contact).*

Back to history