Skip to content
This repository was archived by the owner on Aug 9, 2022. It is now read-only.

Commit e45ada0

Browse files
author
Federico Fissore
committed
RXTX mac instructions
1 parent 7ce452b commit e45ada0

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,21 @@ Thanks to @neophob for his [blog page](http://neophob.com/2011/05/serial-library
6363

6464
# Compiling on macosx
6565

66-
TODO
66+
Have the necessary tools in place. These are:
67+
68+
- [git](http://git-scm.com/download/mac)
69+
- Java 1.6
70+
- [XCode Command Line Tools](http://stackoverflow.com/questions/9329243/xcode-4-4-command-line-tools)
71+
- glibtool
72+
73+
Then, in a new terminal, clone the repo, cd into its folder, then:
74+
75+
```bash
76+
mkdir build
77+
cd build
78+
rm -rf *
79+
CFLAGS="-arch i386" LDFLAGS="-arch i386" sh ../configure
80+
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
81+
sed -e 's|$(SHELL) glibtool|$(SHELL) glibtool --tag CC|g' -i '' Makefile
82+
make
83+
```

0 commit comments

Comments
 (0)