Tutorial to Setup Microsoft Kinect in Mac OS X 10.9 Mavericks

How to setup Microsoft Kinect on Mac OS X 10.9 (Mavericks)

If you want to get the Microsoft Kinect setup and working on your Mac using OS X 10.9 Mavericks, then you’ve come to the right place. Since posting the first tutorial, a number of new software updates have been released, so it’s a good idea to recap from the start. This tutorial will detail all the steps necessary to get the Kinect working in Mavericks, so buckle up and let’s get this party started.

As always, if you have any questions, issues, or feedback, please feel free to post them in the comments section at the bottom, and to keep abreast of any new updates and posts you can follow me on Twitter, or subscribe using the new email form in the sidebar.  Oh, and if you don’t own a Kinect yet, there’s a few things you’ll need to know, so please check out the buyers guide or.

Preface: Uninstall Existing Kinect Drivers

If you followed my earlier tutorial and/or had your Kinect running in Mac OS X 10.8 Mountain Lion, then you’ll want to complete this step before moving ahead. If you’re new, and are setting up the Kinect in Mac OS X 10.9 Mavericks from scratch then please feel free to skip this and move straight onto Step 1.

When it comes to hacking the Kinect, cleaner is better. So I suggest uninstalling any existing Kinect drivers you might have installed and start fresh. If you’re confident simply upgrading then please feel free to do so, but for everyone else please begin by following the instructions in this article – How to uninstall Kinect drivers on your Mac.

Step 1: Install and upgrade Xcode

If you’re a regular visitor to this site or a developer, you may already have Xcode installed. If so, just make sure you upgrade your Command Line Tools to the latest version for Mavericks.  For everyone else, please follow the tasks below.

1. Install Xcode from the Mac App Store (as of writing, the latest version is 5.0.2). Once installed, open the application and select the menu option Xcode / Open Developer Tool / More Developer Tools…

Xcode 5 Developer Tools2. Clicking this will take you to the Apple Developer website. Simply login using your Apple ID and password and continue until you see the Downloads for Apple Developers screen.

3. In the list of downloads, search for the most recent version of Command Line Tools (OS X Mavericks) for Xcode (as of writing, this is the release from October 23, 2013). Click on the blue disk image link to the right of the description to download.

Install OS X Mavericks Command Line Tools for Xcode4. Once you’ve downloaded the Command Line Tools, simply open the disk image and install the package.

Easy! So now you’re up to date with Xcode, let’s move on to installing the Kinect drivers.

Step 2: Install Additions

Next up is a list of applications/tools that you’ll need to install. The versions mentioned below are the latest at the time of writing, but if there is a more recent version, you should be fine installing that too.

1. Download XQuartz, an open source version of the X.org X Window System for Mac.
I’m using version 2.7.5.

2. Download CMake, a cross-platform build automation system.
Select the download link beside  Mac OSX 64/32-bit Universal (for Intel, Snow Leopard/10.6 or later), I’m using version 2.8.12.2.

Part way through the CMake installation you’ll be asked to Install Command Line Tools, make sure you do this by clicking the Install Command Line Links button.  If you get an error at this point, you’ll need to follow all the uninstallation instructions and then reinstall.

3. Download MacPorts, which allows you to compile, install and upgrade software via Terminal app.
Select the download titled OS X 10.9 Mavericks, I’m using version 2.2.1.

Step 3: Install Dependencies

At this point you’ve installed your primary applications, so now we just need to install a couple of dependencies for later on. Don’t worry, they’re easy!

Libtool: A generic library support tool.

1. To install Libtool, open the Terminal application: Applications / Utilities / Terminal.

2. Next, type in the following:

3. Press Return, and then enter your password when prompted. If all went well, you should see something similar to the following appear in Terminal:

Libusb: A usb support tool for applications.

Okay, so don’t close Terminal just yet. You’ll need it for this installation too.

1. In Terminal, type in the following:

2. Click Return and then enter your password when prompted.  If everything installed correctly, you should see something similar to this:

Step 4: Install OpenNi SDK (v1.5.7.10)

Okay, now we’re moving into Kinect territory. OpenNi is the first Kinect-specific software you’ll be installing, so make sure you follow along closely.

Please Note: Do not try to download and install OpenNi v2 beta. Unfortunately this version relies on the native Microsoft Kinect SDK, which is incompatible with the Mac.

OpenNi is created by a group of companies including PrimeSense (now owned by Apple), who developed the original Microsoft Kinect. The OpenNi software itself contains a stack of middleware libraries and applications that will help get you going on your Kinect journey!

1. Create a new folder on your Mac called ‘Kinect’. This will help keep things organised (I’ll be referring to this folder later on).

2. Download OpenNI v1.5.7.10 SDK for Mac OS X.

3. Move the file you just downloaded to your Kinect folder and double click to uncompress and reveal the SDK folder.

OpenNI 1.5.7.10Okay, now you’re now ready to install the OpenNi SDK on your Mac.

4. Open the Terminal application on your Mac: Applications / Utilities / Terminal.

5. We will now navigate to the OpenNi SDK folder using the command. Start by typing in cd, add a space, and finally drag your SDK folder from the Finder onto the Terminal window and press Return. This will automatically enter the file path for you, and look something like this:

6. And now the fun part! Type in the following, press Return and then enter your password to install OpenNi SDK:

If everything installed correctly, then you’ll see the following text:

Step 5a: Prepare to Install SensorKinect

We need to quickly complete this step to prevent errors during the SensorKinect installation.

1. Open Terminal on your Mac: Applications / Utilities / Terminal.

2. Next type in the following and press Return:

Step 5b: Install SensorKinect

SensorKinect is simply a module that helps the Kinect interact with OpenNI.  You’ll need it for your Kinect to work on your Mac.

1. Visit the SensorKinect project on GitHub and click the Download ZIP button that looks like this:

GitHub Download Zip Button

2. Once downloaded, move the SensorKinect-unstable.zip file to your Kinect folder and double-click to uncompress it.

SensorKinect Mac

3. Navigate to the SensorKinect093-Bin-MacOSX-v5.1.2.1.tar.bz2 file inside the Bin folder, and double-click to uncompress it.

SensorKinect Installer for Mac

4. Now you’re ready to install. Open Terminal on your Mac: Applications / Utilities / Terminal.

5. In Terminal, type  cd, then a space, then drag the Sensor-Bin-MacOSX-v5.1.2.1 folder into the Terminal window, and finally hit Return to navigate to that directory. You’ll end up with something like this:

6. And then to install, type the following in Terminal, hit Return, and then enter your password when prompted:

And if everything worked, you’ll see the following:

Step 6: Install NiTE

It’s all downhill from here, as this is the last thing you’ll be installing.  NiTE is some awesome middleware that’s made by the same crew behind OpenNI.  It monitors depth, colour, infrared and audio to track your body and hands for use as input devices.

Please make sure you don’t try to install NiTE v2. Just like OpenNI 2, it just doesn’t work thanks to its reliance on the Windows SDK.

1. Download NiTE v1.5.2.21 for Mac OS X.

2 Once downloaded, move the NITE-Bin-MacOSX-v1.5.2.21.tar.zip file to your Kinect folder and double-click to uncompress it.

NiTE 1.5.2.23

3. And just like before, open Terminal and type in cd, followed by a space, and then drag the NITE-Bin-Dev-MacOSX-v1.5.2.21 folder into the Terminal window. Hit Return to navigate to that directory, and you should see something like this:

5. After this, we can install NiTE by typing in the following, and then hitting Return:

Don’t worry if you get some ‘No such file or directory’ errors, they don’t really matter. A successful install will look something like this:

 Step 7: Transfer and Test Sample Files

You’ve made it to the final step! All we need to do now is transfer over some files and we can test out our installation.

1.  Copy the sample xml files from NiTE / Data over to your SensorKinect / Data folder like so (hold the Option key while dragging to copy files in Mac OS X):

Copy NiTE Kinect Samples on Mac OS X2. In a new finder window, locate your x64-Release folder by following this path: NiTE / Samples / Bin / x64-Release.

3. Open your Terminal app again: Applications / Utilities / Terminal.

4. In Terminal, type cd, followed by a space, and then drag the x64-Release folder onto the Terminal window to fill in the path and press Return.  You should see something like this:

5. And now finally, to run your first demo, type the following into your Terminal window and press Return:

If everything is setup correctly, PointViewer should open in a new screen. This is a tracking demo, so stand back, wave your hand around in the air, and pretty soon you should notice a white tracking line appear (see the video below).

6. You can also test out the other demos too, like the Players demo. This  will identify your body shape and colour you blue, add another person to the mix and they will be coloured green. To test it out, simply close the previous demo and type the following into Terminal and hit Return:

Kinect Sample Players Demo

The ‘Players’ demo will identify you as Player 1.

7. Want to try something cooler? Check out my other tutorial on creating special effects with Synapse Kinect and Quartz Composer.

And now you should be good to go! I know a lot of you were waiting for this tutorial, so thank you for your patience and I hope it was helpful. I’ll be following this up with a few more in-depth tutorials and inspiration posts soon – to be notified when they’re published, simply sign up using the email form in the sidebar (don’t worry, no spam!), or follow me on Twitter.  I’d also love to know how you went setting up the Kinect, so feel free to comment below with any questions, success stories or issues!  Take care and have fun kinecting!

269 Comments

