todbot / LinkM

BlinkM controller / programmer and general USB-to-I2C adapter
http://linkm.thingm.com/
13 stars 6 forks source link

LinkM - missing .dylib for OSX #3

Closed lobsteroh closed 8 years ago

lobsteroh commented 8 years ago

i am compiling the LinkM on Mac OSX with

$ bash build_all_host.sh

and it creates files

LinkM.dll   export.txt  libLinkM.jnilib libLinkM.so linkm.jar

there is no .dylib file and the .so does not appear to be a functional object file ...

$ otool -hv libLinkM.so 

produces

libLinkM.so: is not an object file

when i include the jar and .so in my java project I get ...

Exception in thread "main" java.lang.UnsatisfiedLinkError: thingm.linkm.LinkMStarter.command(I[B[B)V at thingm.linkm.LinkMStarter.command(Native Method) at thingm.linkm.LinkMStarter.getVersion(LinkMStarter.java:59) at thingm.linkm.LinkMStarter.main(LinkMStarter.java:67)

any suggestions?

todbot commented 8 years ago

Java on Mac OS X uses a .jnilib file, not .dylib. That file is in there. But I think because of changes in Java and/or OS X, the previous build wasn't working. I've rebuilt it and released it here: https://github.com/todbot/LinkM/releases/tag/20160406

lobsteroh commented 8 years ago

hi tod, thanks a stack. i can confirm that this one is working fine. trying to dig through the BlinkMSequencer2 code for the nuggets of value was a bear, if you are interested, here is a class with a barebones communication to I2C device via LinkM. feel free to use, adapt, or ignore.

BlinkMController.pdf