# Use Kinect 1 or 2 sensors with Processing 2 or 3

**URL:** https://discourse.processing.org/t/use-kinect-1-or-2-sensors-with-processing-2-or-3/86
**Category:** Libraries
**Created:** [May 18, 2018, 7:47am UTC](https://discourse.processing.org/t/use-kinect-1-or-2-sensors-with-processing-2-or-3/86 "2018-05-18T07:47:20Z")
**Posts on this page:** 9
**Page:** 2

<div class="post-metadata">

### Author: ![morisil](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/morisil/32/6166_2.png) [@morisil](https://discourse.processing.org/u/morisil)
#### Post date: [October 30, 2019, 4:42pm UTC](https://discourse.processing.org/t/use-kinect-1-or-2-sensors-with-processing-2-or-3/86/22 "2019-10-30T16:42:56Z")

</div>

I got it working quite well on Ubuntu. You might need to install libfreenect.

---

<div class="post-metadata">

### Author: ![rossig7](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@rossig7](https://discourse.processing.org/u/rossig7)
#### Post date: [October 30, 2019, 7:18pm UTC](https://discourse.processing.org/t/use-kinect-1-or-2-sensors-with-processing-2-or-3/86/23 "2019-10-30T19:18:21Z")

</div>

Actually I did, but it didn’t work though. Which version of Ubuntu are you using?

---

<div class="post-metadata">

### Author: ![rossig7](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@rossig7](https://discourse.processing.org/u/rossig7)
#### Post date: [October 30, 2019, 11:07pm UTC](https://discourse.processing.org/t/use-kinect-1-or-2-sensors-with-processing-2-or-3/86/24 "2019-10-30T23:07:04Z")

</div>

[UPDATE] actually I have libfreenect installed, I use openFrameworrk kinect examples which is based in this library and it works correctly.  
This is the error I get when I run the User example of SimpleOpenNI

```auto
> Can't load SimpleOpenNI library (libSimpleOpenNI64.so) : java.lang.UnsatisfiedLinkError: /home/rossig/sketchbook/libraries/SimpleOpenNI/library/libSimpleOpenNI64.so: libboost_system.so.1.54.0: it can't open the file of the shared object. The file or directory doesn' t exist.
> Verify if you installed SimpleOpenNI correctly.
> http://code.google.com/p/simple-openni/wiki/Installation

```

I created a soft link to thiis one by doing  
sudo ln -s /usr/lib/x86\_64-linux-gnu/libboost\_system.so.1.67.0 libboost\_system.so.1.54.0

It didn’ t work either.

---

<div class="post-metadata">

### Author: ![morisil](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/morisil/32/6166_2.png) [@morisil](https://discourse.processing.org/u/morisil)
#### Post date: [November 3, 2019, 10:19am UTC](https://discourse.processing.org/t/use-kinect-1-or-2-sensors-with-processing-2-or-3/86/25 "2019-11-03T10:19:31Z")

</div>

I made this project some time ago and forgot, but apparently I was struggling with the same problem. In my `~/sketchbook/libraries` the `SimpleOpenNI` is a symbolic link pointing to git `SimpleOpenNI` repository clone. Apparently I was assuming that I can build it. But I believe that all the binaries are actually distributed in this repo.

```auto
$ git status
On branch master
Your branch is up to date with 'origin/master'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)

	SimpleOpenNI/SimpleOpenNI/library/linux64/OpenNI2/Drivers/PS1080.ini
	SimpleOpenNI/SimpleOpenNI/library/linux64/OpenNI2/Drivers/PSLink.ini
	SimpleOpenNI/SimpleOpenNI/library/linux64/libOpenNI2.jni.so
	SimpleOpenNI/SimpleOpenNI/library/linux64/libboost_system.so.1.54.0
	SimpleOpenNI/SimpleOpenNI/library/linux64/libboost_system.so.1.65.1
	SimpleOpenNI/SimpleOpenNI/library/linux64/org.openni.jar

nothing added to commit but untracked files present (use "git add" to track)

```

So some files differ, but I cannot tell how I obtained them. I can send you the copy of my repo. And then maybe you can post an update what was actually needed to fix it?

---

<div class="post-metadata">

### Author: ![morisil](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/morisil/32/6166_2.png) [@morisil](https://discourse.processing.org/u/morisil)
#### Post date: [November 3, 2019, 10:39am UTC](https://discourse.processing.org/t/use-kinect-1-or-2-sensors-with-processing-2-or-3/86/26 "2019-11-03T10:39:58Z")

</div>

Here it is:

> **[SimpleOpenNI.tar.gz](https://wetransfer.com/downloads/46591ba7eb971d4f76645f04c1e9f39320191103102233/88e08f)**
>
> 1 file sent via WeTransfer, the simplest way to send your files around the world

---

<div class="post-metadata">

### Author: ![rossig7](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@rossig7](https://discourse.processing.org/u/rossig7)
#### Post date: [November 13, 2019, 10:35pm UTC](https://discourse.processing.org/t/use-kinect-1-or-2-sensors-with-processing-2-or-3/86/27 "2019-11-13T22:35:24Z")

</div>

Thanks @morisil, sorry for my late response, I’ve been working on other project. I will put my hands on it, we’ll se what happens.

It seems the link time has expired.

Best!

---

<div class="post-metadata">

### Author: ![rossig7](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@rossig7](https://discourse.processing.org/u/rossig7)
#### Post date: [November 14, 2019, 10:45pm UTC](https://discourse.processing.org/t/use-kinect-1-or-2-sensors-with-processing-2-or-3/86/28 "2019-11-14T22:45:04Z")

</div>

Finally I got it working on Ubuntu 19.04. My mistake was the place where I created the softlink, I created it under the plugin library folder besides the one I created under /usr/lib/x86\_64-linux-gnu/.  
So the steps were the following:

1. reinstalled the pluging to get the correct library and to get a fresh plugin folder.
2. I left the one I created under /usr/lib/x86\_64-linux-gnu/ (`sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_system.so.1.50.0 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.54.0 `)  
@morisil post gave me the hint.  
Thanks!

---

<div class="post-metadata">

### Author: ![morisil](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/morisil/32/6166_2.png) [@morisil](https://discourse.processing.org/u/morisil)
#### Post date: [November 15, 2019, 9:45am UTC](https://discourse.processing.org/t/use-kinect-1-or-2-sensors-with-processing-2-or-3/86/29 "2019-11-15T09:45:47Z")

</div>

@rossig7 I’m glad that it finally worked.

---

<div class="post-metadata">

### Author: ![LeeYOYO](https://avatars.discourse-cdn.com/v4/letter/l/6f9a4e/32.png) [@LeeYOYO](https://discourse.processing.org/u/LeeYOYO)
#### Post date: [December 1, 2020, 12:37pm UTC](https://discourse.processing.org/t/use-kinect-1-or-2-sensors-with-processing-2-or-3/86/30 "2020-12-01T12:37:57Z")

</div>

Hi!  
I used Kinect 2 with processing 3.5.3 and download library(SimpleOpenNI-processing 3.5.3) but it’s fail  
this is photo of error. How can I solve it?  
thanks!

 ![processingProblem](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/2/246ea1b456d358f7dc6bb17a0b8ebf1e0efd312d.png)

[Previous page](https://discourse.processing.org/t/use-kinect-1-or-2-sensors-with-processing-2-or-3/86.md?page=1)
