Difference between revisions of "User:Dieselnutjob/Pinebook Pro/Freepascal and Lazarus IDE on Manjaro"
Jump to navigation
Jump to search
Dieselnutjob (talk | contribs) |
Dieselnutjob (talk | contribs) |
||
Line 57: | Line 57: | ||
<nowiki>cd ~/fpc/lazarus | <nowiki>cd ~/fpc/lazarus | ||
./startlazarus</nowiki> | ./startlazarus</nowiki> | ||
== Add Lazarus to your KDE start menu == | |||
<nowiki>touch ~/.local/share/applications/lazarus.desktop</nowiki> | |||
Edit the file | |||
<nowiki>kate ~/.local/share/applications/lazarus.desktop</nowiki> | |||
Paste in this code | |||
<nowiki>[Desktop Entry] | |||
Categories=Development; | |||
Comment=IDE | |||
Exec=~/fpc/lazarus/startlazarus %f | |||
GenericName=IDE | |||
Icon=text-editor | |||
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=</nowiki> | |||
Save the file |
Revision as of 12:15, 2 August 2020
How to install Freepascal FPC 3.20
Install binutils
sudo pacman -Syu binutils
Download fpc from here https://www.freepascal.org/down/aarch64/linux-hungary.html
Unpack and install
tar -xf fpc-3.2.0.aarch64-linux.tar cd fpc-3.2.0.aarch64-linux sudo sh install.sh
Test it:-
Use a test editor to create helloworld.pas
Program helloworld; begin writeln ('Hello world'); end.
Compile and run 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
./helloworld Hello world
How to compile Lazarus
Install necessary Manjaro packages
sudo pacman -Syu make subversion qt5pas
Download Lazarus source
cd ~ mkdir fpc cd fpc svn co https://svn.freepascal.org/svn/lazarus/trunk lazarus cd lazarus make LCL_PLATFORM=qt5
Download fpc-3.2.0.source.tar.gz from https://www.freepascal.org/down/source/sources.html and unpack the fpc src in some convenient folder (I used ~/fpc/fpc-3.2.0)
Run it
cd ~/fpc/lazarus ./startlazarus
touch ~/.local/share/applications/lazarus.desktop
Edit the file
kate ~/.local/share/applications/lazarus.desktop
Paste in this code
[Desktop Entry] Categories=Development; Comment=IDE Exec=~/fpc/lazarus/startlazarus %f GenericName=IDE Icon=text-editor 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=
Save the file