RaspberryPi

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

WiringPi

pigpio

Building Euphoria for the Raspberry Pi

EuphoriaAndRaspberryPi

CrossCompilingRaspberryPiWithoutScratchbox

Example programs

SimonSays

TempMonitor

Installation

Installing Euphoria and EuGTK on Raspberry Pi 3 with Raspbian.
Follow the links on the Downloads page to download:

  • EuGTK
  • Arm binary for manual installation
  • Wee

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 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:

cd /euphoria-4.1.0-ARMv6-hardfloat/bin
sudo cp * /usr/bin
cd ..
sudo mkdir /usr/share/euphoria
sudo chmod 777 /usr/share/euphoria
sudo rm /usr/bin/eu.cfg
cp -r * /usr/share/euphoria

Confirm that eui is installed
Type eui at the command line:

pi@raspberrypi: $ eui
Euphoria Interpreter v4.1.0 development
32-bit Linux, Using System Memory
Revision Date: 2015-02-02 14:18:53, Id: 5861:57179171dbed

ERROR: Must specify the file to be interpreted on the command line

(So far, so good!)

Replace /usr/bin/eu.cfg with the following: (will probably have to use sudo nano here)

[all]
-eudir /usr/share/euphoria
-i /usr/share/euphoria/include

[translate]
-arch ARM
-gcc
-con
-com /usr/share/euphoria
-lib-pic /usr/share/euphoria/bin/euso.a
-lib /usr/share/euphoria/bin/eu.a

[bind]
-eub /usr/share/euphoria/bin/eub

Check that it works

cd /demos
eui test0

Should take a few seconds, and then show the window.

Install WEE

Download WEE-master.zip.
Use archiver to extract to /home/pi (or /home/your_user_name)

Associate .ex files

Use file manager to navigate to /demos
right-click on test0.ex
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.

Trouble Shooting

If you get a long warning re: accessibility, add the setenv line to GtkEngine.e as shown below:

export constant   
	version = "4.14.6",  
	release = "Feb 1, 2019",  
	copyright = "2005-2918 by Irv Mullins"  
  
setenv("NO_AT_BRIDGE","1") -- add this line here  

Notes

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.

Search



Quick Links

User menu

Not signed in.

Misc Menu