dustinfreeman / simple-openni

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

Can't load SimpleOpenNI library (SimpleOpenNI32) : java.lang.UnsatisfiedLinkError: #58

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. installation of OpenNI-Windows-x86-2.0.0.32.msi
2. installation of SensorKinect093-Bin-Win32-v5.1.2.1.msi
3. installation of NiTE-Windows-x64-2.0.0(1).msi

4. installation of processing-1.5.1-windows
5. installation of SimpleOpenNI-0.27.zip

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

I tried to run a SimpleOpenNI exemple. I get this error instead :

Display 0 does not exist, using the default display instead.
Can't load SimpleOpenNI library (SimpleOpenNI32) : 
java.lang.UnsatisfiedLinkError: 
C:\Users\fdiba\Documents\Processing\libraries\SimpleOpenNI\library\SimpleOpenNI3
2.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 RecorderPlay.setup(RecorderPlay.java:46)
    at processing.core.PApplet.handleDraw(Unknown Source)
    at processing.core.PApplet.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:662)

What version of the product are you using?

- OpenNI-Windows-x86-2.0.0.32.msi
- SensorKinect093-Bin-Win32-v5.1.2.1.msi
- NiTE-Windows-x64-2.0.0(1).msi
- processing-1.5.1-windows
- SimpleOpenNI-0.27.zip

On what operating system?

Windows 7 64

Please provide any additional information below.

Can you help me to make it work ? Or give me an other way to use processing and 
kinect ?

Original issue reported on code.google.com by florent....@gmail.com on 11 Jan 2013 at 8:44

GoogleCodeExporter commented 9 years ago
I have the exact same problem...

Original comment by felipe.n...@gmail.com on 18 Feb 2013 at 1:28

GoogleCodeExporter commented 9 years ago
OK! Now it works!

I've uninstalled all the drivers and OpenNI software and started over from the 
beginning. I installed Processing 1.5.1 and downloaded the 
SimpleOpenNI-0.27.zip library. 
I am using Windows 7 64 bits. But, to make it work, I've installed the package 
for Win32 (OpenNI_NITE_Installer-win32-0.27.zip), following this sequence:
1. OpenNI Installer
2. NITE Installer
3. Sensor Installer (Driver for Primesense Devices: Asus Xtion Pro,etc.)
4. Kinect Installer (Driver for Kinect)
5. Plug the Kinect on my USB port (it downloaded the drivers from Microsoft 
Update)

I worked!!

The detailed instructions and links are here:
http://code.google.com/p/simple-openni/wiki/Installation

Original comment by felipe.n...@gmail.com on 18 Feb 2013 at 2:03

GoogleCodeExporter commented 9 years ago
Hello,

Great. I'm going to retry. What kinect are you using ?

Kinect for windows  or kinect for xbox ?

Original comment by florent....@gmail.com on 18 Feb 2013 at 5:02

GoogleCodeExporter commented 9 years ago
I am using Kinect for XBox. It's the one that you have to use an external power 
suply to connect to the computer and says "XBOX 360" at front.
Good luck!

Original comment by felipe.n...@gmail.com on 18 Feb 2013 at 1:27

GoogleCodeExporter commented 9 years ago
I'm using Kinect for Windows. I think it's the reason of my problems...
Have fun !

Original comment by florent....@gmail.com on 18 Feb 2013 at 2:55

GoogleCodeExporter commented 9 years ago
Hi Felipe, I've followed the steps as you did, I totally formatted my notebook, 
installed win 7 64 bits and therefore I followed your instructions, but its not 
working for me. I solved to try install the more updates version from apps, but 
it not worked either,  there is some other hint to this terrific problem?

Original comment by camilore...@gmail.com on 27 Mar 2013 at 7:18

GoogleCodeExporter commented 9 years ago
Hello Camilo. I am sorry, but I don't know how to help you. I thought that by 
installing the exact same versions of the programs would make it work. If you 
do solve your problem, please post the solution here!
Te deseo suerte!

Original comment by felipe.n...@gmail.com on 27 Mar 2013 at 3:25

GoogleCodeExporter commented 9 years ago
I am having the exact same problem, I am using Kinect SDK 1.6, OpenNI 2.0 and 
NiTE 2.0, running on a 64 bit Windows 7 machine. My processing (2.0b8) is not 
finding the SimpleOpenNI library.. any suggestions? Thanks in advance and I 
hope we can manage to solve this problem soon! 

Original comment by tacl...@gmail.com on 6 Apr 2013 at 4:45

GoogleCodeExporter commented 9 years ago
If I recall correctly, you should uninstall Microsoft SDK for Kinect otherwise 
OpenNI won't work.

Original comment by felipe.n...@gmail.com on 6 Apr 2013 at 3:44

GoogleCodeExporter commented 9 years ago
Hi, I am using Kinect SDK 1.7, OpenNI 2.2 and NiTE 2.2. All 64 bits running on 
a 64 bit Win8. I can run NiTE examples (NiViewer, HandViwer and UserViewer). My 
problem is when try to use SimpleOpenNI. I get the follow error "Can't load 
SimpleOpenNI library (SimpleOpenNI64) : java.lang.UnsatisfiedLinkError"   

Any Suggestion ?

Original comment by lalosam...@gmail.com on 2 Jun 2013 at 7:52

GoogleCodeExporter commented 9 years ago
I think you should uninstall Microsoft SDK for Kinect otherwise OpenNI
won't work. Also, I had to use Processing 1.5 because it didn't work on
Processing 2.

Att.,
Felipe Nascimento Martins
felipe.n.martins@gmail.com
www.nossosrobos.blogspot.com
Via Android
Em 02/06/2013 04:52, <simple-openni@googlecode.com> escreveu:

Original comment by felipe.n...@gmail.com on 2 Jun 2013 at 3:04

GoogleCodeExporter commented 9 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 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:39

GoogleCodeExporter commented 9 years ago
I don't get your solution @NMQM. What should I put in the 'Path' Variable? It 
hasn't worked for me with "C:\Users\Rob\My 
Documents\Processing\libraries\SimpleOpenNI\library\SimpleOpenNI32.dll"?!?!
Is this the wrong way??

Regards,
Rob

Original comment by robert.s...@gmail.com on 19 Aug 2013 at 9:12

GoogleCodeExporter commented 9 years ago
I had the exact same error message/problem.
I uninstalled openni and nite and reinstalled the older versions from 
-OpenNI_NITE_Installer-win32-0.27.zip

This solved the first problem, but now I get this error message:

SimpleOpenNI Version 0.27
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x68a71015, pid=9228, tid=8968
#
# JRE version: 6.0_24-b07
# Java VM: Java HotSpot(TM) Client VM (19.1-b02 mixed mode windows-x86 )
# Problematic frame:
# C  [OpenNI.dll+0x11015]
#
# An error report file with more information is saved as:
# 
C:\Users\Owner\Downloads\processing-1.5.1-windows\processing-1.5.1\hs_err_pid922
8.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

If this happened to anyone else or anyone knows how I could fix it I would very 
much appreciate it, thank you in advance.

I'm running windows 8.1, and I was following along with the book "Arduino and 
Kinect Projects: Design, Build, Blow Their Minds"

Original comment by Joey.Byr...@gmail.com on 9 Mar 2014 at 11:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Awesome blog!!! It's so informative for you to get a software applications run 
faster on the Windows based PC.visit this link and free from all error of 
windows 7 problem.
http://windows7support.blogspot.in/2013/10/how-to-remove-rundll-error.html
Thank you
Aalia lyon 

Original comment by aalial...@gmail.com on 5 May 2014 at 5:36