Go Down

Topic: Arduino IDE 002132bit  Ubuntu 10.10 (Read 2192 times) previous topic - next topic


If you come across this error while running arduino 0021 32bit on ubuntu 10.10:

Code: [Select]
java.lang.UnsatisfiedLinkError: /home/USER/Downloads/arduino-0021/lib/librxtxSerial.so: /home/USER/Downloads/arduino-0021/lib/librxtxSerial.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch) thrown while loading gnu.io.RXTXCommDriver
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/USER/Downloads/arduino-0021/lib/librxtxSerial.so: /home/USER/Downloads/arduino-0021/lib/librxtxSerial.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
   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.app.Editor.populateSerialMenu(Unknown Source)
   at processing.app.Editor.buildToolsMenu(Unknown Source)
   at processing.app.Editor.buildMenuBar(Unknown Source)
   at processing.app.Editor.<init>(Unknown Source)
   at processing.app.Base.handleOpen(Unknown Source)
   at processing.app.Base.handleOpen(Unknown Source)
   at processing.app.Base.handleNew(Unknown Source)
   at processing.app.Base.<init>(Unknown Source)
   at processing.app.Base.main(Unknown Source)

It seems the 32bit package include the 64bit driver librxtxSerial.so
I did a "locate librxtxSerial.so" and found one in /usr/lib/jni/.
If you do not have that file do:
Code: [Select]
sudo apt-get install librxtx-java

After this link the lib where ever its installed to your arduino lib folder
Code: [Select]
sudo ln -sf /usr/lib/jni/librxtxSerial.so /home/USER/arduino/lib/librxtxSerial.so.
(You have to rename the existing one in the destination folder before)

I was then able to launch and run arduino ide successfully and upload data to the board.



Oct 30, 2010, 10:52 am Last Edit: Oct 30, 2010, 10:52 am by superpelican Reason: 1
It seems to be a problem with the new USB chip. RX (Receive), TX (Transmit) are Serial pins. Earlier the Arduino team also had problems with the RXTX. That was in v.20 when there was no version for Linux avaible. In v.21 the problems had to be fixed. May be the fix didn't have impact on your installation :(.

(I use Lubuntu 10.10, the LXDE version of Ubuntu, http://lubuntu.net/)

I hope you now understand the things a bit more,


Go Up