Historical RaspberryPi, Revision 17
Installing Euphoria on the Raspberry Pi
The current Euphoria 4.1.0 Beta2 can run on the Raspberry Pi.
See step-by-step installation instructions below.
Wrappers for GPIO interfacing
Building Euphoria for the Raspberry Pi
CrossCompilingRaspberryPiWithoutScratchbox
Example programs
Installation
Installing Euphoria and EuGTK on Raspberry Pi 3 with Raspbian.
Follow the links on the Downloads page to download:
- EuGTK
- Euphoria 4.1 beta 2 arm binary for manual installation
- Wee Euphoria Editor
Download the latest EuGTK, and click on the tar.gz file, read the important note, then drag the demos folder into your home folder. You'll now have a /home/pi/demos folder.
Download WEE-master.zip.
Use archiver to extract to /home/pi (or /home/your_user_name)
Download euphoria-4.1.0-ARMv6-hardfloat-5.tar.gz Click on it, and extract to, let's say, your home folder.
Go to your home folder, and open a terminal to copy some files:
Confirm that eui is installed
Type eui at the command line:
(So far, so good!)
Replace /usr/bin/eu.cfg with the following: (will probably have to use sudo nano to do this)
Check that it works In a terminal, type:
Should take a few seconds, and then show a nice window with info about GTK, EuGTK, current platform, etc.
Associate .ex files
- Use file manager to navigate to /demos
- Right-click on test0.ex or one of the other test*.ex files
- Select Properties from the popup window
- Select Open With -> Customize
- Click on Custom Command Line
- Enter eui as Command line to execute:
- Enter Euphoria as the Application name
- Click OK
Double click on an .ex program to see if it works.
Notes
When using the or
plugins on Pi with Raspbian, you'll need to edit the tops of those files to indicate the location of the libraries:
For .plugin:
object sourceviews = dir("/usr/lib/arm-linux-gnueabihf/libgtksourceview-4*")
For .plugin:
object webkits = dir("/usr/lib/arm-linux-gnueabihf/libwebkit2gtk-4*")
The Raspberry Pi 3 is a bit slow, so binding your Euphoria programs is helpful. Especially WEE and other programs you will use frequently.
Translating and compiling large EuGTK programs on the Pi is also rather slow, so you may prefer to cross-compile on a full-size PC, and then copy the executable to the Pi.
- Check this forum message: Cross Compile
- Or this wiki page: Cross Compile
- diff to current revision, view current revision history, backlinks
- Last modified Nov 17, 2020 by irv