nnrccar
nnrccar copied to clipboard
Clarifications with the dependencies
I had a bit of a nightmare getting the Driver app to work with Mac.
I tried installing the apache commons math and RXTX dependencies in "special" directories but kept getting dependency errors while running "ant".
Finally I just put the following into the /lib folder and it finally built without errors.
RXTXcomm.jar commons-math-2.2.jar librxtxSerial.jnilib
Also note that RXTX has issues on mac w/ 64 bit only Java (Lion+). So you have to either build from scratch via CVS and some changes to the build script or use a prebuilt one for 2.1-8 found on the net (not available at their homepage). I used this one http://blog.iharder.net/2009/08/18/rxtx-java-6-and-librxtxserial-jnilib-on-intel-mac-os-x/
It also looks like RXTX for mac requires version 2.1-8..
"Versions prior to 2.1-8 use lock files, which is not the MacOS X way of doing things, and therefore has issues. For this reason make sure that you have version 2.1-8 or higher, which makes use of I/O Kit. At this point in time 2.1-8 is only availble from CVS, in source form. See the section Retrieving Source Code, on getting the latest code - be sure to get the code from the 'gnu.io' branch."
You might also consider using one of the forks listed at the rxtx site, like http://code.google.com/p/nrjavaserial/ I have no idea what code changes would be required, but there are packages available for mac and use much more recent code than the downloads at rxtx's main site.
Another snag that I ran into when trying to use my arduino on a mac after installing the rxtx libraries. I would get "serial port in use" even though nothing was seemingly using it. This fixed the issue. http://marcosc.com/2011/10/arduino-java-error-serial-port-already-in-use/