Skip to content

Developing on Raspberry Pi

David Lechner edited this page Sep 1, 2017 · 5 revisions

You can develop GRX applications on Raspberry Pi.

Install

Only the current Raspbian (stretch) is supported.

wget https://github.com/ev3dev/grx/raw/ev3dev-stretch/.travis/ev3dev-archive-keyring.gpg
sudo mv ev3dev-archive-keyring.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb http://archive.ev3dev.org/raspbian stretch main" > /etc/apt/sources.list.d/ev3dev.list'
sudo apt update
sudo apt install libgrx-3.0-dev libgrx-3.0-examples console-runner

IMPORTANT: The GRX3 library package enables bitmap fonts on your system. If you notice that fonts look bad in other programs, this is why. See https://github.com/ev3dev/grx/wiki/Running-Programs#bitmap-fonts.

Setup console-runner

wget https://gist.githubusercontent.com/dlech/90f4f0299ca86e7e7f214e7d00ff28bf/raw/org.ev3dev.ConsoleRunner.conf
sudo mv org.ev3dev.ConsoleRunner.conf /etc/dbus-1/system.d/
wget https://gist.githubusercontent.com/dlech/90f4f0299ca86e7e7f214e7d00ff28bf/raw/[email protected]
sudo mv [email protected] /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable [email protected]
sudo systemctl start [email protected]

Run sample programs

These are not installed in $PATH, so you have to use the absolute path.

Example binary files are found in /usr/lib/arm-linux-gnueabihf/grx-3.0/examples/. For example:

conrun /usr/lib/arm-linux-gnueabihf/grx-3.0/examples/vala/life

Example scripts (text files) are found in /usr/share/doc/grx/examples/. For example:

conrun /usr/share/doc/grx/examples/python/life.py