SimpleOpenNI Library not loading in Processing

1,070 views
Skip to first unread message

Amanda Wood

unread,
Oct 10, 2012, 11:49:22 PM10/10/12
to simple-ope...@googlegroups.com
Hi there for some reason I keep getting this error. I've followed all the instructions to load SimpleOpenNI into Processing but get this error with every example.

Can't load SimpleOpenNI library (SimpleOpenNI) : java.lang.UnsatisfiedLinkError: /Users/macowner/Documents/Processing/libraries/SimpleOpenNI/library/libSimpleOpenNI.jnilib:  Library not loaded: ../../Bin/x64-Release/libOpenNI.dylib   Referenced from: /Users/macowner/Documents/Processing/libraries/SimpleOpenNI/library/libSimpleOpenNI.jnilib   Reason: image not found
Verify if you installed SimpleOpenNI correctly.
Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: SimpleOpenNI.SimpleOpenNIJNI.swig_module_init()V
at SimpleOpenNI.SimpleOpenNIJNI.swig_module_init(Native Method)
at SimpleOpenNI.SimpleOpenNIJNI.<clinit>(SimpleOpenNIJNI.java:1575)
at SimpleOpenNI.ContextWrapper.<init>(ContextWrapper.java:54)
at SimpleOpenNI.SimpleOpenNI.<init>(SimpleOpenNI.java:212)
at User.setup(User.java:40)
at processing.core.PApplet.handleDraw(PApplet.java:1608)
at processing.core.PApplet.run(PApplet.java:1530)
at java.lang.Thread.run(Thread.java:680)

Can anyone help? Thanks so much.

Radamés Ajna

unread,
Oct 11, 2012, 1:35:48 PM10/11/12
to simple-ope...@googlegroups.com
have you installed the OpenNI Libraries ?

http://code.google.com/p/simple-openni/wiki/Installation#OSX


Radamés
Message has been deleted

MINH NGUYEN

unread,
Jul 2, 2013, 9:47:48 AM7/2/13
to simple-ope...@googlegroups.com, m...@radames.in
Hi, 

I found a very simple solution to resolve SimpleOpenNI exception
'Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: SimpleOpenNI.SimpleOpenNIJNI.swig_module_init()V '

1. Go to System Properties -> Advanced -> Environnement Variables
2. In 'System variables', search and modify 'Path' variable
3. Add a path to the SimpleOpenNI32.dll in the end of 'Path' variable.

By default : SimpleOpenNI32.dll is located at %SimpleOpenNI% Folder ...\Processing\libraries\SimpleOpenNI\library\

Hope it will be useful to you! 

I don't know in Mac OS how to change System Variables but it uses Linux Kernel, I think it is same of change PATH (system variable) in Linux. And in Linux, SimpleOpenNI file needed is : libSimpleOpenNI32.so or libSimpleOpenNI64.so

Cheers.

I got my solution after reading this article:
http://stackoverflow.com/questions/12875212/kinect-unsatisfiedlinkerror-simpleopenni-simpleopennijni-swig-module-initv

NMQM
Reply all
Reply to author
Forward
0 new messages