Free Pascal compiler for the Pi (freepascal.org)
44 posts
Page 2 of 2 1, 2
Delphi was probably my favorite "language" when programming was my full time job, so good to hear open pascal will be available.
- Posts: 29
- Joined: Sun Feb 19, 2012 12:44 am
+1 for Pascal and Lazarus on Rpi!
I'll code my software with Pascal if I can.
Cheers,
Conn
I'll code my software with Pascal if I can.
Cheers,
Conn
- Posts: 9
- Joined: Thu Mar 15, 2012 8:55 pm
Lazarus is a great tool for cross-platform programming. Therefore it would be great to have it on the Pi, too; this would enable development with the same source files for Windows, desktop Linux, Android, Mac OS X and Pi.
For some purposes, Lazarus may be inefficient, e.g. development of embedded applications not requiring any GUI. Here, pure Free Pascal will be a great, and still cross-platform solution.
For some purposes, Lazarus may be inefficient, e.g. development of embedded applications not requiring any GUI. Here, pure Free Pascal will be a great, and still cross-platform solution.
Lazarus / FPC is an excellent alternative programming development, I work on windows, linux and mac os x with good results, it would be great to see it working in Pi.
Regards
Regards
- Posts: 3
- Joined: Mon Jan 09, 2012 2:45 pm
spacetime said:
You are not alone. My Pascal code used far less disc than the lads' C++.
The .DFM in Borland C++ is a Delphi Form, so the heritage shows.
Wow, it seems that the Pascal community does exist
I still believe in Pascal - easy to write and easy to read.
@Cephas Borg
I was under impression that I am the only one who likes Turbo Pascal so much!
You are not alone. My Pascal code used far less disc than the lads' C++.
The .DFM in Borland C++ is a Delphi Form, so the heritage shows.
- Posts: 1
- Joined: Sat Apr 14, 2012 9:49 pm
plugwash said:
Just to let you know i've fixed this now. I haven't tried a "hardfloat for pi" configuration yet (only a v7 hardfloat configuration) but I don't expect there to be any problems and intend to put a correctly configured package in the "armhf for pi" repositry in due time.
With freepascal it depends if you are running an "armel" distro (basic EABI calling convention) or an an "armhf" distro (eabi vfp calling convention). Currently freepascal doesn"t support eabi vfp so if you use an armhf distro you won"t be able to link pascal programs against c libraries correctly.
Just to let you know i've fixed this now. I haven't tried a "hardfloat for pi" configuration yet (only a v7 hardfloat configuration) but I don't expect there to be any problems and intend to put a correctly configured package in the "armhf for pi" repositry in due time.
- Moderator
- Posts: 1425
- Joined: Wed Dec 28, 2011 11:45 pm
FYI I've managed to install FPC 2.6.0 and Lazarus 0.9.30.4 in my new Raspberry PI. I used debian 6 and installed the freepascal available in Sourceforge.
Still needs more testing but I'm happy with the results.
Still needs more testing but I'm happy with the results.
- Posts: 1
- Joined: Mon May 14, 2012 12:07 pm
Hi pmalheiros, can you write simple instructions about how to install lazarus on Pi? Where I can find lazarus for ARM?
Thanks.
Thanks.
- Posts: 1
- Joined: Wed May 16, 2012 2:26 pm
apt-get install lazarus
- Moderator
- Posts: 1425
- Joined: Wed Dec 28, 2011 11:45 pm
egroc wrote:Hi pmalheiros, can you write simple instructions about how to install lazarus on Pi? Where I can find lazarus for ARM?
Thanks.
plugwash wrote:apt-get install lazarus
Well unfortunately that does not work (with my debian image). "sudo apt-get install fpc" however does.
- Posts: 16
- Joined: Tue Nov 01, 2011 8:07 pm
hmm, seems lazarus isn't in squeeze armel, it is in wheezy armel though.
- Moderator
- Posts: 1425
- Joined: Wed Dec 28, 2011 11:45 pm
plugwash wrote:hmm, seems lazarus isn't in squeeze armel, it is in wheezy armel though.
I think I know how I could go around this problem - but what does that actually mean? What's the difference between "squeeze" and "wheezy"?
- Posts: 16
- Joined: Tue Nov 01, 2011 8:07 pm
Debian releases are given codenames (named after toy story characters). squeeze is the current stable release, wheezy is currently "testing" and will become the next stable release.
- Moderator
- Posts: 1425
- Joined: Wed Dec 28, 2011 11:45 pm
I hope to have access to a friend's Raspberry Pi soon to do more testing with Free Pascal.
I already have a number of minimal distributions of Free Pascal on this educational project page:
http://www.turbocontrol.com/monitor.htm
Environment Monitoring Programs
Information and example programs for an educational programming project.
I've recently added ARM Linux files on these pages (using Qemu for my testing):
- Hello World
- Easy Email
- Easy fpGUI
- Simple Window
As soon as I'm able to get my hands on a Raspberry Pi I hope to add a new file on this page:
- Simple Serial
If anyone here could test any of these and let me know how they work that would be very helpful to me.
I hope that the nice Free Pascal tools can be used a lot on the Raspberry Pi.
Regards,
Paul Breneman
I already have a number of minimal distributions of Free Pascal on this educational project page:
http://www.turbocontrol.com/monitor.htm
Environment Monitoring Programs
Information and example programs for an educational programming project.
I've recently added ARM Linux files on these pages (using Qemu for my testing):
- Hello World
- Easy Email
- Easy fpGUI
- Simple Window
As soon as I'm able to get my hands on a Raspberry Pi I hope to add a new file on this page:
- Simple Serial
If anyone here could test any of these and let me know how they work that would be very helpful to me.
I hope that the nice Free Pascal tools can be used a lot on the Raspberry Pi.
Regards,
Paul Breneman
- Posts: 13
- Joined: Thu Jun 07, 2012 12:31 pm
Hi, I installed 2012-07-15-wheezy-raspbian to qemu. After entering sudo apt-get install fpc to start the installation and is not successful. Please help. thank you
- Posts: 4
- Joined: Tue Jul 31, 2012 11:29 am
CodeTyphon/Lazarus/FreePascal can create executables for Raspberry PI (with download link for all needed libraries and dependencies and PI emulator for Windows if you don't have the real board yet):
http://www.pilotlogic.com/sitejoom/inde ... spbian-app

Examples of accessing PI I/O pins:
http://www.lazarus.freepascal.org/index ... 404.0.html
http://www.lazarus.freepascal.org/index ... l#msg96604
http://www.pilotlogic.com/sitejoom/inde ... spbian-app

Examples of accessing PI I/O pins:
http://www.lazarus.freepascal.org/index ... 404.0.html
http://www.lazarus.freepascal.org/index ... l#msg96604
- Posts: 7
- Joined: Mon Jan 09, 2012 11:48 am
stafil wrote:Hi, I installed 2012-07-15-wheezy-raspbian to qemu. After entering sudo apt-get install fpc to start the installation and is not successful. Please help. thank you
If you want help with problems like this you need to tell us what errors you are getting.
- Moderator
- Posts: 1425
- Joined: Wed Dec 28, 2011 11:45 pm
Many thanks for these clear instructions. They enabled me to successfully install Lazarus on a clean new Pi with Squeezy, with no serious errors as far as I can see. Now to get down to the real stuff - trying to compile somebody else's software...
- Posts: 1
- Joined: Tue Nov 20, 2012 9:53 pm
More detailled instructions are to be found at http://wiki.lazarus.freepascal.org/Laza ... spberry_Pi .