Page 5 of 5

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

Posted: Wed Jan 30, 2019 1:27 am
by Gavinmc42
Garry,
I am trying to get Ultibo installed on an aarch64 OS Pi.
There is even now a Debian 32/64bit mixed version.
https://github.com/sakaki-/raspbian-nspawn-64

There is no 3.0.2 build version for aarch64, but there is a 3.3.1 and 3.2.0 beta.
Can these be used to build Ultibo?
I have started working my way thorugh the script but there is a lot to learn/modifiy/try.

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

Posted: Sat Feb 02, 2019 12:36 am
by Ultibo
Gavinmc42 wrote:
I am trying to get Ultibo installed on an aarch64 OS Pi.
There is even now a Debian 32/64bit mixed version.
https://github.com/sakaki-/raspbian-nspawn-64

There is no 3.0.2 build version for aarch64, but there is a 3.3.1 and 3.2.0 beta.
Can these be used to build Ultibo?

As best as I can figure you won't be able to use either 3.3.1 or 3.2.0 to build an aarch64 binary (that runs on aarch64 Linux and outputs code for Ultibo) because the 3.1.1 version we are currently using didn't have complete support for aarch64.

If you had the 32bit libraries etc installed you could probably build a 32bit binary to run on aarch64 Linux but that would really be no different to what the current script does.

We'll be looking to update to a later FPC release in the not too distant future, at that point it should be possible to do pure aarch64.

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

Posted: Sat Feb 02, 2019 6:49 am
by Gavinmc42
Sakaki just made a dual 32/64bit Debian Raspbian.
sudo apt-get install fpc gets the 3.0.0 versions, arm and aarch64.

Debian has split Lazarus and FPC now.
Manually installing has caused me path issues, examining the above installs should help ;)

Will Ultibo build with 3.0.0?

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

Posted: Sun Feb 03, 2019 12:02 am
by Ultibo
Gavinmc42 wrote:Will Ultibo build with 3.0.0?

Yes it should, although if you have a dual arm / aarch64 Debian based system then our installer script should also pretty much work without changes.

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

Posted: Sun Feb 03, 2019 10:17 am
by Gavinmc42
Well it does something, no aarch64 option so I tried manually line by line.
Path issues but it looks like the aarch64 fpc 3.0.0 can at least start to build a cross compiler for armhf.
The installer script will need some serious editing,
Probably not a lot of people compiling fpc armhf on aarch64 yet.

Because of the path issues I have no idea where the binary ended up.
And only having this dual 32/64bit Raspbiin/Debian for a few days I am still learning it.
Probably time to learn how debs and ebuilds work?

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

Posted: Sun Feb 03, 2019 11:26 pm
by Ultibo
Gavinmc42 wrote:The installer script will need some serious editing

The only change that should be needed to build a 32 bit version of Ultibo FPC and Lazarus on an aarch64 system (with dual libraries present) would be to check the output of uname -m and add an extra if statement in the section between lines 277 and 297 that simply uses the same CPU (arm) and COMPILER (ppcarm) values as armv6 and armv7.

For a pure aarch64 build (not supported yet) those values would change to be aarch64 and ppca64.

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

Posted: Thu Feb 07, 2019 11:09 am
by Gavinmc42
Time for me to apply for my seniors card before I forget :oops:
Never noticed these.
https://github.com/ultibohub/Tools/releases

Time to add a fpc-3.0.2-aarch64-linux version.

I jumped at using Ultibo because I knew I would never grok Linux well enough.
2+ years with Ultibo and I feel the same way, still so much to learn.
It is like discovering Lego as a 5 year old, only using the 2x4 blocks and having dreams bigger than my capability.
Perhaps one day I will understand the big kids creations?

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

Posted: Sat Apr 13, 2019 10:15 am
by Gavinmc42
Found there's a new Getlazarus update for Pi's.
https://www.getlazarus.org/setup/?download#linux

New Raspbian came out, but not 4.19 yet, so time to do a clean install of the stuff I now use.
Now three choices of Raspbian, I use the Desktop one without the fluff ;)
Takes a bit of time to build both Laz/fpc's but apart from a few missing dependencies it seems to be installing ok.

So is this latest setup good enough to start some serious coding on the Pi?

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

Posted: Mon Apr 15, 2019 6:08 am
by pik33
Takes a bit of time to build both Laz/fpc's but apart from a few missing dependencies it seems to be installing ok.


install standard Lazarus on Raspbian before installing Ultibo. This will add needed libraries. And you will have Lazarus to code for Raspbian.

Code: Select all

sudo apt-get install lazarus

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

Posted: Mon Apr 15, 2019 7:43 am
by Gavinmc42
Yep, I did install latest 2.0.0 Laz and 3.31 fpc on Raspbian 4.14.98;)

Trying to figure out how to use it for OpenVG coding.
Thaddy did a fpc version of AJ Starks stuff but that was years ago.
https://www.raspberrypi.org/forums/view ... p?p=331264

Wanted to try porting with the latest fpc, but my pascal skill are still rudimentary.
That's the other reason for installing a more current laz/fpc.
Lots more examples to try and learn.

And I can do this stuff too.
http://wiki.freepascal.org/Lazarus_on_Raspberry_Pi
Not sure yet if it will be a waste of time or if it will help lift my game in Ultibo.
I am hoping the FPC tutorials etc will just work in Raspbian Laz/fpc.