RxtxSerial.dll for MacOS 10.8

I am currently working on a ZigBee project and I am programming on Mac with Mountain Lion (10.8) and using the Eclipse IDE. To use my Zigbee module via USB for serial communication, I need this rxtxSerial.dll file. Right now I only have a Windows compatible version.

Can anyone provide me the necessary link?

Thanks!

+4
source share
1 answer

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 get the procedure described below.

Installing and configuring homebrew is easy

brew install libtool 

from the terminal. Then follow the steps below.

/ Edit2

Edit

So, I managed to compile it for myself on OS X Mountain Lion (10.8.2) and XCode (free from the 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 the terminal in your working directory.

Now you will have a file called "Makefile" in your working directory, you need to edit the line in this file, which 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

to do

You will now have RXTXcomm.jar in your working directory and librxtxSerial.jnilib in the working directory / i 386-apple-darwin12.2.0

These are the files you need.

You may need to work with them.

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 .

SFC. You can 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 so far I have not been successful yet, I found this link. Java 6 and librxtxSerial.jnilib for Intel Mac OS X And although it doesn't say anything about ML, one comment says that it works with Lion if you pick it up a bit.

I will report if I earn here.

+7
source

Source: https://habr.com/ru/post/1442986/


All Articles