shanggdlk / proclipsing

Automatically exported from code.google.com/p/proclipsing
0 stars 0 forks source link

Serial RxTx Unsatisfied Link Error #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Make new project
2. Adding serial library
3. Running application

What is the expected output? What do you see instead?
I'm trying to setup the serial communication with an Arduino. There is a 
compile time error when launching:
java.lang.UnsatisfiedLinkError: 
/path/to/project/PROJECT/lib/base/serial/librxtxSerial.jnilib:  no suitable 
image found.  Did find:  
/path/to/project/PROJECT/lib/base/serial/librxtxSerial.jnilib: no matching 
architecture in universal wrapper thrown while loading gnu.io.RXTXCommDriver
java.lang.UnsatisfiedLinkError:

What version of the product are you using? On what operating system?
I'm using Eclipse 3.4.1 with Proclipsing on Mac OS 10.6 Intel
I just setup a simple project to test the serial, but haven't had any luck with 
both Proclipsing or by creating a non-proclipsing project and adding the 
libraries manually.

Please provide any additional information below.

Original issue reported on code.google.com by admr...@gmail.com on 17 Feb 2011 at 6:16

GoogleCodeExporter commented 8 years ago
It sounds like you're missing or have the wrong native libs for librxtx.  Have 
you been able to connect to the arduino via the processing editor?

Original comment by brianbal...@gmail.com on 18 Feb 2011 at 4:56

GoogleCodeExporter commented 8 years ago
I found a hint to add "-d32" to the Run Configuration > Arguments > VM 
Arguments options and it's working alright now. Connecting in Processing IDE 
works no prob. Still haven't been able to export a runnable JAR, working on 
this next.

Original comment by adamharv...@gmail.com on 7 Mar 2011 at 5:41

GoogleCodeExporter commented 8 years ago

Original comment by maddpar...@gmail.com on 4 Apr 2011 at 11:54

GoogleCodeExporter commented 8 years ago
We just did an update that should fix the issue with exporting programs that 
require the -d32 vm arg.  Please let us know if there are more issues of this 
type.

Original comment by maddpar...@gmail.com on 17 Aug 2011 at 9:50

GoogleCodeExporter commented 8 years ago
Thanks. I'll take a look. In between my last comment and yours, I figured out 
another workaround. On Mac OS X in Java preferences ( Utilities > Java 
Preferences ) you can change the order of which Java version is used. By 
dragging the 32-bit mode to the top, I was able to get a sketch working. Not 
the best solution, but it worked. Looking forward to using the new patch for 
Proclipsing.

Original comment by admr...@gmail.com on 29 Aug 2011 at 5:27

Attachments:

GoogleCodeExporter commented 8 years ago
hello,

i have the same issue when exporting,
but the workaround using the Java preferences does not do it for me. I can run 
the app from Eclipse, even without the -d32 flag, but the exported app will 
throw the unsatisfied-link exception.

10.7.3, latest Java & Eclipse.

Original comment by bokaj.ac...@googlemail.com on 9 Mar 2012 at 5:38

GoogleCodeExporter commented 8 years ago
Sir i am facing the following error "Error inside serial.ports()"
with the following compilation errors

java.lang.UnsatisfiedLinkError: D:\Workshops\processing-1.5.1\rxtxSerial.dll: 
Can't load AMD 64-bit .dll on a IA 32-bit platform thrown while loading 
gnu.io.RXTXCommDriver
java.lang.UnsatisfiedLinkError: D:\Workshops\processing-1.5.1\rxtxSerial.dll: 
Can't load AMD 64-bit .dll on a IA 32-bit platform
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1028)
    at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:123)
    at processing.serial.Serial.list(Unknown Source)
    at Turret_06_04.retryArduinoConnect(Turret_06_04.java:1905)
    at Turret_06_04.setup(Turret_06_04.java:189)
    at processing.core.PApplet.handleDraw(Unknown Source)
    at processing.core.PApplet.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:662)
Exception in thread "Animation Thread" java.lang.RuntimeException: Error inside 
Serial.ports()
    at processing.serial.Serial.errorMessage(Unknown Source)
    at processing.serial.Serial.list(Unknown Source)
    at Turret_06_04.retryArduinoConnect(Turret_06_04.java:1905)
    at Turret_06_04.setup(Turret_06_04.java:189)
    at processing.core.PApplet.handleDraw(Unknown Source)
    at processing.core.PApplet.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:662)

please help me
narendracircuit@gmail.com

Original comment by Narendra...@gmail.com on 26 Sep 2013 at 2:02