cosmicbob
Posts: 2
Joined: Sat Apr 06, 2013 2:54 pm

Lazarus/Free Pascal running on a Raspberry Pi 4 :)

Mon Aug 26, 2019 11:26 pm

Image

Runs Great :)
Attachments
pi4_Lazarus.png
pi4_Lazarus.png (174.96 KiB) Viewed 326 times

User avatar
Gavinmc42
Posts: 3621
Joined: Wed Aug 28, 2013 3:31 am

Re: Lazarus/Free Pascal running on a Raspberry Pi 4 :)

Sun Sep 01, 2019 7:48 am

Try the Laz OpenGL examples.
There is some more in the fpc OpenGL packages.
Those FreeGLUT ones are fun.
So much stuff just works now.

Buster is easy, getting Laz/fpc on Pi4 Gentoo64 OS is bit harder.
The standard build stuff is too old for aarch64.
The binary version of 3.3.1 fpc works ;)

I expect by the time fpc 3.2 is released it will all work.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

ProDigit
Posts: 374
Joined: Tue Aug 30, 2011 1:24 am

Re: Lazarus/Free Pascal running on a Raspberry Pi 4 :)

Sun Sep 01, 2019 9:39 am

I have it on the 3B+, and even tried it on the zero,
But the resolution I'm running the zero at, was too low (640pix) to comfortably display the gui.

Works fine on the 3B+ as well!
Last edited by ProDigit on Sun Sep 01, 2019 10:03 am, edited 1 time in total.

User avatar
Gavinmc42
Posts: 3621
Joined: Wed Aug 28, 2013 3:31 am

Re: Lazarus/Free Pascal running on a Raspberry Pi 4 :)

Sun Sep 01, 2019 9:57 am

For the Zero use the text based IDE fp, is comes with fpc.
Laz is not needed for those fpc package examples either.

The PiCore TC Desktop is the only one I'm happy with on single core Pi's.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

ProDigit
Posts: 374
Joined: Tue Aug 30, 2011 1:24 am

Re: Lazarus/Free Pascal running on a Raspberry Pi 4 :)

Sun Sep 01, 2019 10:10 am

Gavinmc42 wrote:
Sun Sep 01, 2019 9:57 am
For the Zero use the text based IDE fp, is comes with fpc.
Laz is not needed for those fpc package examples either.

The PiCore TC Desktop is the only one I'm happy with on single core Pi's.
The zero W runs Raspbian full desktops pretty ok, with a slight optimization of the OS, and an overclock.
I do run it at 1024x600 pixels, or 720p, which allows me to run a GUI with 24-32MB of Vram. Freeing some RAM memory.
It does load a bit slow, and doesn't compile very fast, but most other things it does quite well.
It's more of a proof of concept that it can be done, on a $15 PC!

I doubt TC will make a big difference, as loading times don't change, and Raspbian desktop uses less than 1% of CPU to run.
The issue with tc is program compatibility. Finding up to date, good coding editors or IDEs on that is hard (if not web based).

User avatar
Gavinmc42
Posts: 3621
Joined: Wed Aug 28, 2013 3:31 am

Re: Lazarus/Free Pascal running on a Raspberry Pi 4 :)

Sun Sep 01, 2019 10:26 am

Finding up to date, good coding editors or IDEs on that is hard (if not web based).
Yep I pretty much settle for Geany as my stuff is pretty simple.
A thousand lines of code is a big app for me.

I am impressed with Thonny now on a Pi4, makes Python less painful.

Not sue why people like VS or Eclipse, to big and bloaty for me.

I have yet to try Buster on a single core, been spending lots of time learning how to use Pi4's as Desktop PC replacements.
C based coding normally uses lot of external dependencies
I don't need them so much with Laz/fpc as those comes with lots of libs installed as standard.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Return to “Other programming languages”