# 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](https://github.com/neophob))
- faster ports listing on Windows boxes with some particular hardware (Bluetooth) configurations (thanks eried [from the forum](http://arduino.cc/forum/index.php/topic,46977.0.html))
## Upgrading the source code
Check it out from CVS with the commands
```bash
export CVSROOT=:pserver:anonymous@qbang.org:/var/cvs/cvsroot
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:
```bash
mkdir build
../configure
make
```
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
```bash
mkdir build
CFLAGS="-m32" ../configure
make
```
## Compiling on windows
Have the necessary tools in place. These are:
- [git](http://code.google.com/p/msysgit/)
- [Visual C++ 2010 Express](http://www.microsoft.com/visualstudio/ita/downloads#d-2010-express)
- [Windows SDK 7.1](http://www.microsoft.com/en-us/download/details.aspx?id=8279)
- [Java Development Kit 1.4](http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase14-419411.html) (any JDK should actually suffice)
- [JUnit.jar](http://search.maven.org/#browse|-2021159614) placed somewhere on your hard drive
After you have cloned the repo, run:
```bat
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools>vsvars32.bat
Setting environment 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:
```bat
C:\RXTX\build> nmake serial
```
Thanks to @neophob for his [blog page](http://neophob.com/2011/05/serial-library-rxtx-v2-2pre5/).
# Compiling on macosx
Have the necessary tools in place. These are:
- [git](http://git-scm.com/download/mac)
- Java 1.6
- [XCode Command Line Tools](http://stackoverflow.com/questions/9329243/xcode-4-4-command-line-tools)
- glibtool
Then, in a new terminal, clone the repo, cd into its folder, then:
```bash
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
make
```
没有合适的资源?快使用搜索试试~ 我知道了~
RXTXcomm源码包 可以在linux直接编译使用
共232个文件
java:90个
h:21个
c:16个
需积分: 5 1 下载量 15 浏览量
2024-01-12
11:29:19
上传
评论
收藏 1.66MB ZIP 举报
温馨提示
RXTX串口读写在windows下开发正常,在Linux下存在bug,表现为:在代码中能正常开启串口后,发数据、收数据时,jvm崩溃报错。资源加载失败等. 解决方案: 在Linux平台上编译,编译生成.so文件以及RXTXcomm.jar引用包. git hub地址:https://github.com/arduino/RXTX 解决步骤 1. echo $JAVA_HOME是否输出Java环境变量,没有则自行百度配置Java环境变量 2. 进入RXTX-master文件夹,终端输入./configure开始检测系统环境 3. 终端输入make,则在当前目录自动生成RXTXcomm.jar(使用该jar)以及当前CPU架构的文件夹(例如x86_64-unkown-linux-gnu) 4. 在3步生成的文件夹下存在隐藏文件夹.libs,你所需要的动态库.so在该libs文件夹下 5. 将生成的两个.so文件拷贝至$JAVA_HOME/jre/lib/amd64(amd64是我的CPU类型,换成你的),或者拷贝至/usr/lib64目录下,均需要将.so文件赋予执行权
资源推荐
资源详情
资源评论
收起资源包目录
RXTXcomm源码包 可以在linux直接编译使用 (232个子文件)
Makefile.am 10KB
AUTHORS 4KB
BeOS 1KB
buildtest 2KB
buildwin32 406B
SerialImp.c 171KB
SerialImp.c 144KB
termios.c 77KB
RawImp.c 42KB
RS485Imp.c 42KB
I2CImp.c 40KB
ParallelImp.c 31KB
lockdaemon.c 22KB
fuserImp.c 8KB
fuserImp.c 8KB
fuser.c 8KB
portmode.c 5KB
testSerial.c 4KB
fixup.c 3KB
init.c 781B
testing.c 146B
init.cc 717B
ChangeLog 35KB
changelog 1KB
configure 426KB
COPYING 29KB
COPYING 29KB
COPYING 553B
SerialImp.cpp 55KB
gnu_io_RXTXPort.cpp 50KB
Dispatcher.cpp 28KB
rxtxHelpers.cpp 19KB
W32_SerialPort.cpp 17KB
RXTX_Loopbacks.cpp 12KB
W32_ParallelPort.cpp 10KB
gnu_io_RXTXCommDriver.cpp 9KB
RXTX_Classes.cpp 8KB
W32_Support.cpp 8KB
JNI_Support.cpp 6KB
RXTX_Exceptions.cpp 5KB
rxtxSerial.cpp 4KB
StdAfx.cpp 4KB
RXTXcomm.dat 110KB
README.debian 748B
Serial.def 5KB
Parallel.def 1KB
rxtxserial.dsp 6KB
.gitignore 128B
config.guess 43KB
SerialImp.h 17KB
SerialImp.h 15KB
win32termios.h 14KB
gnu_io_RXTXPort.h 13KB
RXTX_Classes.h 11KB
gnu_io_Dispatcher.h 8KB
W32_Classes.h 7KB
RXTX_Loopbacks.h 6KB
rxtxHelpers.h 6KB
I2CImp.h 5KB
RawImp.h 5KB
RS485Imp.h 5KB
RXTX_Exceptions.h 5KB
RXTX_Globals.h 5KB
ParallelImp.h 5KB
StdAfx.h 4KB
JNI_Support.h 3KB
config.h 2KB
gnu_io_RXTXCommDriver.h 1KB
config.h 1KB
config.h 865B
RXTXInstaller.xcodeproj.sitx.hqx 11KB
RMISecurityManager.html 25KB
install-japanese.html 6KB
artistic-license.html 5KB
artistic-license.html 5KB
configure.in 27KB
Makefile.in 26KB
config.h.in 2KB
stamp-h.in 10B
INSTALL 30KB
INSTALL 5KB
install-sh 5KB
README.IPAQ 3KB
RXTXInstaller.jar 558KB
RXTXInstaller.jar 558KB
AuthKit.jar 55KB
libnative.lib.jar 5KB
RXTXPort.java 58KB
RXTXPort.java 53KB
Dispatcher.java 44KB
RXTXCommDriver.java 29KB
RXTXCommDriver.java 25KB
CommPortIdentifier.java 17KB
CommPort.java 16KB
SNComHandler.java 16KB
CommPortIdentifier.java 16KB
SerialPortImpl.java 15KB
SerialPort.java 15KB
CommPortIdentifier.java 14KB
Raw.java 14KB
共 232 条
- 1
- 2
- 3
资源评论
I_m_you_papa
- 粉丝: 1w+
- 资源: 18
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功