Skip to content
Arduino version of RXTX
Shell Java C C++ Perl Objective-C
Find file
Failed to load latest commit information.
CNI first import
MACOSX_IDE first import
Rewrite2010 first import
WinCE first import
contrib first import
debian first import
m4 first import
src code cleanup
tests/gnu/io/rxtx/tests first import
.gitignore wider gitignore
AUTHORS first import
BeOS first import
COPYING first import
ChangeLog first import
INSTALL first import first import first import
Makefile.lcc first import
Makefile.macosx first import
Makefile.mingw32 first import
Makefile.msvc first import
PORTING first import
README.IPAQ first import
README.OSX first import
README.SCO first import removed hidden chars in the readme
RMISecurityManager.html first import
SerialPortInstructions.txt first import
TODO first import
aclocal.m4 first import first import
buildtest first import
buildwin32 first import
config.guess first import first import
config.sub first import
configure first import first import
install-japanese.html first import
install-sh first import
ltconfig first import first import
missing first import
mkinstalldirs first import
rxtx.spec first import first import

RXTX 2.2

Latest update with upstream: 2012-01-08

This fork of RXTX patches the upstream sources to introduce the following fixes:

  • support to linux ttyACM* devices
  • reduced latency (thanks @neophob)
  • faster ports listing on Windows boxes with some particular hardware (Bluetooth) configurations (thanks eried from the forum)

Upgrading the source code

Check it out from CVS with the commands

cvs login # (then hit return)
cvs checkout -r commapi-0-0-1 rxtx-devel

Compiling on linux

Have the necessary tools in place: on debian/ubuntu apt-get install build-essentials should suffice. Then, in the repo folder, run:

mkdir build

and get the resulting files: they should be in folder YOUR_ARCH/.libs/.

If you are using a 64 bit Linux, you can produce 32 bit binaries too: run apt-get install gcc-multilib then run

mkdir build
CFLAGS="-m32" ../configure

Compiling on windows

Have the necessary tools in place. These are:

After you have cloned the repo, run:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools>vsvars32.bat
Set­ting envi­ron­ment for using Microsoft Visual Studio 2010 x86 tools.
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools>cd C:\RXTX\

C:\RXTX> mkdir build
C:\RXTX> copy Makefile.msvc build\Makefile
C:\RXTX> cd build
C:\RXTX\build> set path=%PATH%;"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin"

Then edit Makefile and correct path variables, in particular: JAVA_HOME, JUNIT_JAR, JAVAC, JAR, JAVAH, JAVA. Finally run:

C:\RXTX\build> nmake serial

Thanks to @neophob for his blog page.

Compiling on macosx

Have the necessary tools in place. These are:

Then, in a new terminal, clone the repo, cd into its folder, then:

mkdir build
cd build
rm -rf *
CFLAGS="-arch i386" LDFLAGS="-arch i386" sh ../configure
sed -e 's|/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../../../Headers|/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers|g' -i '' Makefile
sed -e 's|$(SHELL) glibtool|$(SHELL) glibtool --tag CC|g' -i '' Makefile
Something went wrong with that request. Please try again.