The error reads:
Exception in thread "Animation Thread"
java.lang.UnsatisfiedLinkError: /Users/Dave/Documents/Processing/
Libraries/touchatag/library/libnfc.dylib: no suitable image found.
Did find: /Users/Dave/Documents/Processing/Libraries/touchatag/
library/libnfc.dylib: unknown required load command 0x80000022
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1824)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1748)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at touchatag.Touchatag.<clinit>(Unknown Source)
at touchatagExample.setup(touchatagExample.java:39)
at processing.core.PApplet.handleDraw(PApplet.java:1583)
at processing.core.PApplet.run(PApplet.java:1503)
at java.lang.Thread.run(Thread.java:655)
And the example I'm using is:
import touchatag.*;
Touchatag rfid;
PFont font;
// Defines the maximum number of touchatag
// readers that might be connected to the computer
int numOfReaders = 3;
// This library affords up to three touchatag
// tags on each of the touchatag readers
String[][] tags = new String[numOfReaders][3];
void setup() {
// Optinally, if only one touchatag reader will
// be used: rfid = new Touchatag(this);
rfid = new Touchatag(this, numOfReaders);
font = loadFont("Verdana-10.vlw");
textFont(font);
size(800, 400);
rectMode(CENTER);
stroke(0);
fill(125);
}
void draw() {
background(255);
// Gets the number of touchatag readers connected
int numReaders = rfid.On();
if (numReaders != 0) {
drawReaders(numReaders);
// Gets the tags for each of the touchatag readers
for (int i = 0; i < numReaders; i++) {
tags[i] = rfid.tagsOnReader(i);
drawTags(tags[i], i);
}
}
}
// Draws a small square for each of
// the touchatag readers connected
void drawReaders(int num) {
for (int i = 1; i <= num; i++) {
rect(i * 200, 100, 50, 50);
}
}
// Writes the list of tag IDs
// present on a touchatag reader
void drawTags(String[] tagList, int pos) {
for (int i = 0; i < tagList.length; i++) {
text(tagList[i], (pos + 1) * 175, (i * 10) + 150);
}
}
Line 18 ( rfid = new Touchatag(this, numOfReaders); ) gets
highlighted so presumably that's the problematic bit. To be quite
honest, I'm not even entirely sure what this example is supposed to
do...Would it be possible to come and talk to one of you guys (or
anyone else for that matter) about what I'm trying to do?
Cheers, Dave