Free Pascal compiler for the Pi (freepascal.org)


44 posts   Page 2 of 2   1, 2
by mkeeley » Fri Mar 09, 2012 2:34 pm
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
by Conn » Thu Mar 15, 2012 10:05 pm
+1 for Pascal and Lazarus on Rpi!

I'll code my software with Pascal if I can.

Cheers,

Conn
Posts: 9
Joined: Thu Mar 15, 2012 8:55 pm
by jwdietrich » Sun Mar 25, 2012 7:33 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.
User avatar
Posts: 13
Joined: Wed Nov 30, 2011 11:52 am
by fredycc » Mon Mar 26, 2012 3:52 pm
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
Posts: 3
Joined: Mon Jan 09, 2012 2:45 pm
by wt536 » Sat Apr 14, 2012 11:09 pm
spacetime said:


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
by plugwash » Sun Apr 15, 2012 12:37 am
plugwash said:


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.
Forum Moderator
Forum Moderator
Posts: 2260
Joined: Wed Dec 28, 2011 11:45 pm
by pmalheiros » Mon May 14, 2012 12:27 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.
Posts: 1
Joined: Mon May 14, 2012 12:07 pm
by egroc » Wed May 16, 2012 2:29 pm
Hi pmalheiros, can you write simple instructions about how to install lazarus on Pi? Where I can find lazarus for ARM?

Thanks.
Posts: 1
Joined: Wed May 16, 2012 2:26 pm
by plugwash » Wed May 16, 2012 9:33 pm
apt-get install lazarus
Forum Moderator
Forum Moderator
Posts: 2260
Joined: Wed Dec 28, 2011 11:45 pm
by Nobody » Sat Jun 02, 2012 11:45 am
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
by plugwash » Sat Jun 02, 2012 11:53 pm
hmm, seems lazarus isn't in squeeze armel, it is in wheezy armel though.
Forum Moderator
Forum Moderator
Posts: 2260
Joined: Wed Dec 28, 2011 11:45 pm
by Nobody » Sun Jun 03, 2012 12:47 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
by plugwash » Mon Jun 04, 2012 12:44 am
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.
Forum Moderator
Forum Moderator
Posts: 2260
Joined: Wed Dec 28, 2011 11:45 pm
by pbreneman » Thu Jun 07, 2012 12:41 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
Posts: 13
Joined: Thu Jun 07, 2012 12:31 pm
by stafil » Thu Aug 09, 2012 10:07 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
by avra » Mon Oct 29, 2012 10:49 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
Image

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
by plugwash » Mon Oct 29, 2012 11:52 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.
Forum Moderator
Forum Moderator
Posts: 2260
Joined: Wed Dec 28, 2011 11:45 pm
by mikew » Tue Nov 20, 2012 9:58 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
by jwdietrich » Tue Apr 30, 2013 6:27 pm
More detailled instructions are to be found at http://wiki.lazarus.freepascal.org/Laza ... spberry_Pi .
User avatar
Posts: 13
Joined: Wed Nov 30, 2011 11:52 am