Go Down

Topic: Arduino-IDE on openSUSE 11.2 (Read 6 times) previous topic - next topic

elgitanito

Hi Arduino-Comunity,

I installed Arduino-Software on a 64-bit-openSUSE 11.2. When starting it, the following message is displayed just at the beginning (first message):

Native lib Version = RXTX-2.2pre2
Java lib Version   = RXTX-2.1-7
WARNING:  RXTX Version mismatch
Jar version = RXTX-2.1-7
native lib Version = RXTX-2.2pre2

After having read some postings about that problem I copied the current version of java-rte (version 6, as provided by openSUSE) librxtxSerial.so from the /usr/lib64 directory to the arduino/lib dir. With this, the shown message changes only a little (without pre2):

Native lib Version = RXTX-2.2
Java lib Version   = RXTX-2.1-7
WARNING:  RXTX Version mismatch
Jar version = RXTX-2.1-7
native lib Version = RXTX-2.2

The most actual version I could find is the one from /usr/lib64, its last modification was 2010.01.19. The one from arduino: 2009.07.16.

So I have two questions:
1) From where results the versionnr: RXTX-2.1-7 ? Is it from arduinos-startup-code (startup-code compiled with the RXTX-2.1-7 ?). If this is the case, then I wonder why the arduino-soft is shipped with the 2.2pre2 ?)

2) Any Idea how to get rid of this version-missmatch ?

Many thanx in advance, elgitanito





elgitanito

While waiting for a reply (without success), I' found something like a solution (up to now I haven't programmed nothing yet, but...):

With the old versions of the librxtxSerial AND RXTXComm.jar from the year 2006 (both version 2-1.7), the arduino-IDE starts without warnings.Furthermore I had to change from COM1 to /dev/ttyS0 in the /root/.arduino/preferences.txt.
All together it was necessary to work on all this 3 points in order to avoid the type-missmatch-warning AND to have the tools-serial-menu blacked (not greyed inactive).

It was once more the RTFM-Problem :-)
(Read The Fucking Manual :-))

Greets


elgitanito

I forgot:
The file rxtx-2.1-7-bins-r2.zip can be downloaded at:
http://rxtx.qbang.org/wiki/index.php/Download
Ok, now let's see, if the blinker will blink !

David B.

#3
Feb 27, 2010, 12:46 am Last Edit: Feb 27, 2010, 11:07 pm by dbrunell Reason: 1
Where did you place the rxtx-2.1-7 files, and did you have to delete any of the files that came with the distribution?  I'm getting the same Java warning, but it doesn't seem to be creating any problems.

Be sure to check your version of avr-gcc also.
Code: [Select]
avr-gcc --version
If you have gcc 4.1.x or 4.4.x (the only options YaST gives you), you will have problems sooner or later.  Gcc 4.1 does not support the ATmega328, and 4.4 is causing compile and/or link errors for a lot of people.  You can search the forum for the issues that people are having with gcc 4.4.  I was unable to compile the asynch_labs WiShield code.

So here's how to get it all working under OpenSuse 11.2:

1. Install avr-libc, avrdude and cross-avr-binutils using YaST.  It will pull in cross-avr-gcc as a dependency.

2. To update the avr cross-compilation portion of gcc with the correct version, do the following:
Code: [Select]
wget ftp://ftp.gnu.org/gnu/gcc/gcc-4.3.4/gcc-4.3.4.tar.gz
tar xzvf gcc-4.3.4.tar.gz
cd gcc-4.3.4
mkdir obj
cd obj
../configure --prefix=/opt/cross --target=avr --enable-languages=c,c++ --disable-nls --disable-libssp
make
sudo make install

The download and compile will take awhile, so enjoy some coffee. :)  You may experience some configure or compile errors and need to install additional dependencies like gmp-devel and mpfr-devel.  Do this with YaST.  Check your version of avr-gcc again when you are done.

3. After you install the Arduino environment and plug in the board, make sure you can see the /dev/ttyUSBx device.  
Code: [Select]
ls -la /dev/ttyU*
If you don't see the device file, execute the following as superuser:
Code: [Select]
modprobe ftdi_sio
Also, make sure your user is in the dialout and uucp groups to have access to the device file.  

Good luck and happy hacking!

elgitanito

Hi David,

many thanks for your reply.
At first the answer to your question:
I copied the two files (librxtxSerial.so and the RXTXcomm.jar) directly into the ~/arduino-0018/lib-directory.

Maybe you also read the other thread, which I started yesterday, some hours after having started this thread. So, obviously, I already have problems with my actual configuration. But before starting to fix the problem according to your solution, could you please answer the following questions ? (just for a better understanding of the things that happen):

1 Does your suggestion mean, that I shouldn't worry about the different version-numbers of the java-libs ? (Or in other words: shall I switch back to the original rxtx-libs, as they are content of the current arduino-IDE ?)

2 Why is the 13Pin-LED already blinking although I haven't uploaded anything yet ? The Pin13-LED started to blink immediately when I connected the (brandnew) Duemilanove the first time after unpacking it. Is this OK, or does the blinking LED mean that anything is wrong with the board ?

Greetings from good old Germany, Rafa


Go Up