Please note that User Registration has been temporarily disabled due to a recent increase in automated registrations. If anyone needs an account, please request one here: RequestAccount. Thanks for your patience!--Wmat (talk)
Please email User:Wmat if you experience any issues with the Request Account form.

Difference between revisions of "Lazarus on RPi"

From eLinux.org
Jump to: navigation, search
(Page created)
 
(Hardware access)
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
Lazarus is a cross-platform IDE for Free Pascal, a professional 32 bit / 64 bit Pascal Compiler. Lazarus supports a wide variety of processors and Linux distributions including the Raspberry Pi.
+
[[File:Lazarus on Raspberry Pi.jpg|thumb|200px|right|alt=Lazarus on Raspbian Wheezy|Lazarus on Raspberry Pi.]]
 +
'''[[Lazarus]]''' is a cross-platform IDE for [[Free Pascal]], a professional 32 bit / 64 bit [[Pascal]] Compiler. Lazarus supports a wide variety of processors and Linux distributions including the Raspberry Pi, where it runs natively.
  
 
==Simple installation==
 
==Simple installation==
  
In the Raspbian distribution Lazarus and Free Pascal are easily installed with the following shell commands:
+
In the [[Raspbian]] distribution Lazarus and Free Pascal are easily installed with the following shell commands:
  
 
<syntaxhighlight>
 
<syntaxhighlight>
Line 12: Line 13:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
This installs a ready-to-use precompiled version of Lazarus.
+
This installs a ready-to-use precompiled version of Lazarus, however not necessarily the newest one.
  
 
==Compiling from sources==
 
==Compiling from sources==
  
In order to compile Lazarus from subversion sources see [http://www.michellcomputing.co.uk/blog/2012/11/lazarus-on-the-raspberry-pi/ Michell Computing: Lazarus on the Raspberry Pi] for details.
+
The newest versions of Lazarus are distributed as source code. In order to compile Lazarus from subversion sources see [http://www.michellcomputing.co.uk/blog/2012/11/lazarus-on-the-raspberry-pi/ Michell Computing: Lazarus on the Raspberry Pi] for details.
 +
 
 +
==Accessing low-level hardware==
 +
 
 +
Hardware hacking is easily possible with the Lazarus wrapper unit for Gordon Henderson's wiringPi C library (see bwlow). Alternatively, the GPIO port is also accessible directly from Free Pascal as described in the article on [[RPi Low-level peripherals#GPIO Driving Example (Lazarus / Free Pascal)|RPi Low-level peripherals]].
  
 
== External Links ==
 
== External Links ==
* [http://wiki.freepascal.org/Lazarus_on_Raspberry_Pi Additional information of Lazarus on Raspberry Pi in the Free Pascal wiki]
+
* [http://wiki.freepascal.org/Lazarus_on_Raspberry_Pi Additional information about Lazarus on Raspberry Pi in the Free Pascal wiki]
 
* [http://www.lazarus.freepascal.org/index.php/topic,17404.0.html Lazarus wrapper unit for Gordon Henderson's wiringPi C library]
 
* [http://www.lazarus.freepascal.org/index.php/topic,17404.0.html Lazarus wrapper unit for Gordon Henderson's wiringPi C library]
  
Line 25: Line 30:
 
{{Template:Raspberry Pi}}
 
{{Template:Raspberry Pi}}
 
[[Category: RaspberryPi]]
 
[[Category: RaspberryPi]]
 +
[[Category:Free Pascal]]

Revision as of 18:22, 27 January 2013

Lazarus on Raspbian Wheezy
Lazarus on Raspberry Pi.

Lazarus is a cross-platform IDE for Free Pascal, a professional 32 bit / 64 bit Pascal Compiler. Lazarus supports a wide variety of processors and Linux distributions including the Raspberry Pi, where it runs natively.

Simple installation

In the Raspbian distribution Lazarus and Free Pascal are easily installed with the following shell commands:

  sudo apt-get update
  sudo apt-get upgrade
  sudo apt-get install fpc
  sudo apt-get install lazarus

This installs a ready-to-use precompiled version of Lazarus, however not necessarily the newest one.

Compiling from sources

The newest versions of Lazarus are distributed as source code. In order to compile Lazarus from subversion sources see Michell Computing: Lazarus on the Raspberry Pi for details.

Accessing low-level hardware

Hardware hacking is easily possible with the Lazarus wrapper unit for Gordon Henderson's wiringPi C library (see bwlow). Alternatively, the GPIO port is also accessible directly from Free Pascal as described in the article on RPi Low-level peripherals.

External Links