# Processing OpenNi error

**URL:** https://discourse.processing.org/t/processing-openni-error/45335
**Category:** Libraries
**Created:** [November 14, 2024, 9:07pm UTC](https://discourse.processing.org/t/processing-openni-error/45335 "2024-11-14T21:07:53Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![siiso](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@siiso](https://discourse.processing.org/u/siiso)
#### Post date: [November 14, 2024, 9:07pm UTC](https://discourse.processing.org/t/processing-openni-error/45335/1 "2024-11-14T21:07:53Z")

</div>

Just installed drivers for an old XBOX360 Kinect v1 on Ubuntu 22.04. I can see the device and try some basic examples of freenect like glview. However, when I run some basic Processing examples from the OpenNI library, I get the following error :

```auto
UnsatisfiedLinkError: 'void SimpleOpenNI.SimpleOpenNIJNI.swig_module_init()'
java.lang.UnsatisfiedLinkError: 'void SimpleOpenNI.SimpleOpenNIJNI.swig_module_init()'
at processing.opengl.PSurfaceJOGL.lambda$initAnimator$2(PSurfaceJOGL.java:426)
at java.base/java.lang.Thread.run(Thread.java:833)

```

I have installed all other available libraries for ubuntu : Kinect V2 for Processing ( I guess useless as I have v1) and Kinect4WinSDK (is this ok to use in ubuntu btw?)  
Do you have a suggestion what could I try to make this work ?  
Thanks

---

<div class="post-metadata">

### Author: ![siiso](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@siiso](https://discourse.processing.org/u/siiso)
#### Post date: [November 14, 2024, 10:13pm UTC](https://discourse.processing.org/t/processing-openni-error/45335/2 "2024-11-14T22:13:55Z")

</div>

Updates : I just installed Processing 3.5.4 and the error when I launch the OpenNi DepthImage example has evolved into :

```auto
`
java.lang.RuntimeException: Profile GL4bc is not available on X11GraphicsDevice[type .x11, connection :1, unitID 0, handle 0x773b800226d0, owner true, ResourceToolkitLock[obj 0x6bf59905, isOwner true, <6fca00a3, 2ac8933e>[count 1, qsz 0, owner <main-FPSAWTAnimator#00-Timer0>]]], but: [GLProfile[GLES2/GLES3.hw], GLProfile[GL4ES3/GL4.hw], GLProfile[GL2ES2/GL4.hw], GLProfile[GL4/GL4.hw], GLProfile[GLES3/GLES3.hw], GLProfile[GL4/GL4.hw], GLProfile[GL3/GL4.hw], GLProfile[GL2GL3/GL4.hw]]
	at processing.opengl.PSurfaceJOGL$2.run(PSurfaceJOGL.java:410)
	at java.lang.Thread.run(Thread.java:748)
RuntimeException: Profile GL4bc is not available on X11GraphicsDevice[type .x11, connection :1, unitID 0, handle 0x773b800226d0, owner true, ResourceToolkitLock[obj 0x6bf59905, isOwner true, <6fca00a3, 2ac8933e>[count 1, qsz 0, owner <main-FPSAWTAnimator#00-Timer0>]]], but: [GLProfile[GLES2/GLES3.hw], GLProfile[GL4ES3/GL4.hw], GLProfile[GL2ES2/GL4.hw], GLProfile[GL4/GL4.hw], GLProfile[GLES3/GLES3.hw], GLProfile[GL4/GL4.hw], GLProfile[GL3/GL4.hw], GLProfile[GL2GL3/GL4.hw]]`

```

Does this make any sense to someone? Thank you

---

<div class="post-metadata">

### Author: ![siiso](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@siiso](https://discourse.processing.org/u/siiso)
#### Post date: [November 15, 2024, 12:13am UTC](https://discourse.processing.org/t/processing-openni-error/45335/3 "2024-11-15T00:13:31Z")

</div>

Also while debugging on my Nvidia driver I discover they are incorrectly loaded. Could this be related?

---

<div class="post-metadata">

### Author: ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)
#### Post date: [November 15, 2024, 10:20pm UTC](https://discourse.processing.org/t/processing-openni-error/45335/4 "2024-11-15T22:20:28Z")

</div>

> [@siiso](#):
>
> when I run some basic Processing examples from the OpenNI library, I get the following error

Where did you get the OpenNI library; I don’t see that library listed on my system (macos)?

---

<div class="post-metadata">

### Author: ![siiso](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@siiso](https://discourse.processing.org/u/siiso)
#### Post date: [November 15, 2024, 11:16pm UTC](https://discourse.processing.org/t/processing-openni-error/45335/5 "2024-11-15T23:16:28Z")

</div>

I’ve installed through Processing/Sketch/Library/Search Library by typing kinect in the search bar. It has basic examples for movement detection with Kinect v1.

---

<div class="post-metadata">

### Author: ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)
#### Post date: [November 16, 2024, 1:07am UTC](https://discourse.processing.org/t/processing-openni-error/45335/6 "2024-11-16T01:07:10Z")

</div>

I get the same error message as you; in addition this explanation. Unfortunately I don’t know where to get the file that it says is missing:

 ![err](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/8/6/869aa0568736460a3530cd875ffdc0d30982216f.png)

---

<div class="post-metadata">

### Author: ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)
#### Post date: [November 16, 2024, 2:25am UTC](https://discourse.processing.org/t/processing-openni-error/45335/7 "2024-11-16T02:25:12Z")

</div>

That’s a very old library apparently. You can do away with the current error message by installing Processing 2.2.1, but then you’ll have another problem:

 ![err2_2_1](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/b/8/b8da415a5a1ae04246d8da46ebc4774687065d94.png)
