totovr / SimpleOpenNI

SimpleOpenNI library for Processing 3.5.2, 3.4, 3.3.7, 3.3.6 on MacOS for V1 and V2
https://totovr.github.io/SimpleOpenNI/
MIT License
158 stars 47 forks source link

Kinect V2 doesn't initialize on macOS #5

Closed eccoscreen closed 5 years ago

eccoscreen commented 6 years ago

Posting rules

Issue Summary

Hi I've got an issue with initializing Kinect V2 on Processing 3.3.7, it doesn't initialize. Everything is plugged in correctly. The Kinect V1 works just fine. I've also tested the Kinect V2 in another library (Open Kinect for Processing) and it works there fine, but for this I'm not getting any response. Do you know what might be going on? Thanks

Executed Command (if any)

kinect  = new SimpleOpenNI(this);
kinect.enableDepth();

Processing Output (if any)

SimpleOpenNI Version 1.96
After initialization:

SimpleOpenNI Error: Can't open device:      DeviceOpen using default: no devices found

SimpleOpenNI not initialised

Type of Issue

System Configuration

Operating system: macOS High Sierra 10.13.4 Kinect V2 Processing 3.3.7

totovr commented 6 years ago

Hello! Did you install all the dependencies of:

eccoscreen commented 6 years ago

Ah yeah that did it. Looks like something didn't install the first time I went through that process. Thanks

totovr commented 6 years ago

The detail is here:

Installation Process

totovr commented 6 years ago

Can I close the Issue?

dwhit commented 5 years ago

Hey I seem to be having the same issue as @eccoscreen. I followed the install instructions here but I get the error from above.

totovr commented 5 years ago

Did you installed OpenNI2?

dwhit commented 5 years ago

through brew, yes. And I added the environment variables to my .zshrc

dwhit commented 5 years ago

I can run Protonect, and I also downloaded NiTE separately, and can run those samples (eg UserViewer)

dwhit commented 5 years ago

Okay I figured it out. I needed to copy libfreenect2/build/lib/libfreenect2-openni2.0.dylib from the manual install folder into the SimpleOpenNI processing folder. Also set LIBFREENECT2_PIPELINE=cl in my environment.