Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-12

Raspberry Pi bundles now available

12 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Anthony Walter

I've uploaded a few Raspberry Pi files and scripts at http://www.getlazarus.org

This is a minimal fpc 3.0.0 compiler. It's stripped down to be small and only includes the compiler, the text mode IDE, and the run time library. It's a good starting point on the Raspberry Pi if you want to do command line compiling using only the rtl or if you want to use it as a starting point for building the fpc trunk or other compiler branches on your Raspberry Pi. Total install size will be 45MB, for those of you conscious about using up the limited space on your Pi's SD card.

http://cache.getlazarus.org//archives/fpc-3.0.0.raspberry-min.tar.gz

Just download the above then "fpc-3.0.0.raspberry-min.tar.gz && ./setup.sh". The setup does not need super user rights. It will let you choose a fpc compiler installation location, somewhere under your $HOME, and give you the option to create a shortcut to a terminal where the fpc environment is ready for you. That is with the minimal fpc 3.0 in your path and fpc.cfg environment variable configured.

Another, possibly more useful bundle I've created is Free Pascal 3.0 with Lazarus for the Raspberry Pi. I've taken great care to reduce the install size of both fpc and Lazarus with this bundle for the Pi.

I've eliminated a lot of fpc packages which don't make sense to have on a Pi. All cross platform package and runtime files have been removed (I don't imagine people cross compiling from the Pi to say Windows for example). I've also eliminate the lazarus tool sources, source images files (res files remain), and quite a few components which are very unlikely to be used on the Pi. Basically I've gotten the install size from a full fpc and lazarus from 1.5GB down to around 216MB.

If you're interested in trying this version of Free Pascal 3.0 with Lazarus, here is where you can get it:

http://www.getlazarus.org/setup/?download#raspberry_pi

If you have a Pi, just follow the instructions in the setup script. You can choose your install folder and have the option to creaate a application shortcut you can pin to the Pi menu,

In the next week I'll be working on updating the other platform installers to include a minimal versiomn, as well as updated install scripts where you can choose you install folder and create more shortcuts, be they fpc terminal shortcuts or applicationd esktop shortcuts.

Pi users, if your interested I am developing an SDL 2 installer along with a few bare demos which should work with either the minimal or the more complete compilers mentioned above. Let me know if you're inerested in using the SDL 2 on the Pi and I may setup a forum for it. -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151206/af9f972d/attachment.html>

Alexandre privé
to Anthony Walter

A great news! I try it when i can, i spend lot of time without succes for compil on raspberry. must be put in FAQ

Thanks for your work.

Earlier message 13 lines
From: Anthony Walter Sent: Monday, December 07, 2015 4:54 AM To: Lazarus mailing list Subject: Re: [Lazarus] Raspberry Pi bundles now available A correction. The Raspberry Pi minimal compiler url is: http://cache.getlazarus.org/archives/fpc-3.0.0.raspberry-min.tar.gz -------------------------------------------------------------------------------- --
Anthony Walter
to Bo Berglund

All versions of the Pi use an ARM chip, which is a specific reduced instruction set (RISC) chip architecture. I believe they are compatible save for their VPF or hard float processors. Raspbian, the required OS for this bundle, has general hard float support built into its libraries.

When you type "fpc -ic" using my build, this will be the result:

ARMV3
ARMV4
ARMV4T
ARMV5
ARMV5T
ARMV5TE
ARMV5TEJ
ARMV6
ARMV6K
ARMV6T2
ARMV6Z
ARMV6M
ARMV7
ARMV7A
ARMV7R
ARMV7M
ARMV7EM

This means the user can add any arm specific architecture optimization to his programs by adding -CpARMV7 (or anything from the list above) when compiling. I've had a few people on reddit contact me and so far the issues were minor (I changed the requirement to force gtk+ dev packages be installed), but so far they all say the IDE was fast and now that the install has been correct it works smoothly.

If you or anyone has an original Pi, Pi B, or even the Pi Zero, give it a try. I added a Raspberry Pi forum to discuss technical issues should you want to notify me of issue or need help resolving some specific problem:

http://www.getlazarus.org/forums/viewforum.php?f=22

What's next is me writing an SDL 2 install page (requires the user to make and install SDL 2 from source) or I may just write an SDL 2 setup script, perhaps appending it to the original setup as an option. Then I will write a few Raspberry Pi specific full screen graphic and sound demos (source code) which should easily be compile and run using either the minimal compiler or Lazarus for Pi.

Again, if anyone wants to contribute, just send me note. -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151208/2bdd8a01/attachment.html>

Donald Ziesig
to Anthony Walter: I've uploaded a few Raspberry Pi files and scripts at http://www.getlazarus.org This is a…

Hi Anthony,

What version of Lazarus is installed with this script?

Thanks for the great work.

Don Ziesig

Anthony Walter wrote 60 lines
I've uploaded a few Raspberry Pi files and scripts at http://www.getlazarus.org This is a minimal fpc 3.0.0 compiler. It's stripped down to be small and only includes the compiler, the text mode IDE, and the run time library. It's a good starting point on the Raspberry Pi if you want to do command line compiling using only the rtl or if you want to use it as a starting point for building the fpc trunk or other compiler branches on your Raspberry Pi. Total install size will be 45MB, for those of you conscious about using up the limited space on your Pi's SD card. http://cache.getlazarus.org//archives/fpc-3.0.0.raspberry-min.tar.gz Just download the above then "fpc-3.0.0.raspberry-min.tar.gz && ./setup.sh". The setup does not need super user rights. It will let you choose a fpc compiler installation location, somewhere under your $HOME, and give you the option to create a shortcut to a terminal where the fpc environment is ready for you. That is with the minimal fpc 3.0 in your path and fpc.cfg environment variable configured. Another, possibly more useful bundle I've created is Free Pascal 3.0 with Lazarus for the Raspberry Pi. I've taken great care to reduce the install size of both fpc and Lazarus with this bundle for the Pi. I've eliminated a lot of fpc packages which don't make sense to have on a Pi. All cross platform package and runtime files have been removed (I don't imagine people cross compiling from the Pi to say Windows for example). I've also eliminate the lazarus tool sources, source images files (res files remain), and quite a few components which are very unlikely to be used on the Pi. Basically I've gotten the install size from a full fpc and lazarus from 1.5GB down to around 216MB. If you're interested in trying this version of Free Pascal 3.0 with Lazarus, here is where you can get it: http://www.getlazarus.org/setup/?download#raspberry_pi If you have a Pi, just follow the instructions in the setup script. You can choose your install folder and have the option to creaate a application shortcut you can pin to the Pi menu, In the next week I'll be working on updating the other platform installers to include a minimal versiomn, as well as updated install scripts where you can choose you install folder and create more shortcuts, be they fpc terminal shortcuts or applicationd esktop shortcuts. Pi users, if your interested I am developing an SDL 2 installer along with a few bare demos which should work with either the minimal or the more complete compilers mentioned above. Let me know if you're inerested in using the SDL 2 on the Pi and I may setup a forum for it. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151218/a9172a47/attachment.html>

Bo Berglund
to Anthony Walter: I've uploaded a few Raspberry Pi files and scripts at http://www.getlazarus.org This is a…
Anthony Walter wrote 14 lines
Another, possibly more useful bundle I've created is Free Pascal 3.0 with Lazarus for the Raspberry Pi. I've taken great care to reduce the install size of both fpc and Lazarus with this bundle for the Pi. If you're interested in trying this version of Free Pascal 3.0 with Lazarus, here is where you can get it: http://www.getlazarus.org/setup/?download#raspberry_pi If you have a Pi, just follow the instructions in the setup script. You can choose your install folder and have the option to creaate a application shortcut you can pin to the Pi menu,

Hi,
I need a working lazarus on a RPi1B 256MB in order to compile a simple program that I have converted from Delphi7 on an RPi2B. On the RPi2B it works just fine but if I transfer it to the RPi1B it causes an exception on start. I guess it is because some hardware option has been compiled into it on the RPi2B. So I need to compile on the actual hardware...

I downloaded your script using wget, it was a bit hard because it resulted in a strange looking file name. Solved now anyway.

When I ran the script it complained about missing packages and suggested a sudo command to run in order to get it installed. So I executed that and after a while could restart your script and it went a long way, downloading 62MB in about 15 minutes and then started to run a lot of lines across the screen.
But in the end this resulted in:
<quote>
...
lazarus/components/cairocanvas/Makefile.compiled
lazarus/fpmake_add.inc
lazarus/lazbuild
An unhandled exception occurred at $00013870:
EAccessViolation: Access violation
$00013870

cp: cannot stat
?/home/pi/Development/FreePascal/lazarus/lazarus.desktop?: No such file or directory
mv: cannot stat
?/home/pi/Development/FreePascal/lazarus/lazarus.desktop?: No such file or directory

Your Free Pascal 3.0 with Lazarus is now installed </quote>

I do not think it is successfully installed...
The lazarus desktop file seems not to have been created.

So instead I used a terminal and moved to the lazarus directory where I tried to run startlazarus directly, but the result was an exception: EAccesviolation $0002F070

What has happened and what can I do to repair?

Or maybe your script does not work on an RPi1B with as little RAM as 256MB?

Bo Berglund Developer in Sweden
Bo Berglund
to Anthony Walter: I've uploaded a few Raspberry Pi files and scripts at http://www.getlazarus.org This is a…

Second posting of this, first one seems to have disappeared...

Anthony Walter wrote 14 lines
Another, possibly more useful bundle I've created is Free Pascal 3.0 with Lazarus for the Raspberry Pi. I've taken great care to reduce the install size of both fpc and Lazarus with this bundle for the Pi. If you're interested in trying this version of Free Pascal 3.0 with Lazarus, here is where you can get it: http://www.getlazarus.org/setup/?download#raspberry_pi If you have a Pi, just follow the instructions in the setup script. You can choose your install folder and have the option to creaate a application shortcut you can pin to the Pi menu,

Hi,
I need a working lazarus on a RPi1B 256MB in order to compile a simple program that I have converted from Delphi7 on an RPi2B. On the RPi2B it works just fine but if I transfer it to the RPi1B it causes an exception on start. I guess it is because some hardware option has been compiled into it on the RPi2B. So I need to compile on the actual hardware...

I downloaded your script using wget, it was a bit hard because it resulted in a strange looking file name. Solved now anyway.

When I ran the script it complained about missing packages and suggested a sudo command to run in order to get it installed. So I executed that and after a while could restart your script and it went a long way, downloading 62MB in about 15 minutes and then started to run a lot of lines across the screen.
But in the end this resulted in:
[quote]
...
lazarus/components/cairocanvas/Makefile.compiled
lazarus/fpmake_add.inc
lazarus/lazbuild
An unhandled exception occurred at $00013870:
EAccessViolation: Access violation
$00013870

cp: cannot stat
?/home/pi/Development/FreePascal/lazarus/lazarus.desktop?: No such file or directory
mv: cannot stat
?/home/pi/Development/FreePascal/lazarus/lazarus.desktop?: No such file or directory

Your Free Pascal 3.0 with Lazarus is now installed [/quote]

I do not think it is successfully installed...
The lazarus desktop file seems not to have been created.

So instead I used a terminal and moved to the lazarus directory where I tried to run startlazarus directly, but the result was an exception: EAccesviolation $0002F070

What has happened and what can I do to repair?

Or maybe your script does not work on an RPi1B with as little RAM as 256MB?

Bo Berglund Developer in Sweden
Dennis
to Bo Berglund
Bo Berglund wrote 29 lines
Second posting of this, first one seems to have disappeared... On Sun, 6 Dec 2015 22:18:09 -0500, Anthony Walter wrote: > Another, possibly more useful bundle I've created is Free Pascal 3.0 with > Lazarus for the Raspberry Pi. I've taken great care to reduce the install > size of both fpc and Lazarus with this bundle for the Pi. > > > If you're interested in trying this version of Free Pascal 3.0 with > Lazarus, here is where you can get it: > > http://www.getlazarus.org/setup/?download#raspberry_pi > > If you have a Pi, just follow the instructions in the setup script. You can > choose your install folder and have the option to creaate a application > shortcut you can pin to the Pi menu, > Hi, I need a working lazarus on a RPi1B 256MB in order to compile a simple program that I have converted from Delphi7 on an RPi2B. On the RPi2B it works just fine but if I transfer it to the RPi1B it causes an exception on start. I guess it is because some hardware option has been compiled into it on the RPi2B. So I need to compile on the actual hardware...

Are you running exactly the same OS on both RPi2b and RPi1b? New raspbian OS has something called device tree that was not present in old raspbian.
That could interact differently to your program.

Dennis

Bo Berglund
to Dennis
Dennis wrote 15 lines
> Hi, > I need a working lazarus on a RPi1B 256MB in order to compile a simple > program that I have converted from Delphi7 on an RPi2B. On the RPi2B > it works just fine but if I transfer it to the RPi1B it causes an > exception on start. I guess it is because some hardware option has > been compiled into it on the RPi2B. So I need to compile on the actual > hardware... > > > Are you running exactly the same OS on both RPi2b and RPi1b? New raspbian OS has something called device tree that was not present in old raspbian. That could interact differently to your program.

I gave up on the RPi1B 256M device and bought another RPi2B instead. Then I could just copy the already compiled program and get it running directly.
I will scrap the old RPi1B now so I won't get tempted again....

Bo Berglund Developer in Sweden
Graeme Geldenhuys
to Bo Berglund: Second posting of this, first one seems to have disappeared... On Sun, 6 Dec 2015…
Bo Berglund wrote
I need a working lazarus on a RPi1B 256MB in order to compile a simple program that I have converted from Delphi7 on an RPi2B.

You will definitely not be able to copy a program compiled on a RPi2B and think it is going to run on a RPi1B - they have different ARM hardware.

Can you actually compile anything, using FPC from the command line? Even a simple console program (ie: something not based on LCL) just to test.

I have one of the first RPi's (also only 256MB RAM) and had no problem setting up FPC, compiling some console programs and even compiled fpGUI Toolkit based programs with it. Saying that, I never bothered trying to compile or install Lazarus - my assumption from the start was that Lazarus IDE uses too much memory for such a small device. So I used fpGUI's demo Maximus IDE instead.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp