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.
IndexProgramming Questions & HelpProcessing Implementations › Ruby-processing, Serial, and Snow Leopard
Page Index Toggle Pages: 1
Ruby-processing, Serial, and Snow Leopard (Read 1510 times)
Ruby-processing, Serial, and Snow Leopard
Sep 30th, 2009, 11:49am
 
Hi, I'm new to ruby-processing, and I'm hitting a wall with the serial communication. I'm trying to setup serial communication in my sketch, and I've included these lines:

Code:
load_java_library "serial"
include_package "processing.serial"
And then in setup I've got

Code:
@port = open_arduino_serial 

with
Code:
def open_arduino_serial
 Serial.list.each  do |name|
   return Serial.new(self, name, 9600) if name =~ /usbserial/
 end
 return nil
end

However, when I try to run the sketch, I am getting an architecture error:
Code:
java.lang.UnsatisfiedLinkError: ../ruby-processing-1.0.8/library/serial/library/librxtxSerial.jnilib:  no suitable image found.  Did find: ../ruby-processing-1.0.8/library/serial/library/librxtxSerial.jnilib: no matching architecture in universal wrapper thrown while loading gnu.io.RXTXCommDriver 


Does serial communication work with Snow Leopard? Do I need to compile the serial library for x64 specifically?


Thanks!
Re: Ruby-processing, Serial, and Snow Leopard
Reply #1 - Sep 30th, 2009, 8:22pm
 
Hi Ben.

I'm afraid I'm not going to be much help -- I've never tried the serial library, and don't have Snow Leopard -- but it looks like your analysis is right. Here's some posts from vanilla Processing folks that are having the exact same problem:

http://processing.org/discourse/yabb2/num_1251846422.html

http://processing.org/discourse/yabb2/num_1254336576.html

It looks like there's not a fix for it yet, but it might work if you can run a 32-bit version of the JVM...
Page Index Toggle Pages: 1