New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Releases, updates and announcements from the Ultibo team.
User avatar
Ultibo
Site Admin
Posts: 2280
Joined: Sat Dec 19, 2015 3:49 am
Location: Australia

New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby Ultibo » Thu Oct 12, 2017 10:49 am

In response to the ongoing interest in using various Linux distributions as a platform for Ultibo development we've taken a further step beyond the existing wiki instructions and created a universal installer script that can download, build and configure the Ultibo versions of Free Pascal and Lazarus into a working installation.


Warning, warning, warning

Let's cover this bit first, the installation script defaults to installing into the folder $HOME/ultibo/core, you will be prompted to change the folder if you choose and to confirm your choice.

If the folder already exists you will be prompted to delete it, answering Yes will remove the folder completely, this operation CANNOT be undone.

You have been warned!


Using the installation script

To use the installer script simply download the ultiboinstaller.sh file and perform the following two steps:

Code: Select all

chmod +x ultiboinstaller.sh
./ultiboinstaller.sh

The script will provide some initial information and then prompt you to confirm various choices after which it will proceed to download, build and install.


Notes

Debian installation requires at least 2048MB of RAM, anything less may result in an error while building Lazarus. If you do not have 2048MB of physical RAM you may need to increase the swap file size as per the Raspbian information below.

Because the Raspberry Pi only has 1024MB of memory at most, installation on Raspbian requires a swap file size of at least 1000MB, anything less may result in an error while building Lazarus.

To increase the size of the swap file follow these simple instructions courtesy of our good friend Hans Otten:

Code: Select all

sudo nano /etc/dphys-swapfile

Edit the CONF_SWAPSIZE value to be 1000 or greater

Code: Select all

sudo /etc/init.d/dphys-swapfile stop
sudo /etc/init.d/dphys-swapfile start
ls -lh /var

And check that the file "swap" is now the size specified above


We don't expect that this script will work in every case, there are simply far too many possible combinations to account for, the script is based on the experience of the folks at http://getlazarus.org and so many of the details are tried and proven.

If you are willing to test we would appreciate your feedback.
Ultibo.org | Make something amazing
https://ultibo.org
pik33
Posts: 887
Joined: Fri Sep 30, 2016 6:30 pm
Location: Poland
Contact:

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby pik33 » Thu Oct 12, 2017 3:17 pm

Edit the CONF_SWAPSIZE value to be 1000 or greater


Or add a swap partition instead (this is my case) - making a swap partition on external USB HD will speed up the build process.
develone
Posts: 315
Joined: Wed Dec 28, 2016 7:40 pm
Location: El Paso Tx USA

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby develone » Thu Oct 12, 2017 8:21 pm

Started testing ultiboinstaller with 1000M swap.
Also testing on Ubuntu 16.04
Will provide status when both complete
Now maybe will not need the WiNE ultibo
Thanks
develone
Posts: 315
Joined: Wed Dec 28, 2016 7:40 pm
Location: El Paso Tx USA

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby develone » Thu Oct 12, 2017 9:11 pm

I tested the Lazarus building of HelloTiger for the RPi & RPi2. both of theses created a kernel.img & kernel7.img. These ran okay on the a Pi Zero W & a RPi3B.
My Ubuntu 16.04 x86_64 completed without errors. Will test building on that installation shortly.
:D :D :D :D :D :D :D
Thanks
Attachments
laz_pi_sm.png
laz_pi_sm.png (245.36 KiB) Viewed 2893 times
develone
Posts: 315
Joined: Wed Dec 28, 2016 7:40 pm
Location: El Paso Tx USA

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby develone » Thu Oct 12, 2017 9:30 pm

Testing Ubuntu 16.04
tested creating the kernel.img for HelloTiger which worked okay. :D :D
Attachments
laz_ubuntu.png
laz_ubuntu.png (123.05 KiB) Viewed 2891 times
Gavinmc42
Posts: 1656
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby Gavinmc42 » Fri Oct 13, 2017 2:07 pm

Linux Install script works. nearly ;)
Looks a bit different than the Windows version in Wine
Linux Mint 18+ 2GB mem 2GB swap

But it only has the source window, no message window.
I can get other desktop windows but not the compile/build messages.
Gavinmc42
Posts: 1656
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby Gavinmc42 » Fri Oct 13, 2017 2:17 pm

Ok, did a rebuild and now I have a message windows :D
Need to get them docked and not floating but it's nearly there.

Tomorrow try on Raspbian?. er later today ;)
develone
Posts: 315
Joined: Wed Dec 28, 2016 7:40 pm
Location: El Paso Tx USA

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby develone » Fri Oct 13, 2017 2:26 pm

Go to the top of the window I had a similar problem on Ubuntu or maybe full window. I works better on ssh.

Just a test.
Gavinmc42
Posts: 1656
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby Gavinmc42 » Sun Oct 15, 2017 2:39 am

Windows/Wine will compile Aarch64, Linux install script version has issues.

Compiler "/home/gavin/ultibo/core/fpc/bin/fpc" does not support target aarch64-ultibo

Think i need to delete all the old versions and try again.

Tried "helloworld" example in the Windows/Wine version Pi3 Aarch64.
Been a while, do Aarch64 Pi3 examples works? only got the 4 squares.
Compiled as kernel7.img and it worked.
User avatar
Ultibo
Site Admin
Posts: 2280
Joined: Sat Dec 19, 2015 3:49 am
Location: Australia

Re: New Ultibo FPC and Lazarus Linux installation script (Testers wanted)

Postby Ultibo » Sun Oct 15, 2017 4:46 am

Gavinmc42 wrote:Windows/Wine will compile Aarch64, Linux install script version has issues.

The script doesn't build the aarch64 cross compiler or RTL because aarch64 is still an experimental only target.

By the time it becomes officially supported we will have updated the script to include that.

PS. Anyone wanting to play with aarch64 (and help get it working :o) should be able to adapt the original instructions in the wiki to build their own cross compiler and RTL if they want to.
Ultibo.org | Make something amazing
https://ultibo.org

Return to “Ultibo”

Who is online

Users browsing this forum: No registered users and 1 guest