适用于MacOS 10.8的rxtxSerial.dll [英] rxtxSerial.dll for MacOS 10.8

查看:160
本文介绍了适用于MacOS 10.8的rxtxSerial.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发一个ZigBee项目,我正在使用Mountain Lion(10.8)在Mac上编程并使用Eclipse IDE。要通过USB使用我的Zigbee模块进行串行通信,我需要这个rxtxSerial.dll。我现在只有Windows兼容版本。



有人能够提供给我的必要链接吗?



谢谢!

解决方案

Edit2



截至2012年的所有最新更新 - 11-15(OSX 10.8.2)我需要在下面的程序开始之前通过自制软件(http://mxcl.github.com/homebrew/)安装glibtool。



安装和配置自制软件后,只需执行

  brew install libtool 
<来自终端的$ pre>


然后按照以下说明继续操作。



/ Edit2



编辑



所以,我设法在OS X Mountain Lion(10.8.2)和XCode(从App Store免费)为我自己编译。



下载 rxtx-2.2pre2.zip 并解压缩。编辑解压缩目录中的configure文件并更改以下行:

  JAVAINCLUDEDIR = $ JPATH /../。 ./../Headers 

  JAVAINCLUDEDIR = / System / Library / Frameworks / JavaVM.framework / Versions / A / Headers 

然后通过执行配置


./ configure


使用工作目录中的终端。



现在你的工作目录中有一个名为Makefile的文件,你需要编辑此文件中的行:

  LIBTOOLC = $(GLIBTOOL)--mode = compile $(CC)$( INCLUDES)$(CPPFLAGS)$(CFLAGS)$(VERBOSE_IOEXCEPTIONS)-c 

to

  LIBTOOLC = $(GLIBTOOL) -  tag = CC --mode = compile $(CC)$(INCLUDES)$(CPPFLAGS)$( CFLAGS)$(VERBOSE_IOEXCEPTIONS)-c 

然后运行



<块引用>

make


现在你的工作目录中有RXTXcomm.jar,工作目录中有librxtxSerial.jnilib /i386-apple-darwin12.2.0



这些是您需要的文件。



与他们合作你可能需要做


sudo mkdir / var / lock



sudo chmod 777 / var / lock


这种方法对我有用。



PS。如果您信任我,可以从此处这里



PPS。您可能会得到:


警告:RXTX版本不匹配Jar版本= RXTX-2.2-20081207
Cloudhopper构建rxtx.cloudhopper.net native lib Version =
RXTX-2.2pre2


但它仍然有用。



/编辑



我也试图在ML上使用rxtx,虽然我还没有取得任何成功,但我确实找到了这个链接。
Java 6和英特尔Mac OS X上的librxtxSerial.jnilib
即使它没有提及任何关于ML的内容,其中一条评论指出,如果你稍微调整它,它可以与Lion配合使用。



如果我在这里工作,我会报告。


I'm currently working on a ZigBee project and I'm programming on an Mac with Mountain Lion (10.8) and using Eclipse IDE. To use my Zigbee Module via USB for Serial communication, I need this rxtxSerial.dll. I only have a Windows compatible version right now.

Is somebody able to provide the necessary link to me?

Thank you!

解决方案

Edit2

With all the latest updates as of 2012-11-15 (OSX 10.8.2) i needed to install glibtool via homebrew (http://mxcl.github.com/homebrew/) before I got the procedure below to work.

With homebrew installed and configured just do

brew install libtool

from a terminal. Then proceed as described below.

/Edit2

Edit

So, I managed to compile it for my self on OS X Mountain Lion (10.8.2) and XCode (free from App Store).

Download rxtx-2.2pre2.zip and extract. Edit the "configure" file in the extracted directory and change the line that reads:

JAVAINCLUDEDIR=$JPATH/../../../Headers

to

JAVAINCLUDEDIR=/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers

Then configure by doing

./configure

using a terminal in your working directory.

Now you will have a file named "Makefile" in your working directory, you need to edit the line in this file that reads:

LIBTOOLC = $(GLIBTOOL) --mode=compile $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(VERBOSE_IOEXCEPTIONS) -c

to

LIBTOOLC = $(GLIBTOOL) --tag=CC --mode=compile $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(VERBOSE_IOEXCEPTIONS) -c

And then run

make

You will now have RXTXcomm.jar in your working directory and librxtxSerial.jnilib in workingdirectory/i386-apple-darwin12.2.0

These are the files you need.

To work with them you may need to do

sudo mkdir /var/lock

sudo chmod 777 /var/lock

This approach worked for me.

PS. If you trust me you can get these files from here and here.

PPS. You may get:

WARNING: RXTX Version mismatch Jar version = RXTX-2.2-20081207 Cloudhopper Build rxtx.cloudhopper.net native lib Version = RXTX-2.2pre2

But it should still work.

/Edit

I am also trying to use rxtx on ML and while I have not have any success yet I did find this link. Java 6 and librxtxSerial.jnilib on Intel Mac OS X And even though it says nothing about ML, one of the comments states that it works with Lion if you tweak it a little bit.

I'll report back if I get it to work here.

这篇关于适用于MacOS 10.8的rxtxSerial.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