We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Processing on ARM devices (Read 3674 times)
Processing on ARM devices
Feb 28th, 2008, 2:12am
 
Hey,

I was just wondering what kind of work would be involved with getting processing to work with ARM linux devices.

Specifically the GP2X and the up and coming Pandora.

What would need to be changed for it to work on these devices, and what would need to be running on the devices to make it work (besides a java vm)

Cheers

EDIT:
Just to clarify, I'm not talking about porting the IDE, I just want to be able to run the end product.
Re: Processing on ARM devices
Reply #1 - Feb 28th, 2008, 10:30am
 
As long as there's a fully featured Java VM then things should "just work". They might be slow, but it depends on the hardware.
Re: Processing on ARM devices
Reply #2 - Feb 28th, 2008, 3:04pm
 
I think I'll just have a go when the device comes out and see what happens. It was the windowing that I am a bit confused about.

http://www.openpandora.org/

that is the site for the device in case anyone was wondering
Re: Processing on ARM devices
Reply #3 - Mar 19th, 2008, 7:41am
 
A JVM will be necessary but I think you'll also need a runtime environment (JRE).  This usually is bundled with the JVM but for embedded work you may need to create a new one or alter an existing one to implement, for example, how to load files and such, how to draw primitives,  do I/O, etc.  Look at using JNI to bind to an existing BSP (board support package) library/API.
Re: Processing on ARM devices
Reply #4 - Apr 9th, 2008, 4:58pm
 
http://jalimo.org

These guys have a JVM working on OpenMoko (linux phone platform) and Maemo (Nokia linux tablets, ARM-based), based on Cacao and GNU Classpath.

Hopefully this could extend to all kinds of embedded platforms.

Main issue is that they seem to be focussing work around SWT, whereas Processing apps are based on AWT.  I tried recompiling it all for AWT back in January but didn't manage to get it working for my Nokia N800.

I've been waiting a long time for this... Processing is a great prototyping platform for portable devices!


Re: Processing on ARM devices
Reply #5 - Aug 27th, 2008, 11:38pm
 
Now it is possible to run both processing applications and the full IDE as well on ARM especially if it is running on one of the Linux ARM EABI platforms.

The easiest way is get Debian armel running on your board.
http://wiki.debian.org/ArmEabiPort

Then you can install the java jre (for running applications) or jdk (for the IDE as well) by simply running:

apt-get install openjdk-6-jre
to get a interperted java hotspot based on the zero port.

or include debian sid repositories to apt and run:
apt-get install cacao-oj6-jre
to get a jit java vm based on cacao vm! This one runs quite fast thanks to the jit!

To run the IDE you have to install openjdk-6-jdk or cacao-oj6-jdk. To make the IDE start download processing for linux and replace the java directory in the processing directory with a symlink to the jdk java folder (find it installed in /usr/lib/jvm/ ) or a copy then start processing as normal on linux by using the ./processing script file.

Screenshot of my own ARM board running Processing with OpenJDK6 and CACAO jit.
http://labb.zafena.se/?p=30

Enjoy!
Page Index Toggle Pages: 1