siddhupaji / simple-openni

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

Unsatisfied Link Error #47

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. 64 Bit Windows 7, 64 Bit Java SDK 7

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

3. 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!

Original issue reported on code.google.com by pratt.wi...@gmail.com on 10 Jun 2012 at 12:06

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

Original comment by m...@paus.ch on 10 Jun 2012 at 7:05

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

Original comment by pratt.wi...@gmail.com on 10 Jun 2012 at 3:27

Attachments:

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

Original comment by m...@paus.ch on 11 Jun 2012 at 9:32

GoogleCodeExporter commented 8 years ago
I installed, restarted, and still got the same error. Any other ideas? I 
appreciate your time.

Original comment by pratt.wi...@gmail.com on 11 Jun 2012 at 9:01

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

Original comment by pratt.wi...@gmail.com on 14 Jun 2012 at 12:50

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

Original comment by m_dunha...@hotmail.com on 22 Jun 2012 at 5:31

Attachments:

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

Original comment by georgema...@gmail.com on 1 Jul 2012 at 9:46

Attachments:

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

Original comment by saschabl...@gmail.com on 9 Jan 2013 at 11:24

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
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?

Original comment by saulo...@hotmail.com on 15 Apr 2013 at 8:45

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\

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-simpleop
enni-simpleopennijni-swig-module-initv

NMQM

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

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

Original comment by uralma...@gmail.com on 28 Jul 2013 at 12:34