Comments (10)
[blink1/libraries]$ export LD_LIBRARY_PATH=. && java -jar blink1.jar
even this produces the same
from blink1.
Hi Maza,
Take a look at the shell script:
https://github.com/todbot/blink1/blob/master/java/blink1-tool-java.sh
for an example of how to set up the various paths.
Also, if you are on Linux, you will probably need to rebuild libBlink1.so by doing a "make compile" and "make jar" in blink1/java
from blink1.
Hey,
Even the script does the same thing before and after rebuilding the so. :(
On 1 Feb 2013 19:51, "Tod E. Kurt" [email protected] wrote:
Hi Maza,
Take a look at the shell script:
https://github.com/todbot/blink1/blob/master/java/blink1-tool-java.sh
for an example of how to set up the various paths.Also, if you are on Linux, you will probably need to rebuild libBlink1.so
by doing a "make compile" and "make jar" in blink1/java—
Reply to this email directly or view it on GitHubhttps://github.com//issues/40#issuecomment-13010925.
from blink1.
The Java wrapper under Linux hasn't been tested very extensively. We would appreciate any insight from people who have experience with Java on Linux.
from blink1.
I'll happily help once we solve this :)
Marton Meszaros
+447523539825
www.meza.hu
skype: vsb-meza
(The email has been sent from my phone. I am on the go, so my reply time
may vary.)
On 1 Feb 2013 21:21, "Tod E. Kurt" [email protected] wrote:
The Java wrapper under Linux hasn't been tested very extensively. We would
appreciate any insight from people who have experience with Java on Linux.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/40#issuecomment-13012189.
from blink1.
Hi,
I've found a way to get this working:
- cd blink1/commandline/hidapi/libusb
- make -f Makefile.linux
- copy the newly created
libhidapi-libusb.so
to your lib dir - export LD_LIBRARY_PATH=
- export LD_PRELOAD=/libhidapi-libusb.so
- run you java program
It's just a workaround and hopefully not needed once we figure how it's done the right way, but it works.
HTH,
Fred
from blink1.
Thanks, Fred, this is extremely useful.
I haven't had to use LD_PRELOAD in like a decade, I forget how it's different from LD_LIBRARY_PATH
Which distro of Linux did you do this on?
from blink1.
I updated the Java/Processing library zip bundle at:
http://thingm.com/blink1/downloads/blink1-java-processing-lib.zip
that should now out-of-the box for Linux.
If you are using this directly from java, just point your LD_LIBRARY_PATH and to the unzipped directory and add the blink1.jar to your jar path. On the command line, this looks something like:
unzip blink1-java-processing-lib.zip
export BLINK1LIB=`pwd`/blink1-java-processing-lib/blink1/library
java -Djava.awt.headless=true -Djava.library.path=${BLINK1LIB} ${BLINK1LIB}/blink1.jar MyTestClass
from blink1.
Hi, Tod. The new Java/Processing library zip worked for me. Thank you.
from blink1.
I'm still running Kubuntu 10.04.04 LTS.
from blink1.
Related Issues (20)
- blink(1) mk3 behaves strange with blink1-tool HOT 8
- Big Sur Support HOT 11
- I really wanna drive my CircuitPlayground, RGB lights, and everything with this. HOT 1
- HTTP API: Typo in blink(1) Status JSON? Quotes issue? HOT 1
- "certificate has expired" HOT 1
- How to send POST or GET to control blink(1)? HOT 4
- Some notes regarding blink(1) mk3 powered by Mac keyboard USB hub HOT 1
- Failed to compile the blink1mk2 firmware HOT 2
- Cannot Add Pattern with API HOT 1
- blink1control2 can't find device HOT 3
- cannot install as directory blink1/commandline does not exist
- how can i upgrade the firmware?
- What's the `Set ledn` for? HOT 1
- Availability and Status of blink(1) product in Far East HOT 2
- FeatureReportByteLength of blink(1) is 9 instead of 8 HOT 3
- confusing ledn definition for read current color cmd
- what's `Test command format: { 1, '!', 0,0,0, 0,0, 0 }` and how to use it?
- Differentiating between blink(1) Devices (mk1, mk2, mk3) in a C++ Application
- Inconsistent Position Definition for Serverdown Tickle and PlayLoop HOT 2
- Fail to Set Individual LED RGB Color (command: 'n') for mk2 Devices HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blink1.