andreypdr / simple-openni

Automatically exported from code.google.com/p/simple-openni
0 stars 0 forks source link

UnsatisfiedLinkError #36

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. downloaded everything
2. launched depthimage test

What is the expected output? What do you see instead?

Cannot run Java in 32 bit mode. Continuing in 64 bit mode.
Can't find the SimpleOpenNI library (SimpleOpenNI) : 
java.lang.UnsatisfiedLinkError: 
/Users/lauria/Documents/Processing/libraries/SimpleOpenNI/library/libSimpleOpenN
I.jnilib:  no suitable image found.  Did find:  
/Users/lauria/Documents/Processing/libraries/SimpleOpenNI/library/libSimpleOpenN
I.jnilib: unknown required load command 0x80000022
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:1553)
    at SimpleOpenNI.ContextWrapper.<init>(ContextWrapper.java:54)
    at SimpleOpenNI.SimpleOpenNI.<init>(SimpleOpenNI.java:167)
    at DepthImageXml.setup(DepthImageXml.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)

What version of the product are you using? On what operating system?
Mac OSX 10.5.8
Java 1.6
Processing 1.5.1

Please provide any additional information below.
Can't run detphimage test. Any help would be much appreciated. Thanks.

Original issue reported on code.google.com by lauria.c...@gmail.com on 1 Apr 2012 at 2:51

GoogleCodeExporter commented 8 years ago
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

Cheers.

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

NMQM

Original comment by nmq...@gmail.com on 2 Jul 2013 at 1:44

GoogleCodeExporter commented 8 years ago
And in Linux/MacOS, SimpleOpenNI librairies needed are: libSimpleOpenNI32.so 
or/and libSimpleOpenNI64.so.

Cheers

Original comment by nmq...@gmail.com on 2 Jul 2013 at 1:48