Submit a Comment
  • Reply

    Benga

    Hello Glen,

    Thank you for this so detailed tutorial. I followed all your instructions, I launched the “point viewer” without any error or crash, but unfortunately nothing is displayed… everything is still black :(
    If you have any helpful idea… don’t hesitate.

    Thank you.
    Benga

    • Reply

      Glen McPherson

      Hi Benga, thanks for following the tutorial. Can you confirm what version Kinect you’re using (the model number is located underneath the Kinect), and also check that the Kinect is correctly attached via usb to your Mac (directly), and that the AC adapter is connected to your wall power outlet? This is just some troubleshooting to help isolate the issue.

      • Reply

        Benga

        Hello Glen thanks for your fast reply,

        The Model number is :1414

        Yes everything is well connected. USB to MAC, AC Adapter to the wall :)

        If I try to start Synapse, sometimes it crashes, sometimes it starts, but when it starts, I can only see a kind of colored static noise in the viewport.

      • Reply

        Benga

        I disconnected Kinect, I rebooted the Mac, I connected the Kinect again, The Kinect green light is blinking, I started Synapse and now I have the debug display “Depth display mode: Tracked user only” but the viewport is black…

        If I try to launch the “pointViewer” sample from NITE, I have a black screen too with “Preform click or wave to track hand” an this on the Terminal:

        pc31:x64-Release benga$ ./Sample-PointViewer
        403 INFO New log started on 2014-02-27 08:56:35
        417 INFO OpenNI version is 1.5.7 (Build 10)-MacOSX (Nov 12 2013 13:39:54)
        420 INFO — Filter Info — Minimum Severity: UNKNOWN

        • Reply

          Shaquille

          Hey Benga, I had the exact same problem (with synapse and the pointViewer) and was trying to debug it for hours (while on skype with my girlfriend)
          That was exactly the problem, the facetime built in webcam being on for some reason interferes with synapse & the kinect and makes it really buggy (works only SOMETIMES). I turned off the webcam and everything suddenly works perfectly.

          Cheers

        • Reply

          Rafael

          any solution?
          :(

  • Reply

    Carolina

    Hey I’m still getting
    604 INFO New log started on 2014-02-26 19:22:17
    629 INFO OpenNI version is 1.5.7 (Build 10)-MacOSX (Nov 12 2013 13:39:54)
    634 INFO — Filter Info — Minimum Severity: UNKNOWN
    One or more of the following nodes could not be enumerated:

    Device: PrimeSense/SensorKinect/5.1.2.1: The device is not connected!

    and the green light keep blinking

    • Reply

      Carolina

      And when doing sudo ln -s /usr/local/bin/niReg /usr/bin/niReg I’m getting
      ln: /usr/bin/niReg: File exists

      • Reply

        Carolina

        And for NITE the output is different:

        Installing NITE
        ***************

        Copying shared libraries… OK
        Copying includes… OK
        Installing java bindings… OK
        Installing module ‘Features_1_3_0’…
        ls: Features_1_3_0/Bin/lib*dylib: No such file or directory
        Installing module ‘Features_1_3_1’…
        ls: Features_1_3_1/Bin/lib*dylib: No such file or directory
        Installing module ‘Features_1_4_1’…
        ls: Features_1_4_1/Bin/lib*dylib: No such file or directory
        Installing module ‘Features_1_4_2’…
        ls: Features_1_4_2/Bin/lib*dylib: No such file or directory
        Installing module ‘Features_1_5_2’…
        Registering module ‘libXnVFeatures_1_5_2.dylib’… OK
        Copying XnVSceneServer… OK
        Installing module ‘Features_1_5_2′
        ls: Hands_1_3_0/Bin/lib*dylib: No such file or directory
        Installing module ‘Features_1_5_2′
        ls: Hands_1_3_1/Bin/lib*dylib: No such file or directory
        Installing module ‘Features_1_5_2′
        ls: Hands_1_4_1/Bin/lib*dylib: No such file or directory
        Installing module ‘Features_1_5_2′
        ls: Hands_1_4_2/Bin/lib*dylib: No such file or directory
        Installing module ‘Features_1_5_2′
        registering module ‘libXnVHandGenerator_1_5_2.dylib’…OK
        Adding license.. OK

        *** DONE ***

        PS: Sorry the spam, I’m just getting a little bit frustrated with Mavericks :(

      • Reply

        Glen McPherson

        Hi Carolina, that ‘niReg’ message is perfectly fine. It actually means everything is setup correctly.

        • Reply

          Carolina

          Thanks Glen, but the thing is that I connect the kinect and the green light keeps blinking all the time, and I tried to run ./Sample-PointViewer and all I get is

          504 INFO New log started on 2014-02-26 19:52:17
          523 INFO OpenNI version is 1.5.7 (Build 10)-MacOSX (Nov 12 2013 13:39:54)
          526 INFO — Filter Info — Minimum Severity: UNKNOWN
          One or more of the following nodes could not be enumerated:

          Device: PrimeSense/SensorKinect/5.1.2.1: The device is not connected!

    • Reply

      Glen McPherson

      Hi Carolina, I’ve actually had another reader with the exact same problem. See this thread on the Mountain Lion setup article. I’m just taking a guess (because he didn’t report back), but after you’ve completed the tutorial, try unplugging your Kinect, restarting your mac and then plug it back in, making sure the Kinect is correctly attached and powered. Let me know how you go!

      Also, some good news – that the blinking green light is normal, and will happen when the Kinect is attached to your Mac via USB.

      • Reply

        Carolina

        Ok thanks I’ll try! And sorry to bother you this much :(

      • Reply

        Carolina

        Glen I restarted my Mac and tried again, but it didn’t work. I saw this http://blog.nelga.com/setup-microsoft-kinect-on-mac-os-x-10-8-mountain-lion/#comment-4618 and I only see XBox NUI Motor’ too

        • Reply

          Glen McPherson

          Sorry, I should have asked this right from the start… but are you using the Model #1414 Kinect? (you can flip the Kinect upside down to check the model number)

          Also, you might want to check the AC adapter you’re using. Possibly try plugging it into a different wall outlet. (referencing this article)

          • Carolina

            Yes that’s the one, 1414 and the adapter is this one http://tinyurl.com/lnzunaf

          • Carolina

            Hey Glen, thank you so much for everything, the examples are running now and everything is working fine! Seems that the problem was the adapter, I got another one and the problem got solved. Thanks!

          • Glen McPherson

            Excellent news Carolina! So glad you got it working, and relieved there was nothing wrong with the tutorial! Ha, you had me worried.

            Btw for anyone else reading: I triple check (completely uninstalling and then reinstalling) these tutorials on 2 different computers and 2 different Kinects before publishing to try and minimise any issues that might arise.

          • adam

            Hi! Thank you so much for the tutorial! Everything worked swimmingly until the very end.

            Similar to Carolina I had the same error. But after trying again, now I get this:

            ADAM:x64-Release adam$ ./Sample-PointViewer
            1857 INFO New log started on 2015-03-20 22:48:32
            1916 INFO OpenNI version is 1.5.7 (Build 10)-MacOSX (Nov 12 2013 13:39:54)
            1925 INFO — Filter Info — Minimum Severity: UNKNOWN
            One or more of the following nodes could not be enumerated:

            ADAM:x64-Release adam$

            I’m using Kinect 1473, not 1414. I don’t know if that’s causing it. Will dig around some more, and report back.

        • Reply

          Bea

          Hi Carolina,
          I’m having the same error as you had.
          Could you tell me which adapter did you buy/change it to?
          Thanks, I will really appreciated.

          -Bea

  • Reply

    Giorgio

    Hi Glen. Great tutorial. I gave it a try and it worked at the first attempt.
    Thanks a lot.

  • Reply

    Florian

    Hi Glen!

    I just followed your tutorial and it’s working but I have a small problem: the kinect stops after 10/20 seconds every time… I just flipped the kinect to see what version I have and it’s a 1517. Do you know a quick tip to make it works with this version? (I’m on Mavericks too).

    Thanks!

    • Reply

      Florian

      Oups I just saw your message in the comments here: http://blog.nelga.com/setup-microsoft-kinect-on-mac-os-x-10-8-mountain-lion/

      Is the problem fixed or not? If not, do you think I can send the video result form a virtual machine to my mac (with syphon maybe)?

    • Reply

      Glen McPherson

      Hi Florian, Unfortunately model #1517 is the “Kinect for Windows” version of the Kinect. I haven’t yet heard of anyone successfully making this work on the Mac yet, and I’m not sure I would hold my breath waiting… Do you think you can get a model #1414 to test out your setup? This guide might help you source one: http://blog.nelga.com/buyers-guide-for-creative-technology/

      • Reply

        Yongduek

        1. I just did what you said above (except for uninstalling because I had no idea on what I had done).
        2. Then, checked the model number of mine, which was #1517.
        3. Simply ran ./Sample-PointViewer
        4. It worked.

        Frankly, I don’t know what is happening in my Mac, but it works anyway.
        Many thanks.

      • Reply

        Ignacio

        Hi! I’ve just installed the latest version of everything (as of 14th of July of 2015) and I have the same problem as FLORIAN, I have a 1517 and after 10 second anything I run stops … I don’t think that this has been solved but, if you know of some changes to make in order to make the Kinect for Windows work, I’d be happy to try them out :)

        Thanks!

  • Reply

    Ege

    First of all, thank you very much for the detailed tutorials, they were very helpful to me. I followed your tutorial and it seemed to work fine but after couple of seconds, I’d get ‘corrupted memory’ or something errors. Then I found out that using libfreenect as the driver solves that problem so I did that. But then the Kinect data streams stopped after 1-2 minutes (e.g. the hand tracker sample would work great for 1-2 minutes and stop tracking while the app is still running – i.e. no crash, it just stopped printing data)

    So I thought I’d give OpenNI2 + NiTE2 + libfreenect (with OpenNI2 flag enabled during build) a try and it seems to work with stability. I am currently experiencing issues with recognising wave and click but apart from that, it doesn’t seem to have the problems I had before. For OpenNI2 and NiTE2, the installation is straightforward (and not different than your tutorial above). For libfreenect, the installation instructions can be found at https://github.com/OpenKinect/libfreenect/tree/master/OpenNI2-FreenectDriver And for getting up and running in Mac + Xcode, I used this tutorial http://alvarosarasua.wordpress.com/2013/11/18/setting-up-a-nite2-sample-in-xcode-5

    Thanks
    Ege

    • Reply

      Glen McPherson

      Awesome comment Ege. I’m going to try and test this out too, and if I can replicate, then I’ll make sure to point your comment out at the start of the tutorial. Can I just ask what model Kinect you’re running?

      • Reply

        Ege

        Sure, it’s model 1473 (that came with XBox 360)

        • Reply

          Glen McPherson

          Awesome, so you’ve actually got the later model Kinect which people were sometimes having issues with. That info will come in handy to a bunch of people I’m sure.

        • Reply

          Exomene

          Hi Ege,

          I’m trying to follow the instructions your linking to but my english is so poor I’m not sure I’m doing it right. For example, installation step 3 doesn’t make any sense to me because the directories don’t exist in the archives I uncompressed.
          I would be very grateful if you made a step by step tutorial for Kinect #1473 or if you could link to one. Would it be possible?

          Best regards,

          Exomene

        • Reply

          Luis

          I also got a #1473, mate… and it worked!!! A bit unstable though…
          If I hear any new hacks to improve it I’ll let you know here.
          Please do the same! (I’m on my knees as I say)
          Super thanks to both you geniuses!
          Regards from Rio.

    • Reply

      Paulo

      Hi,
      Could you give more examples about how to set up it
      Im running kinect 1743 mac Yosemite its has been very hard! ·(
      Thanks

  • Reply

    Oskar Cresso

    Thank you so much!

    Been stuck for hours with the 2.x versions of NiTE and OpenNi.
    I also had my Kinect 1414 connected to a USB hub which seemed to cause some trouble.
    Got the same black screen that were mentioned in the previous comments.

    Now it works and I can begin making magic.. hopefully.

    Thank you again and keep up with nice tutorials.

    /Oskar

  • Reply

    HArold

    Hello, I follow the installation but I get stop at 5B.6 It doesn’t show up the next message in my terminal. I got the Kinect model 1473, is it a problem. Thanks a lot for your help.

  • Reply

    taavet

    you are the man!

  • Reply

    Alejandro

    Worked perfectly, Thanks!

  • Reply

    Jeremy Schulz

    Great write-up. Everything worked the first time through. Thanks!

  • Reply

    Mike Kormendy

    Just wondering if I can use Homebrew instead of MacPorts in this tutorial?

    • Reply

      Mike Kormendy

      Furthermore, I’m wondering about a bunch of things … Can we use this to track hand gestures to control the mouse, perform clicks/swipes/drags and further interact with the operating system?

      I have a class for school that has a show coming up with all of the class’s student works displayed on a 60″ flatscreen. I was tasked to see if I could find some way that visitors could interact with a simple website (in full-screen mode) navigating it by simply standing there and using their hands to gesture-click buttons and swipe the screens to pan through the different projects, etc. Does this have the robustness for clicking and mouse pointing at least?

      • Reply

        Glen McPherson

        Hey again Mike,

        This sounds pretty cool, and definitely doable. There’s a video in an earlier inspiration post that touches on what you mention. Gestural control and interaction.

        They’re presumably using the Processing suite to make it all work. I plan on writing a full tutorial soon (I’m currently crazy busy organising my wedding). I believe you can also get mouse motion control up and running with the TUIO drivers for Kinect and Quartz too.

        Hope that helps point you in the general direction you need to be heading. If you manage to get it up and running, it’d be great to hear how you went.

    • Reply

      Glen McPherson

      Hi Mike,

      I believe you can, however I’ve not tested this method. If you give it a shot, can you message back and tell me how you went?

  • Reply

    Shannon

    So I started your wonderful tutorial, then when I got down to download the Openni SDK the website is down. It looks like Apple shut it down if I am not mistaken. Is there another place to download the file?
    Thank you so much for all the help, and good luck with your wedding.

  • Reply

    Karolina

    Hi Glen,

    Thanks for the great tutorial!
    I’m stuck at Sensor Kinect installation – this is what I get:

    MacBook-Pro:~ myusername$ sudo ln -s /usr/local/bin/niReg /usr/bin/niReg
    ln: /usr/bin/niReg: File exists

    and then:
    Installing PrimeSense Sensor
    ****************************

    creating config dir /usr/etc/primesense…OK
    copying shared libraries…OK
    copying executables…OK
    registering module ‘libXnDeviceSensorV2KM.dylib’ with OpenNI…./install.sh: line 111: /usr/bin/niReg: Operation not permitted

    Do you have any idea what’s causing the problem and how could I fix it?
    Thanks in advance!!!!

    • Reply

      Kyt

      comment install.sh line 96 after the first run

      and then

      sudo xattr -d com.apple.quarantine /usr/bin/niReg
      sudo xattr -d com.apple.quarantine /usr/bin/niLicense

  • Reply

    Ege

    Hi Glen,

    You might want to add links to download for NiTE2 and OpenNI2 which I’ve uploaded to here

    https://drive.google.com/folderview?id=0BweCBG5-K9EYaWlWMEJQbmdBMHM&usp=sharing

    Cheers,
    Ege

  • Reply

    Aditya Eka

    So Helpful. Just manage the XBox 360 Kinect working on Mountain Lion. Great Guide. Thanks a lot.

  • Reply

    Robert Andre

    Hi Glenn

    Got up to the installation, then got this back:

    sudo: unable to execute ./install.sh: Operation not permitted

    Any ways around this.

    Thanks,

    Rob

  • Reply

    Leelemon

    Hi Glen
    I already follow your instruction but i can’t run ./Sample-PointViewer
    I don’t know it’s about language of shell script or not
    when i install.sh i can’t use “Sudo ./install.sh” but i use
    sh .install.sh (it’s seem like working for install)

    The problem is I can’t run ./Sample-PointViewer T.T
    Any idea T>T
    Thx

  • Reply

    Leelemon

    And another question is
    What is difference between I code in Microsoft Kinect(Xcode) or Processing

    Im too new in Kinect T.T
    Thx leelemon

    • Reply

      Glen McPherson

      Hi hi! Processing is a great language that’s awesome for artists and creative types. I’m planning a few Processing tutorials soon – sign up to the newsletter if you’d like to know when they’re launched! You don’t (really) use Xcode for Kinect programming – you’re better off using Quartz Composer to make things happen. It’s great for newbies too as it has a very visual interface.

  • Reply

    Slaymantis

    Hello

    Did this installation install the 64 bit versions?
    Do you have instructions for the 32 bit versions please?
    I am trying to get this to work on OSX with unity3d but it requires 32 bit versions
    thanks

    • Reply

      Glen McPherson

      Hi Slaymantis, I didn’t actually consider this when writing the tutorial. I’ll try to take a look into it when I get a chance. If any other commenters have any ideas it’d be great to hear!

      • Reply

        Catte

        Same problem here, on Yosemite the library works perfectly, but the “Kinect with OpenNI 1.5″ unity3d asset that I’m trying to use has some troubles and it seems to need a 32bit version as stated asset page (https://www.assetstore.unity3d.com/en/#!/content/7225).
        How can 32bit-OpenNI be installed?

  • Reply

    mezoo

    Super Tuto !
    Merci

  • Reply

    Martin

    On major Step 4 I’ve uncompressed the SDK file and followed steps to complete the install but Terminal keeps spitting out this:

    Martin-*LASTNAME*-iMac:~ *USERFOLDER*$ cd /Users/*USERFOLDER*/Desktop/Kinect/OpenNI-Bin-Dev-MacOSX-v1.5.7.10
    Martin-*LASTNAME*-iMac:OpenNI-Bin-Dev-MacOSX-v1.5.7.10 *USERFOLDER* sudo ./install.sh
    sudo: unable to execute ./install.sh: Operation not permitted
    Martin-*LASTNAME*-iMac:OpenNI-Bin-Dev-MacOSX-v1.5.7.10 *USERFOLDER*$

    Advice?

    Items between *_* have been changed for purposes of this comment.

  • Reply

    Wango

    Hey Glen!

    Will the OpenNI 2.2.0.33 Beta from http://structure.io/openni works with the MAC?

  • Reply

    Han

    Just wanted to say really thank you for your efforts in every detail because I know how hard to make this kind of instructions for others. My Kinect successfully connected to my MBP without any errors. :)

  • Reply

    Niklas

    Hi Glen, thanks for the detailed tutorial.

    Unfortunately I keep getting stuck at installing the OpenNi SDK. When I try
    sudo ./install.sh
    and then type in my password, I get the error message:

    sudo: unable to execute ./install.sh: Operation not permitted

    Any ideas why this might be?

    (I don’t know anything about command-line code, but googled this error message and tried something like this:
    xattr -d com.apple.quarantine install.sh
    but that just gives another error:
    xattr: [Errno 13] Permission denied: ‘install.sh’)

    I’d very much appreciate any help!
    Best,

    Nik

  • Reply

    Omar

    I have several questions:
    1- Whats the difference between OpenNI / Nite and OpenNI2 / Nite2 ?? shouldnt we be using the latest versions ?
    2- Whats going on, I see no further news from OpenNI community.. everything is at least a year old.
    3- Isnt this https://github.com/totakke/homebrew-openni2 an easier way to install Kinect drivers, it even supports OpenNI2 !!

    • Reply

      Glen McPherson

      Hi Omar,

      There were some compatibility issues using v2 for a while. This was due to the fact that they were reliant on the Windows SDK. There are a few ways to get the Kinect interfacing on your mac, it just depends what you’d like to do with it. The tutorial above is definitely solid and tested. I’ll be experimenting with some of the other methods in the future too to test their limitations in comparison (stay tuned!). Also, this is the method I’ll be referencing/promoting for future tutorials (that allow you to create special effects and more).

      TL;DR – There are a few ways to get things going, but this is the one I think is the most solid and extensible atm.

  • Reply

    Leo

    Hi, I am getting this message during the step 5. Thanks:
    unable to execute ./install.sh: Operation not permitted

  • Reply

    Silas

    Awsome tutorial. Seldom You find such hight quality, thorough and well documented tutorials. Good User experience :-) Thumbs up!

  • Reply

    Andres

    Hi glen, thanks for this great tutorial. I followed your instructions and at the end this happened:
    edwins-imac:x64-Release Edwin$ ./Sample-PointViewer
    InitFromXmlFile failed: File not found!

    I don´t know what thae problem seems to be. If you could help me it would be great.

    PS: I trying to install the kinect so that I could use it on Processing, so far when I run a code that uses the kinect, it says to me “no devices found”.

    • Reply

      MD

      Hallo , Andres
      I got the same problem .like ” InitFromXmlFile failed: File not found!”
      I was so exciting but finally Error :(
      Did you find a solution ?
      Would it be nice if you can share the solution . I am stuck same position now.
      Cheers
      MD

      • Reply

        Wu Wanqiao

        Have you try to copy instead of move those three xml documents from NITE Data to SensorKinect Data? Because that is how I solve my problem.

  • Reply

    Joan Saeta

    Hi Glen

    good tutorial, but I have a problem when installing the OpenNI library
    I get the following message:

    sudo: unable to execute. / install.sh: Operation not permitted
    MacBook-MacBook-Pro-de-Joan: OpenNI-Bin-MacOSX-v1.5.7.10-Dev joansaeta $

    Can you help me?
    I installed 5.1 Xcore
    command_line_tools_for_osx_mavericks_april_2014

    Thanks

    • Reply

      Glen McPherson

      Hi Joan,
      Sorry for the late reply – can you tell me what version of OS X you are using, and also, have you previously installed any drivers for the Kinect?

  • Reply

    Orlando

    Hi Glen,
    Im having some problems with step 4, when I drag the SDK folder from the Finder and happens the same as the video, but step 6 say: “And now the fun part! Type in the following, press Return and then enter your password to install OpenNi SDK: sudo ./install.sh”. I press Return and it doesnt ask for any password, so y just write “sudo ./install.sh” and it just say: “sudo: unable to execute ./install.sh: Operation not permitted”. Can you help me please?

  • Reply

    Rob

    Hi Glen,

    Really well written tutorial! Thank you for writing this up!

    I’ve gotten as far as Step 6, installing OpenNI, but Terminal keeps responding to “sudo ./install.sh” with “Operation not permitted”.

    Tried searching for an answer, but no joy. Directory is here…
    Sol$ cd /Users/Sol/Kinect/OpenNI-Bin-Dev-MacOSX-v1.5.7.10

    Any help welcomed. Thanks!
    Rob

  • Reply

    Jeff

    Thanks a lot for this tutorial!

    Got it working the first time without any issues.

    All the best,
    Jeff

  • Reply

    Rodolfo

    Hi Glen,

    Your tutorial is great, i am having troubles with step 4: when i run

    sudo ./install.sh

    i get the following message:

    sudo: unable to execute ./install.sh: Operation not permitted

    I’ve googled it but i can’t find why is it happening, hope you can help me with this, thanks in advance.

    • Reply

      Rodolfo

      Hi Glen,

      I found the answer:

      I ran

      sudo sh ./install.sh

      instead of

      sudo ./install.sh

      Now im having trouble with the last step, when i run

      ./Sample-PointViewer

      i get

      -bash: ./Sample-PointViewer: Operation not permitted

      i really hope you can help me with this, thank you for such great tutorial.

      • Reply

        DARREN

        Hi Rodolfo,
        i have the same question like you,
        have u solved this problem?
        at the last step
        i always get
        -bash: ./Sample-PointViewer: Operation not permitted
        can you help me?
        Thanks in advance!!

  • Reply

    Ilya

    Hi Glen,

    I getting this
    MacBook-Pro-Shwabe:x64-Release Shwabe$ ./Sample-players
    457 INFO New log started on 2014-06-13 19:09:52
    470 INFO OpenNI version is 1.5.7 (Build 10)-MacOSX (Nov 12 2013 13:39:54)
    473 INFO — Filter Info — Minimum Severity: UNKNOWN
    One or more of the following nodes could not be enumerated:

    and

    MacBook-Pro-Shwabe:~ Shwabe$ cd /Kinect/NITE-Bin-Dev-MacOSX-v1.5.2.21/Samples/Bin/x64-Release
    MacBook-Pro-Shwabe:x64-Release Shwabe$ /Kinect/NITE-Bin-Dev-MacOSX-v1.5.2.21/Samples/Bin/x64-Release/Sample-PointViewer
    975 INFO New log started on 2014-06-13 19:05:39
    992 INFO OpenNI version is 1.5.7 (Build 10)-MacOSX (Nov 12 2013 13:39:54)
    995 INFO — Filter Info — Minimum Severity: UNKNOWN
    One or more of the following nodes could not be enumerated:

    Version of Kinect 1414

    What should i do ?)

  • Reply

    Zahra

    Thanks, It works great for me, :)
    easy and fast,

  • Reply

    Rich

    If you want a quick way to install all those pakages just download the zigfu web plugin: http://zigfu.com/en/downloads/browserplugin/

    This installs all the above packages and just works.. but you won’t learn anything :)

    You could then download the NITE build and run demos if you want.

    • Reply

      Glen McPherson

      Thanks for the link Rich, this looks great. Just keep in mind the tutorial above will help you interface your Kinect with other applications on your mac like Quartz Composer to create cool effects. I could be wrong, but it looks like Zigfu is more for in-browser apps? Love to know if you’ve had some experience – I’ll give it a whirl too.

  • Reply

    Rick

    Thanks a ton for this easy-to-follow tutorial.

    For those interested, I downloaded some notes about the NiTE middleware at these addresses:
    http://pr.cs.cornell.edu/humanactivities/data/NITE.pdf
    http://andrebaltazar.files.wordpress.com/2011/02/nite-controls-1-3-programmers-guide.pdf

    Cheers,

    • Reply

      Glen McPherson

      Thanks Rick! Glad you enjoyed the tutorial and thanks for the doc links! Great stuff.

  • Reply

    Omar

    We are all getting the OPERATION NOT PERMITTED error.
    Are you aware of this posts ? Could you please say at least if you know or do not know why is this happening ?

    • Reply

      Glen McPherson

      Hi Omar,

      Sorry I’ve been a little MIA lately. Can you tell me what version of OS X you are using? Also, have you installed any Kinect-related drivers before attempting this tutorial? I haven’t been able to replicate this issue, and am just trying to troubleshoot.

      Cheers,
      Glen

  • Reply

    Karolina_M

    Operation not permitted solution (10.9.2)

    Hi All,
    After several hours of trial and error I successfully installed the OpenNI package and I would like to share a solution which worked for me. I used Unarchiver app (free) to unzip the tar.zip file, then right-clicked tar.bz2 file, selected ‘open with’ and then Unarchiver app again. Then I followed instructions provided by Glen (cd file_where_you_saved_file and sudo ./install.sh ) and all files installed ok.
    I think that for some reason Mavericks thinks that I don’t have an admin access to install the package (when Unarchiver is not in use), I am not an expert so can not really explain this, sorry :) 😉

    Unarchiver solution worked for me in Mavericks 10.9.2 :)

    p.s. Glen – fantastic work and great tutorial, many, many thanks :)

    Best Wishes !
    Karolina

    • Reply

      Ben

      +1 for this fix!!

      Thanks so much for the tutorial & taking the time to sort this out guys!

    • Reply

      Joe

      +1 this is the solution to permission operation (thank you Unarchiver)

    • Reply

      Sergio Villa

      Worked for me!!! Using Unarchiver. Thank you!

  • Reply

    Karolina_M

    Edit: I use Unarchiver app for all further steps and it seems to work great :)

  • Reply

    elliott

    Hi Glen,

    thanks for this tutorial!

    I am having trouble opening cmake. i get the issue that it cant be opened bcuz it wasnt d/l from the app store. any idea how to get around this? thank you

    • Reply

      Glen McPherson

      Just for anyone else with this issue too. Open your System Preferences (from the Apple icon in your menu bar), and then click the ‘Security & Privacy’ tab. Once in there, simply change your settings to allow apps downloaded from Anywhere.

  • Reply

    elliott

    ^ wait nm i figured that out how to open it in application then security. but now im having a problem deleting it to reinstall it. please help?

    thank you

    e

  • Reply

    AaronW

    Thank you so, so, SO much for this thorough and effective post. After months of not being able to use the Kinect in my electronic music performances, I’ve got it up and running with Synapse again.

    I was getting the “The device is not connected!” message, so I bought another used 1414 Kinect at Gamestop (only $30) and all is working well.

    Again–THANK YOU!

  • Reply

    Ricardo

    Hi Glen,

    I tried to download open-ni from mega.co.nz, but the down load freeze at 99%. the same for Nite-Bin.

    could you help me?

  • Reply

    Ricardo

    Hi Glen,

    Great tutorial. I followed the steps 1, 2, 3. That is all ok.

    But when I tried to download the OpenNI-Bin-Dev-MacOSX-v1.5.7.10.tar.zip, it freezed at 99%. I look for this file in the downloads folder, but it is not there.

  • Reply

    Wango

    Hi Glen. Thank so much for your great tutorial. It was very helpful.
    But i still have a problem. I do all the stuff above without any errors or problems.
    And the OpenNi Samples also works perfectly.
    I wrote a small Java app for exercise. In this app i use the Dephtgenerator.
    Same code works fine on Ubuntu and Windows. But on my iMac the Depthgenerator will startsup.
    I find it strange because, if i use the rgb or infrared generator my app show me pictures in a panel,
    unlike the depth image.
    Thank you

  • Reply

    guillaume

    Hi Glen,

    Thank’s for what you did it seems to be great !
    I wrote seems because I am stuck ! Can’t install Cmake properly, I have an error message when it comes to the ‘Install Command Line Links’, there is no way to avoid it. I did uninstall and install again but still…
    By the way there is no real installation process, only dragging it to the application folder.
    Then I run the app and find ‘Install Command Line Links’ under the option menu ‘Tools’.
    Did I do something wrong ?
    Thank’s in advance.

    Guillaume

  • Reply

    rob

    followed tutorial workds great, now how do i just use kinect as a webcam and mic for stuff like ustream

  • Reply

    Harry Richardson

    hey every time i try and write the first bit (sudo port install libtool) it comes up with sudo: port: command not found. has anyone got a solution?

    • Reply

      Arthur

      I have this same problem.

      • Reply

        lan

        me too

        • Reply

          Kat

          same!

  • Reply

    tzelathial

    Perfect tutorial

  • Reply

    Nicholas Inatel

    Very good tutorial, everything worked perfectly! Thank you very much you saved my life

  • Reply

    Casber

    Hey!! Glen, thanks for your useful tutorial, I find it works in my Mavericks Mac 10.9.4
    However, when I want to extend the possibility to using OSCeleton,
    in terminal when make the OSCeleton Execution file, failure appears:
    the log file say sth like this:
    […src/OSCeleton.cpp:547:33: warning: format specifies type ‘int *’ but the
    argument has type ‘char **’ [-Wformat]
    if(sscanf(argv[arg+1], “%d”, &PORT) == EOF ) {
    ~~ ^~~~~
    1 warning generated.
    src/viewer.cpp:83:2: warning: ‘gluOrtho2D’ is deprecated: first deprecated in OS
    X 10.9 – “Use GLKMatrix4MakeOrtho” [-Wdeprecated-declarations]
    gluOrtho2D(0.0, width, height, 0.0);
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers/glu.h:276:13: note:
    ‘gluOrtho2D’ declared here
    extern void gluOrtho2D (GLdouble left, GLdouble right, GLdouble bottom, …
    ^
    1 warning generated.
    ld: library not found for -lOpenNI
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make: *** [osceleton] Error 1]

    I try to search online, does it refer to the problem of the path of OpenNI or the macport in Mavericks???

    Pretty frustrated about the Mac OS problem with Kinect……..

    • Reply

      Alberto Barradas

      Got the same problem here. Apparently nothing that uses OpenGL will compile on my mavericks, because libraries were deprecated. There should be a compile flag for legacy, shouldn’t it?

  • Reply

    dave11mj

    Hello Glen,

    I’d like to start with thanking you for this useful tutorial. I made it all the way through thanks to how clear it was. When I ran the final “sudo ./Sample-PointViewer” I was pretty excited to see it run, and see some display from the kinect camera. Unfortunately it seems to crash or stop moving / gathering data after a few seconds, before even showing the point tracking and I have to force quit out of the program. It doesn’t show any error messages, but the model I am using is the #1473 do you think this might be the reason is not tracking properly / crashing ?

    Thanks!
    😀

  • Reply

    Nico

    This is such a great tutorial. Really appreciated. Thanks very much!

  • Reply

    ege

    Hi, Thanks so much for your awesome tutorial 😀
    I’m stuck at part 6. I’m getting “sudo: unable to execute ./install.sh: Operation not permitted”… Do you have any idea where the problem might be?

    Thanks in advance

  • Reply

    Daniel

    It works for me on OS X 10.9 but only like 30 seconds. After each time I have to restart app

  • Reply

    Cazbar

    Hey Glen

    Ive followed you guide step by step but when I write ./Sample-PointViewer in the end I get this:

    admins-iMac-72:Bin id3$ cd /Users/id3/Kinnect/NITE-Bin-Dev-MacOSX-v1.5.2.21/Samples/Bin/x64-Release
    admins-iMac-72:x64-Release id3$ ./Sample-PointViewer
    514 INFO New log started on 2014-09-25 11:02:44
    534 INFO OpenNI version is 1.5.7 (Build 10)-MacOSX (Nov 12 2013 13:39:54)
    537 INFO — Filter Info — Minimum Severity: UNKNOWN
    One or more of the following nodes could not be enumerated:

    Do you have any clue why? Cheers, buddy

  • Reply

    niejogja

    can’t register on step 6
    Copying shared libraries… OK
    Copying includes… OK
    Installing java bindings… OK
    Installing module ‘Features_1_3_0’…
    ls: Features_1_3_0/Bin/lib*dylib: No such file or directory
    Installing module ‘Features_1_3_1’…
    ls: Features_1_3_1/Bin/lib*dylib: No such file or directory
    Installing module ‘Features_1_4_1’…
    ls: Features_1_4_1/Bin/lib*dylib: No such file or directory
    Installing module ‘Features_1_4_2’…
    ls: Features_1_4_2/Bin/lib*dylib: No such file or directory
    Installing module ‘Features_1_5_2’…
    Registering module ‘libXnVFeatures_1_5_2.dylib’… ./install.sh: line 41: /usr/bin/niReg: Operation not permitted

  • Reply

    Craig

    Hi Glen,

    I’m having an issue with Step 7. In a new finder window, locate your x64-Release folder by following this path: NiTE / Samples / Bin / x64-Release. Everything has installed grand as did all the folders but for some reason this isn’t coming up and for the life of me I can’t figure out why. Any idea?

  • Reply

    niejogja

    I have problem on step 6 when I installing NITE, i got message Registering module ‘libXnVFeatures_1_5_2.dylib’… ./install.sh: line 41: /usr/bin/niReg: Operation not permitted.

  • Reply

    Felipe

    HIII great tutorial, but i have a big problem here. I have MAC OS X 10.9.
    but i get this error when I run the program whit a PrimeSense device
    ./Sample-PointViewer
    540 INFO New log started on 2014-10-08 00:54:40
    564 INFO OpenNI version is 1.5.7 (Build 10)-MacOSX (Nov 12 2013 13:39:54)
    568 INFO — Filter Info — Minimum Severity: UNKNOWN
    One or more of the following nodes could not be enumerated:

    Device: PrimeSense/SensorKinect/5.1.2.1: The device is not connected!

    This only works with a Kinect sensor?
    Please help me!!!

  • Reply

    Glenn Holt

    The Mega download for openNI 1.5 does not work. It stalls @ 99% and then pops up a couple of ad attempts.

  • Reply

    Sevgi

    Thank you so much for this easy to follow, clear tutorial. Worked like a charm!

  • Reply

    RainyDayInterns

    Hi! Just came upon this tutorial and before we give it a try, we thought we should ask if you have had a chance to run it under 10.10 Yosemite.

  • Reply

    Shaw

    Hi Glen,

    Thank you for your detailed tutorial. I installed everything successfully by following your steps. However, it doesn’t work in the end. The errors like this:
    2044 INFO New log started on 2014-10-28 13:57:33
    2063 INFO OpenNI version is 1.5.7 (Build 10)-MacOSX (Nov 12 2013 13:39:54)
    2067 INFO — Filter Info — Minimum Severity: UNKNOWN
    One or more of the following nodes could not be enumerated:

    Device: PrimeSense/SensorKinect/5.1.2.1: The device is not connected!

    I restarted the OS and connected the kinect to the wall outlet, but it still doesn’t work. I think it’s the problem of my system, the following is my system info:
    Mac OS X 10.10 Yosemite
    Kinect2 Model 1656

  • Reply

    DanS

    Installed perfectly! The soft link command didn’t seem to work as it seems like the file was already in the /usr/bin. Anyways, thanks for the tutorial, VERY cool. :)

    I’m currently hoping to get it to work with Powerpoint slides. Will do some research on it but any advice?

  • Reply

    Diego Caballero

    I was having the same problem as you guys with the “Operation not permitted” and was getting really frustrated..

    As KAROLINA_M already pointed out I downloaded “the unarchiver” app, then I deleted EVERYTHING inside the “kinect” folder we had created and started from scratch since Step 4.. So you have to download the files and everytime you have to unzip a file do it with the unarchiver app.. And that´s it.

    I hope this works for everyone else too.

  • Reply

    Kyle

    Is it working on Kinect v2 ?

  • Reply

    Brandon

    Hey Glen,

    As I followed along with your tutorial I ran into an error in step 4.6 “sudo ./install.sh”. I’m working in the proper folder, but I’m getting an error saying “sudo: unable to execute ./install.sh: Operation not permitted”. Any ideas/solutions?

    Thanks,

    Brandon

  • Reply

    Austin

    wondering the same as SHAW. anyone know if this will work on 10.10 yosemite? kicking myself in the face for updating right about now

  • Reply

    Diego Caballero

    Hi Brandon,
    I was also getting that same error as you. Someone in the comments pointed out this as a solution:
    “sudo sh ./install.sh”

    And it worked for me, hope it works for you!

  • Reply

    Will

    Everything works… for about ten seconds then the video goes black or freezes. Any ideas?

  • Reply

    Qi

    Thanks your tutorial , Glen!

    Everything was works for me until the last step, when i launch the “./Sample-PointViewer”, the Terminal told me ” Operation not permitted”, my kinect is #1473, and i can see the kinect´s light is blinking at each second.
    Would be a problem that im using OS YOSEMITE??

    Thanks!

  • Reply

    Mark

    Glen,

    You sir are BAWSE! Can’t thank you enough for posting this beautifully laid out tutorial. Lotta learning went on here, and I went from the limited Synapse single user to OSCeleton multiple user tracker on Yosemite. Just wanted to say thanks for putting the time and effort into making this valuable tutorial happen. 😀

    ~ Mark

  • Reply

    Glen McPherson

    Hi guys,

    Hi everyone! So sorry it’s been so long since an update. I’ve just recently tied the knot with my lovely wife Rachael and returned from a very long honeymoon.

    It’s great to see that you’ve been helping each other out in the comments section! Especially with all the compatibility issues that I wasn’t able to reproduce.

    I know a few of you are looking to push the boundaries and try out new things… me too! So prepare yourselves for some long overdue updates! Oh, and there are some more exciting announcements on the horizon too. :)

    Glen

  • Reply

    paolo

    Hi Glen,
    congratulations!
    I’m new on this blog and I was looking around a way to connect the new (actually not so new) kinect One to a Mac OS.
    I already use a kinect 1414 (OSC and TUIO protocol) to control some interactive drawing tool for immersive live performance but the low resolution sensor sometimes make me sick…
    anyway thanks a lot for all your support in making things working toghether.

    paolo

    • Reply

      Glen McPherson

      Hi Paolo,

      Thank you! Yes I’m actually in the same boat. I have ordered and received the new Kinect sensor for Windows (the same one the Xbox One uses, but specifically designed to work with your PC via USB). So once I get some time to test it out and get it running, I’ll put together another tutorial. I’ll also try to check and updated (if necessary) this tutorial for Mac OS X 10.10 Yosemite.

      Great that you’re already up and running with OSC and TUIO. If you ever want to do a guest post on either of those technologies, please feel free to let me know!

      Cheers,
      Glen

      • Reply

        Glen McPherson

        If anyone is interested, I just noticed that a new PC/Tablet adapter for the Xbox One Kinect Sensor is available – Click to view/buy it for ~$49. This should let you attach the kinect that came with your new Xbox One and get the same functionality as if you had purchased the Kinect v2 sensor.

      • Reply

        Erik Champion

        Hi Glen (and anyone interested)
        has anyone got Kinect One to work with Win 7 or Mac OS X without having to use Win 7? Would greatly appreciate any leads or ideas!

  • Reply

    Lucas Marsh

    Hey Glen,
    Thank you for this post! I’m having issues installing OpenNI:

    MacPro:~ MacPro$ cd /Users/MacPro/Desktop/mac/OpenNI-Bin-Dev-MacOSX-v1.5.7.10
    MacPro:OpenNI-Bin-Dev-MacOSX-v1.5.7.10 MacPro$ sudo ./install.sh
    sudo: unable to execute ./install.sh: Operation not permitted
    MacPro:OpenNI-Bin-Dev-MacOSX-v1.5.7.10 MacPro$

    I have a custom built mac tower. I’ve followed some of the home-brew tutorials as well trying to get my model1414 working.

    https://github.com/totakke/homebrew-openni
    http://openkinect.org/wiki/Getting_Started

    I hope these installs aren’t corrupting your build.

    I currently have a custom built mac tower (2.99 ghz 6 core intel xeon with 24 gb of memory, zotac GeForce GT 430 1024 MB graphics card) running mavericks 10.9.5. I have a windows build on a separate solid state but i’d prefer to get this all working from the Mac side.

    I’ve used this specific kinect and adaptor in the past on my macbook pro running lion
    (http://lucasmarsh.squarespace.com/kinectics/) but now neither seems to be working correctly. Perhaps the adaptor is shot.

    Anyhow I still can’t install the OpenNI and any help with this would be great.

  • Reply

    David Dorado

    Hi Glen,

    i’m trying to download MacPorts for OS X 10.9 Mavericks, but
    something is wrong with the download link. is there another place to download the file?
    thank you so much for the help

    • Reply

      Glen McPherson

      Hi David, it seems you’re right. I’ve just tweeted MacPorts. Hopefully they fix their download links asap. https://twitter.com/macports/status/536806414585692161

      • Reply

        David Dorado

        Thanks Glen.
        Now i’m trying to install OpenNi but i’m stuck in step 4.6, when i type “ sudo ./install.sh “ in terminal, this appears:

        sudo: unable to execute ./install.sh: Operation not permitted

        if you know how to fix this, pleas let me know
        thanks for your time

  • Reply

    Rafael

    Hello, congrats for the great tutorial!
    I´m writing from Brazil.

    Using Macports 2.3.3 for Mavericks

    When i tried to install the LIBUSB, typing [sudo port install libusb +universal], i got this message:

    [
    —> Configuring libusb
    Error: Failed to configure libusb, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libusb/libusb/work/libusb-1.0.18/config.log

    Error: org.macports.configure for port libusb returned: configure failure: command execution failed

    Please see the log file for port libusb for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libusb/libusb/main.log

    To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

    Error: Processing of port libusb failed
    ]

    He is asking me to look for [opt/local/VAR…] BUT
    in Macports 2.3.3 this is installed in [opt/local/ETC…]

    Looks like it is looking in the wrong place.
    There is some way to change this, so it looks in ETC paste?

  • Reply

    Rafael

    UPDATE

    Hello again, i think that found something. I´m a really noob, so, i´m sorry for the basic questions.

    It is looking for: ibusb-1.0.18_0+universal.darwin_13.i386-x86_64.tbz2,

    but, if you look at the website (http://packages.macports.org/libusb/) , it have just ibusb-1.0.18_0+universal.darwin_14.i386-x86_64.tbz2.

    It is looking for […_13.i386…] and in the website we just have […_14.i386…]

    This could be the problem?
    How can i fix this?

    Rafael-MacPro:~ rafaelski$ sudo port install libusb +universal

    —> Fetching archive for libusb
    —> Attempting to fetch libusb-1.0.18_0+universal.darwin_13.i386-x86_64.tbz2 from http://packages.macports.org/libusb
    —> Attempting to fetch libusb-1.0.18_0+universal.darwin_13.i386-x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/libusb
    —> Attempting to fetch libusb-1.0.18_0+universal.darwin_13.i386-x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/libusb
    —> Fetching distfiles for libusb
    —> Attempting to fetch libusb-1.0.18.tar.bz2 from http://ufpr.dl.sourceforge.net/libusb
    —> Verifying checksums for libusb
    —> Extracting libusb
    —> Configuring libusb
    Error: Failed to configure libusb, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libusb/libusb/work/libusb-1.0.18/config.log
    Error: org.macports.configure for port libusb returned: configure failure: command execution failed
    Please see the log file for port libusb for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libusb/libusb/main.log
    To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
    Error: Processing of port libusb failed

    Thanks a lot!

    • Reply

      Sergio

      Did you solved it?

  • Reply

    DongNyeok Jeong

    It works in Yosemite (10.10.1)
    Thanks :)

    • Reply

      Glen McPherson

      Oh great! I haven’t had time to fully test this in Yosemite yet. I will though and post any updates that might help people out. Glad to know this got you through though.

  • Reply

    Brian L

    After reading your excellent instructions and the subsequent comments I have a single simple question. After a successful installation will I be able to access the Kinect in Skype on my Mac to contact my son overseas? Thank you in advance for your attention to my question.

  • Reply

    Jorge

    Thank You very much. One of the best tutorial I’ve ever seen.

  • Reply

    Andres

    Hello,
    When trying to instal Libtool and Libusb I get this response from the terminal:
    -bash: [stag_code: command not found

    What can I do to solve this??

    Thanks

    • Reply

      Andres

      oh silly question, I just solved it, thanks

      • Reply

        Jessica

        Can you tell me what you did to solve this? I’m having the same issue.

        • Reply

          Sonia

          yes, help me too

    • Reply

      Glen McPherson

      Hi Andres,

      A recent WordPress update changed the code snippets on this site. I’ve fixed everything now! Try the tutorial again and you shouldn’t have the same issues.

      Cheers,
      Glen

  • Reply

    Sonia

    Hello,
    When trying to instal Libtool and Libusb I get this response from the terminal:
    -bash: [stag_code: command not found

    What can I do to solve this??
    plaseee help me

    Thanks

    • Reply

      Glen McPherson

      Hi Sonia,

      My apologies, I didn’t realise that a wordpress update destroyed my code snippets. I’ve updated everything now, so the tutorial is working again. Please take a run through and let me know how you go.

  • Reply

    Toni

    Thanks for your excellent tutorial and for responding to so many comments Glen.
    Maybe this is a really dumb question, but I’m not sure I understand why one would need to go through this installation process? I’ve been using a Kinect successfully on Lion and Yosemite without ever installing any kinect drivers – just NIMate or Synapse.
    I found this tutorial after I started having problems getting a Processing sketch to work on Yosemite. It works fine on Lion, but on 10.10 the OpenNI library is not found, even though it is installed in the right place. I read that since mid 2014, OpenNI is no longer supported, so that may explain why it won’t work on 10.10.
    Developing anything new using OpenNI seems a bit risky, and sadly it seems Windows is the safest platform.
    I’d appreciate any feedback!
    Thanks.

    • Reply

      Glen McPherson

      Hi Toni, Thanks for visiting and for the info.

      NIMate will definitely get you up and running without the hassle, but unfortunately it’s a paid alternative. Installing the drivers is recommended when attempting to use the Kinect with Synapse and Quartz Composer, and should let you hack into it for most other purposes too. If you intend to write professional software using the kinect as an interface, then I would definitely go custom or a solution that has a higher level of support than OpenNI. But for the tehnologists, makers and hobbyists, this should be a nice way to get started.

      I do intend to get a tutorial up with the changes for Mac 10.10 Yosemite, along with a tutorial for the Kinect v2, but it’s been hard to find the time as I’m also launching ‘Creature Lab’, my new UX and design innovation studio (sign up to the eNewsletter to hear when it launches). I should have some free time over the next month though, so stay tuned for more Kinect fun.

  • Reply

    Phil

    Anyone figure out how to solve the

    [stag_code data_line=”” style=”markup php”]sudo port install libtool[/stag_code]
    [stag_code: command not found

    issue?

    Thnaks

    • Reply

      Glen McPherson

      Hi Phil,

      Apologies, there was an issue with this website that affected the code snippets. This has been fixed, and the tutorial now has all the correct code for you to copy/paste. Please let me know how you go!

  • Reply

    angel

    Hey Glenn, 1st things 1st: Congrats on your excellent work and thnx 4 sharing ur worthy knowhow.

    Sorry, bit of a rocky here w bash… I have same Issue commented in previous posts by Andres, Jessica and Sonia: I get this message in terminal:

    -bash: [stag_code: command not found

    anyone could help I’d appreciate it…. How did Andres solve it in the end?????

    :/

    can´t wait to finish this setup and play with my interactive sets now on kinect….

    thanks really 4 the time and patience, excellent project!

    • Reply

      Glen McPherson

      Hi Angel,

      My apologies, it seems a wordpress update destroyed the code snippets I posted. The ‘stag code’ reference you were seeing was not meant to be there at all.

      I’ve gone through this entire post and replaced all the code samples to fix the problem. You can now hover your mouse over the code snippets too and it’ll let you easily copy them as plain text – ready for pasting.

      In a nutshell: There were issues with the tutorial that are now fixed. Please let me know if you run into any more issues!

  • Reply

    Carolina

    Hi Glen,.

    It worked for me the first time I tried so all is good. I’m going to try the other demos.

    Thanks a lot for the fun!

    Carolina

  • Reply

    Don

    Very clear tutorial, thanks a lot!

  • Reply

    Frank

    does it work on yosemite?

  • Reply

    Alejandro Quiroz

    Hi Glen! I congratulate you for this great tutorial, I’ve wanted to try this years ago, but finally I’ve done with your help, thank you so much! I will be able to test my future own 3D rigging and VFX projects! Regards! 😀

    • Reply

      Alejandro Quiroz

      BTW, It works in OS X Yosemite (10.10.2)

  • Reply

    Paul

    Hi Glen, great tutorial…I followed it and worked first time..do you have any links to use the kinect for facial tracking on maverick?

  • Reply

    Richard GUy

    Great tutorial, thanks.

  • Reply

    Jon

    Amazing tutorial, everything highly detailed, never got lost, not even a single error. Thanks a looot!

  • Reply

    Mauri

    Hi all! I´ve followed all the steps correctly I think! At the end when I´m trying to run inside x64-Release ./Sample-PointViewer I get the message
    -bash: ./Sample-PointViewer: Operation not permitted

    Help please!! I´m very close!! :-)

    • Reply

      Tim

      Hi – I’m getting the same problem – feels like I’m almost there – everything else has gone like a dream. This is what I’m getting
      -bash: ./Sample-PointViewer: Operation not permitted
      Can anyone suggest a fix?

      Thanks so much

      Tim

  • Reply

    Beans

    Hi,

    Trying to install the OpenNi SDK and getting this in terminal:

    copying shared libraries…OK
    copying executables…OK
    copying include files…OK
    creating database directory…OK
    registering module ‘libnimMockNodes.dylib’…dyld: Library not loaded: /opt/local/lib/libusb-1.0.0.dylib
    Referenced from: /usr/lib/libOpenNI.dylib
    Reason: image not found
    ./install.sh: line 111: 1249 Trace/BPT trap: 5 $INSTALL_BIN/niReg -r $INSTALL_LIB/$module
    Sabrinas-MacBook-Pro:OpenNI-Bin-Dev-MacOSX-v1.5.7.10 sabrinaekalli1$

    Any insight in to what might be the problem?

    Thanks :)

    • Reply

      Geert Jan

      sudo xattr -rd com.apple.quarantine /path/to/file

      The issue is that OS X by default puts a ‘quarantine’ label on downloaded files it doesn’t trust. Normally, if this is the case with a ApplicationName.app file, you would doubleclick the file, get a warning from the system, click “Open” and it removes the label. This is a bit different with these binaries or shell scripts.

      For me this worked:
      – instead of typing “sudo ./install.sh” I used “sudo sh ./install.sh”, which goes around the blocked install.sh because it’s not directly executing that file, but the “sh” program instead, which then reads install.sh as a regular file. Nevertheless, this still got me 3 errors on executing “niReg” (operation not permitted).
      – “sudo xattr -rd com.apple.quarantine /usr/bin/ni*” then made it possible to execute niReg (and also unlocks “niLicense” at the same time)

      By the way, I still had to run the niReg lines manually through terminal:
      sudo /usr/bin/niReg -r /usr/lib/libnimMockNodes.dylib
      sudo /usr/bin/niReg -r /usr/lib/libnimCodecs.dylib
      sudo /usr/bin/niReg -r /usr/lib/libnimRecorder.dylib

      Answer found through performing a “ls -@l /usr/bin/ni*” and then googling “com.apple.quarantine” ending up at: http://superuser.com/questions/28384/what-should-i-do-about-com-apple-quarantine\

      So… let’s make up for these 45 minutes that I just wasted trying to figure this out 😉

  • Reply

    Alix

    Hi,
    Thank you for this.
    Unfortunately I’m encountering a problem in step 4, at point 6.
    I type in terminal : sudo ./install.sh and I have an error message :
    “sudo: unable to execute ./install.sh: Operation not permitted
    pc22:OpenNI-Bin-Dev-MacOSX-v1.5.7.10 alixbonnet$”

    Can you help me ?
    Thanks a lot

  • Reply

    Alix

    Ok, for everyone who had this problem with step 4, 6. and got this message : sudo: unable to execute ./install.sh: Operation not permitted

    try to type : sudo sh install.sh
    it worked for me.

    Have nice experiments with kinect !

  • Reply

    juins Kim

    I successed all of them. But, when I play Samples of NiTE it works during only few seconds, and it stops.
    I wonder why it does that.

    I installed “XQuartz-2.7.7″,”cmake-3.2.1-Darwin-universal”(It was for 32bit but I followed your tutorial said that word ‘universal’.. maybe, am I wrong?), “MacPorts-2.3.3-10.9″.
    and other installers were in your instructions.

    My OSX version is 10.9.5.

    Am I wrong something in your instructions?

    • Reply

      Sunspark

      I’ve got the same problem, my Sample-PointViewer program will run for between 20 and 21 seconds and then will display a black screen.

      I’ve tried running other sample programs and gotten the same result. Somewhere at or before the 20 second mark, the programs become unresponsive.

      Is this a problem with the Hardware or the Software?

  • Reply

    yunze

    Thank you so much!
    That really help me a lot!

  • Reply

    David

    When I try to fulfill Step 4 and enter “sudo ./install.sh” into the Terminal, it comes back with:
    sudo: unable to execute ./install.sh: Operation not permitted

  • Reply

    Tim

    I had difficulty initially but in the end I installed Yosemite onto my mac and the installation worked like a dream. Thanks you.

    • Reply

      Sunspark

      I’m running Yosemite now too, and my installation appears to have worked fine, but exactly 20 seconds (tested and timed many many times) after I run the Sample-PointViewer program, it freezes up.

      The screen continues to display “Tracking Hands,” but the screen goes black and doesn’t appear to register anything. If I quit the program and run it again, it works fine, but again, only for 20 seconds.

      Any suggestions?

  • Reply

    Ozges

    This is an amazing tutorial. Thank you for not skipping small details. It worked smoothly.

  • Reply

    David Selinger

    Glen,
    Just wanted to say thank you. Your tutorial is spot on, and worked the first time. I was up and running in less than 20 minutes.

    I’ll be sure and keep you posted as I get anything cool done with this :)

    –Selly

  • Reply

    Katherine

    Many thanks for such a clear tutorial and the software!

  • Reply

    mb

    I’m using Yosemite.
    i get this… ./Sample-PointViewer: No such file or directory

    • Reply

      Sunspark

      It’s because your files weren’t copied correctly during Step 7. I believe the files must be located in both folders, so make sure there are copies in both.

  • Reply

    David

    It works well!! I’m using Yosemite. Thanks a lot, Glen!

  • Reply

    Christian

    Works like a charm on my 10.10.3 Air with Kinect for Xbox 360!
    Thanks a lot for the really easy to follow guide!
    Just wondering if the OpenNi v.2.2.0.33 beta still doesn’t work on osx: http://structure.io/openni.
    Got no feedback on the terminal after calling ./install.sh

    regards Chris

  • Reply

    Sunspark

    I’m running Yosemite now too, and my installation appears to have worked fine, but exactly 20 seconds (tested and timed many many times) after I run the Sample-PointViewer program, it freezes up.

    The screen continues to display “Tracking Hands,” but the screen goes black and doesn’t appear to register anything. If I quit the program and run it again, it works fine, but again, only for 20 seconds.

    Any suggestions?

    • Reply

      Goon

      Same problem! :(

  • Reply

    Scott Russell

    So I have gone through all the steps no muss no fuss, but when I try to run the last terminal command, terminal says “file not found!”. I am running OS X Yosemite.

    Thanks,
    Scott

  • Reply

    Giirja

    Such a helpful walk-through of installation. Thank you, very much!

  • Reply

    Travis

    Hi there… I’m at step 4 and when I run the sudo ./install.sh code I get back
    sudo: unable to execute ./install.sh: Operation not permitted
    I scrolled through and saw that someone else had this problem and maybe I just missed the answer but if someone could throw be a bone here I’d really appreciate it.

    • Reply

      Travis

      problem solved … I forgot that Sudo sh install.sh works instead….

      • Reply

        Dayna

        THANK YOU for posting that. I’m new to all this and could not figure out how to solve the “not permitted” issue. you’re “oh yeah!” moment just helped a newbie out.

  • Reply

    Paul

    Hi Glen,

    Thanks for this tutorial. Really easy to follow. However I’ve come un- stuck at the last hurdle

    ./Sample-PointViewer
    1012 INFO New log started on 2015-05-23 11:55:18
    1262 INFO OpenNI version is 1.5.7 (Build 10)-MacOSX (Nov 12 2013 13:39:54)
    1371 INFO — Filter Info — Minimum Severity: UNKNOWN
    One or more of the following nodes could not be enumerated:

    I’ve unplugged, restarted but still no luck. I’m using Kinect 1414

    any help greatly appreciated.
    Cheers

    PAUL

    Device: PrimeSense/SensorKinect/5.1.2.1: The device is not connected!

  • Reply

    Real fresh man

    I tried that’s contents, but my mac terminal give me this massage that is ‘Operation not permitted’
    How should I do about this, I wanna learn the solution about this problem.
    I use Mac pro 13inch version, help me please 8^8

  • Reply

    Travis

    just in case anybody runs into a problem installing the command line tools for CMake… this guys video has the solution you’ll need.
    https://www.youtube.com/watch?v=sK4sVg4SRsg

  • Reply

    DARREN

    Hi Glen,
    i have trouble with the last step, when i run
    ./Sample-PointViewer
    i get
    -bash: ./Sample-PointViewer: Operation not permitted
    i really hope you can help me with this, thank you for such great tutorial.
    thanks in advance !!

  • Reply

    Nathaniel

    Thank you so much for the detailed tutorial. I arrived here because I am trying to take advantage of a Processing Library for Kinect and got the following message:


    A library relies on native code that’s not available.
    Or only works properly when the sketch is run as a 32-bit application.

    And apparently this tutorial had helped some other people resolve the issue. Unfortunately, after following all of the steps and trying to run the command, I received this message:


    nathaniel:x64-Release nathanieladdison$ ./Sample-PointViewer
    dyld: Library not loaded: /opt/local/lib/libusb-1.0.0.dylib
    Referenced from: /usr/lib/libOpenNI.dylib
    Reason: image not found
    Trace/BPT trap: 5

    I saw a similar issue in the comments but the proposed solution didn’t solve the problem. Can you please advise? Any help is greatly appreciated. I’m not that fluent with these things but it seems like all the preceding steps executed smoothly except I did notice that I was never prompted for my password when in the terminal while installing sensor kinect or NiTE.

  • Reply

    Giirja

    Very nice tutorial, Glen! Thank you!

    In spite of restarting my MacBook Air several times and plugging and unplugging Kinect for XBOX360 (Device no 1414) , my attempts to run the sample games always result in the following. Could Glen or anyone else help me with this one?

    Thanks!

    1430 INFO New log started on 2015-05-29 18:27:39
    1459 INFO OpenNI version is 1.5.7 (Build 10)-MacOSX (Nov 12 2013 13:39:54)
    1465 INFO — Filter Info — Minimum Severity: UNKNOWN
    One or more of the following nodes could not be enumerated:

    Device: PrimeSense/SensorKinect/5.1.2.1: The device is not connected!

  • Reply

    Spanky

    Is there anywhere else i can download the NITE-Bin-Dev-MacOSX-v1.5.2.21.zip file from?
    The link here is not working

    Thanks!

  • Reply

    Ben Kelly

    Got to step 3
    Libusb: A usb support tool for applications.

    followed terminal commands and got this

    —> Computing dependencies for libusb
    —> Dependencies to be installed: autoconf automake
    —> Extracting autoconf
    Error: org.macports.extract for port autoconf returned: Failed to locate ‘xz’ in path: ‘/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin’ or at its MacPorts configuration time location, did you move it?
    Error: Failed to install autoconf
    Please see the log file for port autoconf for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_autoconf/autoconf/main.log
    Error: The following dependencies were not installed: autoconf automake
    To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
    Error: Processing of port libusb failed

  • Reply

    Vladimir

    Hello Glen! Thank u so much for this amazing step by step tutuorial!
    Just one question are there any changes if I work with Yosimete?

  • Reply

    John

    Hello everybody,

    I’ve followed all the instructions. When I did this a few months ago on my imac, everything worked as expected the first time, no errors. Now, on my Mbp, I cannot get past step 6. I type sudo ./install.sh and nothing happens.i.e no feedback from terminal. When I try sudo sh ./install.sh I am prompted to enter my admin password. Once this is done, nothing happens and terminal gives no feedback again.

    I am on Yosemite 10.10.5 on this mbp. Please help me, i have a deadline in a week and I am really badly stuck.

    Thanks in advance for the help.

  • Reply

    John O'Dwyer

    Hi Glen,

    I get stuck at step 4 part 6 where I am supposed to install openNI. Terminal displays no feedback when O drag the folder in and press return. Decided to skip this step and see if I go ahead and install SensorKinect and Nite. Both of these seemed to install fine.

    What I am doing now is, uninstalling and starting again. I am on Yosemite 10.10.5 using a 1414 Kinect on an Mbp mid 2014.

    If anybody can help that would be great, I have a project due in a week and it isn’t looking good. I have read through all of the comments and tried all the suggestions but no luck so far.

    If you or anybody can offer some assistance that would be super cool.

    thanks from Ireland.

    John.

    • Reply

      John O'Dwyer

      Hi again,

      I managed to get everything working! I restarted my laptop and went through the uninstall process. Restarted again and then followed the tutorial from the start. This time everything just worked, no errors, no anomalies. I guest was a user error. I double checked that i was using the correct files and instead of copying and pasting the code snippets from the tutorial, I carefully typed them into terminal.

      I am running Yosemite OS X version 10.10.5 on a mid 2014 Macbook Pro Retina using the 1414 kinect.

      This is a great tutorial and it is worth sticking with it as it will work well in my experience.

      Good luck everybody.

      John.

      • Reply

        Sergio

        Hi. How did u managed that? Could you help me please? Im in the exactly same problem with yosemite.

      • Reply

        Katinka

        Hi Jonh, I have exactly the same problem, so I also wil try to restart the mac and the tutorial…

  • Reply

    Douglas

    Hi,

    Thanks for the terrific tutorial!

    Unfortunately, although everything installed without error, I can’t connect to the Kinect. It works fine in Processing (with examples here: http://shiffman.net/p5/kinect), so I know that the hardware is set up correctly. I’m on 10.5.5 with an XBOX One 1520.

    dyn-128-59-116-138:x64-Release cmc_user$ ./Sample-PointViewer
    568 INFO New log started on 2015-08-28 16:26:40
    583 INFO OpenNI version is 1.5.7 (Build 10)-MacOSX (Nov 12 2013 13:39:54)
    585 INFO — Filter Info — Minimum Severity: UNKNOWN
    One or more of the following nodes could not be enumerated:

    Device: PrimeSense/SensorKinect/5.1.2.1: The device is not connected!

    Any hints? Since it’s working in Processing I assume it’s not a USB/driver/firmware problem…

    best,
    Douglas

  • Reply

    SASCHASIGL

    Thank you for this great detailed explanation! Works perfectly fine the first time…

  • Reply

    Fab

    Does any Kinect work? Or do I have to get a special one?

  • Reply

    Ignacio Avellino

    Hi!

    In Mac OS El Capitan, /usr is no longer writable, even if you’re root (sudo). The only writable directory there is /usr/local. So what I did was to change the installation directory to /usr/local, in the install.sh script of both OpenNI and NITE

    Hope this helps anyone who, like me, got all their code broken thanks to updating to El Capitan

    • Reply

      mintyquinty

      Thanks, IGNACIO AVELLINO!
      This is exactly what I needed — but then I still couldn’t get it going. I got the same errors as someone else did where the XML file thru an error and the USB device failed to load. Turns out that my MacPro (aka Trashcan) only has USB 3.0 ports. When I hooked up the Kinect to one of the USB outs on my Thunderbolt display: viola!

      Working great so far on El Capitan.

      Thanks, GLEN for the awesome write up, too! I have a whole host of old projects that will see life again now, thanks to you!

  • Reply

    Ramon

    hello Glen

    Congratulations on your tutorial. I’ve been used to Montan Laion Yosemite and with much success . Thanks .

    But now with Captain trying to install OpenNi , NITE … The Terminal tells me that I do not have permission .

    You know something about these last changes?

    Thanks, I forgive my ingles and the googletranslate .

    • Reply

      Katinka

      I have the same problem, using OSX Yosemite…
      Thanks for your reply

  • Reply

    Ashley

    Hey there,
    so i don’t know much about any kind of coding or programming, and when i mean much I mean barely, but the Libusb: A usb support tool for applications. section I am receiving an error and don’t know how to fix it. Also when I click the link for the openNi SNK nothing is available. so I am not sure where to look for what is needed.

  • Reply

    Ashley

    Oh i forgot to mention what I am using….I am using a Mac from about 2010 and have updated software of El Captain.

  • Reply

    danial

    hi
    can anyone help me please to download nite as i tried all links but all of them was empty .

    • Reply

      Glen McPherson

      Hi Danial, apologies – the link must have gone down. I’ve replaced all the links in the page with new ones. You can also download here.

  • Reply

    danial

    thanks a lot GLEN for your reply and perfect tutorial
    also can i have your email please as I’m new with kinect programming if possible for you
    mine is: danial.it90@gmail.com

  • Reply

    danial

    hello
    can anyone help me please i did all the steps successfully but when i do the player sample and point viewer sample after it show me what it must but after few second the showing window stock would you please tell me what is wrong and what is solution.

    many thanks

  • Reply

    Kris

    Hey man, great tutorial. A few things went very well, but terminal failed to install Nite and SensorKinect-unstable saying

    “operation not permitted.”

    Tried to change permissions on the usr/lib folder but osx won’t allow me to change it. And… now I’m not sure what I did but now terminal is saying

    “sudo: /etc/sudoers is world writable
    sudo: no valid sudoers sources found, quitting”

    Thanks for any help. Just updated to El Capitan yesterday.

  • Reply

    Priyanka

    Hi Glen,
    Thanks for this! I’m having trouble getting the Kinect to come on though. The green light keeps blinking and then finally goes off. Also, I can’t seem to get Synapse to run either… it keeps quitting on me. I’m using OSX Yosemite. Any advice is much appreciated. Thanks!

  • Reply

    Aram Adajian

    Hey Glen,

    Thank you for this tutorial.
    Thing is, I followed the steps, and tried to run the software, and I got a message in the terminal that stated that the device is not connected.
    It is connected, everything is plugged in properly.

    I’m running Yosemite, and my Xbox One Kinect Sensor’s model number is 1520. I recall you stating that 1517 is wrong for this job, and so I’m anticipating bad news! Maybe not though…

    Aram

  • Reply

    Morph

    Hello Glen,

    I am having some issues with getting my kinect to work. I have followed all the steps provided, but when I run the ./sample-PointViewer command I get the following error:

    Michaels-MacBook-Pro:x64-Release **********$ ./sample-Pointviewer
    502 INFO New log started on 2015-11-15 19:03:32
    517 INFO OpenNI version is 1.5.7 (Build 10)-MacOSX (Nov 12 2013 13:39:54)
    520 INFO — Filter Info — Minimum Severity: UNKNOWN
    One or more of the following nodes could not be enumerated:

    Device: PrimeSense/SensorKinect/5.1.2.1: The device is not connected!

    I am using OSX 10.11.1 El Capitan with a Kinect model 1520. I should note that I am not a programmer, I am an Architectural Student looking to utilize the program found here: https://kinetically.wordpress.com/2014/01/06/wave/
    A link to the program download is also on that website. I can’t seem to get the kinect to work at all, and I desperately need to get this program working.

    Any help you can provide would be greatly appreciated.

  • Reply

    Ed

    Thank you, Glen for this great post! Managed to get the kinect 1414 working on sip off el capitan with this awesome tutorial.

  • Reply

    Rodrigo

    Worked perfectly 😀
    Awesome tutorial!!
    Thanks!!

  • Reply

    Katinka

    Hi Glen,

    thanks so much for this tutorial.

    I do not know that much of programming but I could follow all the steps. Although sometimes it gave me this:
    sudo: unable to execute ./install.sh: Operation not permitted

    How do I give permission for the Operation?

    Thanks For your answer. Im on an Apple Yosemite and using a kinect 1414

    Kind regards Katinka

  • Reply

    smols

    works fine on mac mini yosemite with model 1414
    permission copy and access problems while compiling/installing can be resolved with the following:
    “sudo xattr -rd com.apple.quarantine . ”
    the dot means, it applies to all files in current directory
    this will allow compilation/install of “quarantined” files.

  • Reply

    Naren Koka

    Thank you for the detailed tutorial. It is working on El Capitan also. I ran into a new security feature that did not allow the install. I had to do was to disable the new System Integrity Protection.
    1. Reboot Mac in recovery mode by pressing Option-R while booting.
    2. Open Utilities -> Terminal
    3. Run Command “csrutil disable”
    4. Reboot
    ….
    5. After the install is complete, re-enable System Integrity Protection

    Naren

    • Reply

      Ronny

      Thank you so much! Did what you said and could continue with the installation without problems! Just one detail: in my case I had to hold Command+R instead of Option+R

  • Reply

    Israel Agyeman-Prempeh

    Operation Not Permitted Solution

    I was trying to install the kinect on an OSX el capitan and I was getting the same error.
    This was my solution. Restart the machine and hold cmd+r to boot into recovery OS.
    Once there select the terminal and Enter “csrutil disable”. and Enter “reboot” after.

    This command gives you the permission to write to /usr/bin/

    Once your mac starts cd into the OPENNi and type sudo sh ./install.sh this should work.
    For safety after you’re done installing you can reenable the csrutil.

    I hope it works for you’all.

    • Reply

      Krishna

      +1; works on El Capitan 10.11.5

  • Reply

    Alex Verhaest

    Hi Glenn, Thanks so much for this! Could you tell me how I can use the microphone of my kinect?

  • Reply

    Chris

    Hi Glenn
    Do you have a set up for OSX 10.12 (el captain) ??
    Many thanks
    Chris

    • Reply

      Chris

      Don’t worry, I have read other comments

  • Reply

    Peppironi89

    Holy Shambaloni, I feel like a real coder now…

    thanx!

  • Reply

    Forrest

    It’s Feb 1, 2016. I’m not sure if you’re still responding to this post, looks like the most recent posts were two months ago. I believe that I followed all your directions correctly and all seems well. I’m on a newer Mac Pro and the Kinect is recognized at the USB 3.0 Bus. But the final command for the PointViewer did not work, nor does the Kinect seem to be responding. I have model 1520 for XBox 1.

    I am a college professor working on gestural interaction for live performance, but an orchestra director with some background in computer programming, but not an expert. Any help much appreciated. It would be fine to respond to this email address.

    • Reply

      Henry

      Hi Forrest, I also have the new Mac Pro and I have the problem “Device: PrimeSense/SensorKinect/5.1.2.1: The device is not connected!” . I guess it is the USB 3.0 problem, if you read the comment from @ MINTYQUINTY, he got it worked on the Thunderbolt display. Do you have any luck since you posted? I will try to get a thunderbolt usb hub and see if it works.

  • Reply

    Antoine

    Hello Glen (excuse my english. I am french and my lessons are far away from me)
    First of all I want to thank you for your tutorial !
    I am trying to follow your tutorial. But -on the “How to uninstall Kinect drivers on your Mac” page, I don’t find the files “OpenNI-Bin-Dev-MacOSX-v1.5.4.0″ (same thing for NITE and SENSOR KINCET). I have recently installed this : http://zigfu.com/en/downloads/browserplugin/
    It have installed me some kinect’s drivers. I want to restart whith a clean setting.
    Is it enough if I put what was installed into the trash ? Is there no hidden files ?
    Thank you for your help.

  • Reply

    kang

    Is there a way to connect a Kinect One sensor to Mac?

  • Reply

    clarence

    Hi, great tutorial. I am trying to get my kinect working on OS X 10.10.5. I have had success with all your other steps up until the demo section. I did have to make a minor code change i found via one of your other commenters. To install, i had to use the command sudo sh install.sh rather than what was in the tutorial. Do you have any advise on how i can run the demos? I am getting the same error message ‘not permitted’ as when I was having trouble installing things. Thanks

  • Reply

    Michael

    Hi Glen.
    I am in the process of setting this up and I am having the same issue installing nite. Keeps saying operation not permitted. Any help would be appreciated. Thank you
    Michael

  • Reply

    Wayne

    Thanks for this tutorial. This works perfectly without a hitch on El Capitan with a 1414 Kinect!

    • Reply

      Hannes

      hi there. as i saw you got it working on El Capitano with a 1414. I have the same configuration but i am unable to install the command line tools of cmake. can you give be some advice on this? would be cool :)

  • Reply

    Delaney S

    Thanks for this awesome tutorial!! This would have taken me actual years!

  • Reply

    dominic fisher

    Hello Glen
    Whenever i put in sudo port install libtool, it keeps saying that it is not found can you please help thank you.

  • Reply

    Hannes

    Hi there. anyone has any idea on how to get this working on osx el capitano?

    • Reply

      klzwrr

      hey @HANNES, did you or someone tried if it works on 10.11 El Capitan?

      I would like to config my setup to code with openframeworks.

      thanks for the tutorial!,

  • Reply

    Vanessa

    Please HELP.
    In step 3, in my terminal shows this:
    “—> Activating libusb @1.0.20_0+universal
    Error: org.macports.activate for port libusb returned: Image error: /opt/local/lib/libusb-1.0.0.dylib already exists and does not belong to a registered port. Unable to activate port libusb. Use ‘port -f activate libusb’ to force the activation.
    Please see the log file for port libusb for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libusb/libusb/main.log
    To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
    Error: Processing of port libusb failed”

    Why? What should i do?

    thanks

  • Reply

    Tom

    Does this work on El Captain?

  • Reply

    Andrea Kyriacou

    Dear Friends I am desperate i want to use the kinect device on my macbook pro with yosemite 10.10 and its impossible to access the kinect camera using the technique here. Although everything seems to be installed fine during the process , when i reach this point the kinect just doesnt connect. I am a university student i need to use this desperately for a project . I would be grateful if you could help out guys !!!

    Last login: Sat Mar 26 11:06:58 on ttys000
    Andreass-MBP:~ andreas5391$ cd /Users/andreas5391/Sites/Kinect/NITE-Bin-Dev-MacOSX-v1.5.2.21/Samples/Bin/x64-Release
    Andreass-MBP:x64-Release andreas5391$ ./Sample-PointViewer
    1263 INFO New log started on 2016-03-26 11:09:01
    1286 INFO OpenNI version is 1.5.7 (Build 10)-MacOSX (Nov 12 2013 13:39:54)
    1289 INFO — Filter Info — Minimum Severity: UNKNOWN
    One or more of the following nodes could not be enumerated:

    Device: PrimeSense/SensorKinect/5.1.2.1: The device is not connected!

    Andreass-MBP:x64-Release andreas5391$

    • Reply

      Lajos

      Hi Andrea,
      I have issues as well with my 10.10. Could you solve it finally somehow?

  • Reply

    Marcos

    Hi Glenn, im gettin an error to install the libraries, the sudo wont permit install some of them, i got an error that shows the message Operation not permitted, do you have a clue of how could i fix it?

  • Reply

    Shaun Drake

    Does this allow you to use the Kinect with the mac version of Skanect? My goal is to be making 3d scans. Thanks.

  • Reply

    Gilles

    hey Glenn,
    thanks a lot for your tutorial. It’s great !

  • Reply

    Idefi

    Thanks a lot!!! Your tutorial is very clear and very well detailed. I was successful in installing a Kinect XBOX 360 in a MacBook Air with OS X 10.11.4

  • Reply

    Lajos

    Hi. I have mac os x 10.10. I’ve tried to install the libtool but after typing “sudo port install libtool” it sais “Port libtool not found”. I couldn’t find a solution. Can you help me?

  • Reply

    Jong-won Lee

    I got stucked on Step 4.

    When I entered ‘sudo ./install.sh’, the error messages appeared.
    ” copying shared libraries…cp: /usr/lib/libOpenNI.dylib: Operation not permitted
    cp: /usr/lib/libOpenNI.jni.dylib: Operation not permitted
    cp: /usr/lib/libnimCodecs.dylib: Operation not permitted
    cp: /usr/lib/libnimMockNodes.dylib: Operation not permitted
    cp: /usr/lib/libnimRecorder.dylib: Operation not permitted”

    How can I fix this? Please help me.

  • Reply

    a_z5

    Thank you so much Glen, worked like a charm.

  • Reply

    Shane

    Hello Glen, I used the unarchiver method and this same thing happened. It automatically says sorry try again. Ive gone through many tutorials and libraries trying to get this to work.

    Shanes-MacBook-Pro:~ shane$ cd /Users/shane/Desktop/Kinect/OpenNI-Bin-Dev-MacOSX-v1.5.7.10
    Shanes-MacBook-Pro:OpenNI-Bin-Dev-MacOSX-v1.5.7.10 shane$ sudo ./install.sh
    Password:
    Sorry, try again.
    Password:
    Installing OpenNI
    ****************************

    copying shared libraries…cp: /usr/lib/libOpenNI.dylib: Operation not permitted
    cp: /usr/lib/libOpenNI.jni.dylib: Operation not permitted
    cp: /usr/lib/libnimCodecs.dylib: Operation not permitted
    cp: /usr/lib/libnimMockNodes.dylib: Operation not permitted
    cp: /usr/lib/libnimRecorder.dylib: Operation not permitted
    Shanes-MacBook-Pro:OpenNI-Bin-Dev-MacOSX-v1.5.7.10 shane

    If its easier you can shoot me an email @ shanegeisler@yahoo.com

    Thank you for the tutorial!

    • Reply

      Jackson Isaac

      Hi Shane,

      we need to modify the installation path in all the install.sh from “/usr/” to “/usr/local/” due to SIP.

  • Reply

    Bogdan Zanescu Constantin

    It worked perfect, thank you

  • Reply

    Pedro Mayorga

    in mac os sierra /usr is protected, so, it is necessary to modify every /usr to /usr/local within install.sh

  • Reply

    Cy Brg

    Great tutorial. Up and running in minutes on Yosemite!

  • Reply

    IOANNIS

    Hello
    Thank you very much for this tutorial. I have MAC OS sierra 10.12.1

    All this gonna work ?? i have to download the same versions for applications as you did or the latest versions ??

  • Reply

    Kud

    Hi Glen, thanks for the effort making this helpful tutorial. I have Kinect v2 (1520) and Siera OS, do you think will it also work if I follow same step on your tutorial.

  • Reply

    Jackson Isaac

    Hi,

    On Mac OS X El Capitan and newer we need to modify the installation path in all the install.sh from “/usr/” to “/usr/local/” due to SIP.

Leave a Reply to Jong-won Lee Cancel Reply

Your Comment