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!