Export to GitHub

simple-openni - issue #47

Unsatisfied Link Error


Posted on Jun 10, 2012 by Happy Bear

What steps will reproduce the problem? 1. 64 Bit Windows 7, 64 Bit Java SDK 7

  1. Install OpenNI, NITE, Sensor, and Kinect Driver 32 Bit from http://code.google.com/p/simple-openni/wiki/Installation

  2. Try to run any example sketch through Processing (http://processing.org/)

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

Can't load SimpleOpenNI library (SimpleOpenNI64) : java.lang.UnsatisfiedLinkError: C:\Users\BILL\Documents\Processing\libraries\SimpleOpenNI\library\SimpleOpenNI64.dll: Can't find dependent libraries Verify if you installed SimpleOpenNI correctly. http://code.google.com/p/simple-openni/wiki/Installation 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 DepthImage.setup(DepthImage.java:40) at processing.core.PApplet.handleDraw(Unknown Source) at processing.core.PApplet.run(Unknown Source) at java.lang.Thread.run(Thread.java:722)

What version of the product are you using? On what operating system?

Processing 1.5.1 SimpleOpenNI 0.27 NITE 1.5.2.21 OpenNI 1.5.4.0 SensorKinect v0.93-5.1.2.1

Please provide any additional information below.

Program will not run!

Comment #1

Posted on Jun 10, 2012 by Quick Bear

Check if you missing some runtime libraries(msvcrt, etc.). Download this tool: http://www.dependencywalker.com/ Open SimpleOpenNI64.dll with dependencyWalker to see which dll's are missing.

Comment #2

Posted on Jun 10, 2012 by Happy Bear

I have attached the result. Do you have any idea what dll's are missing, or where I need to go from here?

Attachments

Comment #3

Posted on Jun 11, 2012 by Quick Bear

Try to install this: http://www.microsoft.com/en-us/download/details.aspx?id=29

Comment #4

Posted on Jun 11, 2012 by Happy Bear

I installed, restarted, and still got the same error. Any other ideas? I appreciate your time.

Comment #5

Posted on Jun 14, 2012 by Happy Bear

So I just went the extreme distance, and popped in a new hard drive, formatted it with Windows 7 32-Bit, and installed everything (32-Bit obviously). Same error.

Comment #6

Posted on Jun 22, 2012 by Happy Cat

The same thing happened to me but I downloaded the files, downloaded Visual C++ from your link and then got the same error. So I ran DepenencyWalker again and got the attached result. I'm using Windows 64 bit but with the same drivers that Mr. Pratt is using above.

Any recommendations? Is there another previous version of OpenNI_NITE that's compatible with another version of SimpleOpenNI that I could try or should these work?

Attachments

Comment #7

Posted on Jul 1, 2012 by Happy Rabbit

Hi, i get the same error. I am using eclipse for running the kinect.

I have a W7 64bit version.

I am using following drivers:

avin2-SensorKinect-v0.93-5.1.2.1-0-g15f1975 nite-win32-1.5.2.21-dev openni-win32-1.5.2.23-dev sensor-win32-5.1.0.41-redist SimpleOpenNI 0.27

That is my resutl DependencyWalker.

It is quite strange. If I run Processing it works but under Jave it doesn't.

Are there any recommedations for me??

Thanks for your help!!

Best regards,

Georg

Attachments

Comment #8

Posted on Jan 9, 2013 by Happy Dog

Comment deleted

Comment #9

Posted on Jan 9, 2013 by Happy Dog

I got the same error with the current Processing 2 beta 7 version. With Processing 1.5.1 it works, any new ideas for this problem?

Comment #10

Posted on Apr 15, 2013 by Happy Bird

I have the same error as saschabl...@gmail.com

I installed Processing 2.0b8 and I get the same error. (Windows 7,x64)

It was working fine with Processing 1.5.1. The examples of SimpleOpenNI in Processing don't work.

Any ideas for this problem?

Comment #11

Posted on Jul 2, 2013 by Grumpy Giraffe

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\

And in Linux/MacOS, SimpleOpenNI librairies needed are : libSimpleOpenNI32.so or/and libSimpleOpenNI64.so.

Hope it will be useful to you!

Cheers.

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

NMQM

Comment #12

Posted on Jul 28, 2013 by Massive Hippo

Hi,

I solved this problem. Please note which version of Processing you are using: 64-bit version will attempt to access the 64-bit library. By installing a 32-bit Processing, everything fell into place, the 64-bit OpenNI also did not work.

Status: Started

Labels:
Type-Defect Priority-Medium