# Castle Game Engine on Raspberry Pi

**URL:** https://forum.castle-engine.io/t/castle-game-engine-on-raspberry-pi/93
**Category:** News
**Created:** [August 25, 2019, 4:21pm UTC](https://forum.castle-engine.io/t/castle-game-engine-on-raspberry-pi/93 "2019-08-25T16:21:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)
#### Post date: [August 25, 2019, 4:21pm UTC](https://forum.castle-engine.io/t/castle-game-engine-on-raspberry-pi/93/1 "2019-08-25T16:21:49Z")

</div>

| [![New Raspberry Pi in Michalis hands :)](https://castle-engine.io/wp/wp-content/uploads/2019/08/raspberry_pi-200x267.jpg)](https://castle-engine.io/wp/wp-content/uploads/2019/08/raspberry_pi.jpg "New Raspberry Pi in Michalis hands :)") |
| [![The Unholy Society ( https://unholy-society.com/ ) on Raspberry Pi](https://castle-engine.io/wp/wp-content/uploads/2019/08/unholy_raspberry_1-200x113.png)](https://castle-engine.io/wp/wp-content/uploads/2019/08/unholy_raspberry_1.png "The Unholy Society ( https://unholy-society.com/ ) on Raspberry Pi") |
| [![The Unholy Society ( https://unholy-society.com/ ) on Raspberry Pi](https://castle-engine.io/wp/wp-content/uploads/2019/08/unholy_raspberry_2-200x113.png)](https://castle-engine.io/wp/wp-content/uploads/2019/08/unholy_raspberry_2.png "The Unholy Society ( https://unholy-society.com/ ) on Raspberry Pi") |

Recently I got my [Raspberry Pi 4](https://www.raspberrypi.org/) device, and I am excited by the possibilities (small+cheap device with fully functional Linux). I was happy to see that _Castle Game Engine_ runs perfectly on it 🙂 Here are some screenshots of [The Unholy Society](https://unholy-society.com/) running on Raspberry Pi.

If you’re interested in using CGE on Raspberry Pi:

- Just install [FPC](https://www.freepascal.org/) using the package repository (`apt-get install fpc`)
- Get [CGE source code](https://github.com/castle-engine/castle-engine/)

- Build [CGE build tool](https://github.com/castle-engine/castle-engine/wiki/Build-Tool) running `castle_game_engine/tools/build-tool/castle-engine_compile.sh`

- Build your application as usual, running `castle-engine compile`. 

- Raspberry Pi is just Linux OS + ARM CPU, rendering using OpenGLES. Everything just works, no surprises 🙂

- It should also be possible to run [Lazarus](https://www.lazarus-ide.org/) and [CGE editor](https://castle-engine.io/manual_editor.php), although I didn’t do it yet.

- Note that the default backend uses X. It is also [possible to get CastleWindow backend using DispmanX (without X)](https://github.com/castle-engine/castle-engine/wiki/DispmanX-backend), although it is not yet merged into latest CGE.

Have fun with CGE on all your devices!
