1. Raspberry Pi

I bought a Pi 3 today, and it runs Euphoria and EuGTK with no problem so far.

Pretty good for a $37 computer the size of a pack of cigarettes, and nearly as fast as my desktop.

new topic     » topic index » view message » categorize

2. Re: Raspberry Pi

Hi Irv

What steps did you do for installing Eu and GTK to the Pi. I'm sure it would make a great wiki entry along with the current Pi entries.

Cheers

Chris

new topic     » goto parent     » topic index » view message » categorize

3. Re: Raspberry Pi

This is what I did to install OpenEuphoria on Raspbian Jessie:

wget http://www.russelldavis.org/Files/files/RaspberryPi/euphoria-4.1.0-RaspberryPi.tar.gz 
cd /usr/local 
sudo tar -xzf ~/euphoria-4.1.0-RaspberryPi.tar.gz 
cd 
vi .bashrc 
export PATH=$PATH:/usr/local/euphoria-4.1.0-RaspberryPi/bin 

Jean-Marc

new topic     » goto parent     » topic index » view message » categorize

4. Re: Raspberry Pi

Hi, yes, that we good to add as another section to the current Wiki article (not my article, so am reluctant to add it), but it would be nice, if there was an instruction set (yes I do mean baby steps) to add GTK and Eu to a fresh Raspberry Pi. What a great way to a great programming onto a device designed for experimentation by youngsters.

Pity there's not a GPIO library yet......

(Currently doing some thought experiments on setting up Python as a server with it's GPIO module, but am having to learn Python now too!)

Cheers

Chris

new topic     » goto parent     » topic index » view message » categorize

5. Re: Raspberry Pi

Wrapping the GPIO should be "child's play" compared to wrapping GTK, so...

Perhaps someone here has more experience with Raspberry than my 1 day's worth; they might volunteer. Otherwise, I will give it a try.

Since EuGTK makes designing gauges and such pretty simple, being able to connect them to actual real-world sensors would be more than nice.

new topic     » goto parent     » topic index » view message » categorize

6. Re: Raspberry Pi

The only addition to Jean-Marc's instructions would be to add a eu.cfg to point to the includes, e.g:

(tilde)/demos
/usr/local/euphoria-4.1.0-RaspberryPi/include

Otherwise, eui won't find includes such as dll.e

Note that you'll need this in your home folder if you want to run EuGTK programs by clicking on the icon from a file manager. The same file should be in the demos folder.

Someone probably has a better way to set this up, please contribute.

new topic     » goto parent     » topic index » view message » categorize

7. Re: Raspberry Pi

Should be better adding eu.cfg, that's sure, but yet nothing special is defined and it finds includes such as dll.e. The eu.cfg file that is in OEU bin folder is probably enough to begin. Another in /demos is needed for GTK.

Jean-Marc

new topic     » goto parent     » topic index » view message » categorize

8. Re: Raspberry Pi

Without the added line, I get:

pi@raspberrypi: $ eui demos/test0
/home/pi/demos/GtkEnums.e:8 <0052>:: can't find 'std/io.e' in any of ...
/home/pi/demos
/home/pi/demos/test0.ex

public include std/io.e

Very strange.

EDIT: or maybe not. I'm using Raspian today, instead of Ubuntu, as a test. Forgot that, maybe debian works differently.

new topic     » goto parent     » topic index » view message » categorize

9. Re: Raspberry Pi

I have several Raspberry Pis:

  • one Raspberry Pi Model A (original 256MB model)
  • one Rapsberry Pi 3
  • two Raspberry Pi Zero 1.3

Edit: I am running the ARM build of 4.1 from the DownloadEuphoria page.

I started wrapping wiringPi last year but I've got nothing to test it with right now.

I've posted the code to GitHub in case anyone wants to help test or contribute.

https://github.com/ghaberek/wiringPi-euphoria

-Greg

new topic     » goto parent     » topic index » view message » categorize

10. Re: Raspberry Pi

DOH! I just started making my own wiringPi.e wrapper a few days ago, and almost finished it! I successfully blinked leds with it so far. I am looking forward to using euphoria on the raspberry pi 3 (and Zero) for many projects in the future.

new topic     » goto parent     » topic index » view message » categorize

11. Re: Raspberry Pi

irv said...

Without the added line, I get:

pi@raspberrypi: $ eui demos/test0
/home/pi/demos/GtkEnums.e:8 <0052>:: can't find 'std/io.e' in any of ...
/home/pi/demos
/home/pi/demos/test0.ex

public include std/io.e

Very strange.

EDIT: or maybe not. I'm using Raspian today, instead of Ubuntu, as a test. Forgot that, maybe debian works differently.

That is because there is an eu.cfg in demos, which misses the include folder. Without any eu.cfg, includes are found. There is no eu.cfg in my /usr/local/euphoria-4.1.0-RaspberryPi/bin/ folder.

I added EuGTK on my Raspberry Pi Model B Plus Rev 1.2 with following lines in /demos/eu.cfg. It works fine.

~/demos 
/usr/local/euphoria-4.1.0-RaspberryPi/include 

Jean-Marc

new topic     » goto parent     » topic index » view message » categorize

12. Re: Raspberry Pi

Trying to compile the usual Hello World program:

pi@raspberrypi: $ euc hello
Build directory: build-203778/
Translating code, pass: 1 2 3 4 5 6 7 8 9 10 11 generating
Supplied directory '' is not a valid EUDIR
pi@raspberrypi: $

I've never seen that error before, what does it mean and how can I supply a correct one?

Note: eui hello runs fine.

new topic     » goto parent     » topic index » view message » categorize

13. Re: Raspberry Pi

Nice Wiki entry there Irv. Thanks.

Chris

new topic     » goto parent     » topic index » view message » categorize

14. Re: Raspberry Pi

irv said...

I've never seen that error before, what does it mean and how can I supply a correct one?

I had to create EUDIR environment variable before it could compile:

export EUDIR=/usr/local/euphoria-4.1.0-RaspberryPi

I wonder if it is worth the job: one has to be very patient before the job gets done: the Pi doesn't have enough computing power (model B+). Regards

Jean-Marc

new topic     » goto parent     » topic index » view message » categorize

15. Re: Raspberry Pi

True. Running interpreted programs works acceptably well, there's a delay on startup, but from then on it's fine. For some reason, however, the compiler takes a LONG time to run (I finally got it working).

So, is it possible to cross-compile for the Arm on an x86-64?

new topic     » goto parent     » topic index » view message » categorize

16. Re: Raspberry Pi

irv said...

True. Running interpreted programs works acceptably well, there's a delay on startup, but from then on it's fine. For some reason, however, the compiler takes a LONG time to run (I finally got it working).

So, is it possible to cross-compile for the Arm on an x86-64?

I don't know. I compiled it on a 32-bit Raspbian even if the Pi has 64-bit hardware.

Jean-Marc

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu