Saturday, November 19, 2011

Openkinect (libfreenect / freenect) on Ubuntu 11.10 (Oneiric Ocelot)

Finding a straight forward how-to for Oneiric and freenect was a bit troublesome, so I've documented the steps here

Install the packages needed to build libfreenect, and the base libraries needed to run

sudo apt-get install git-core cmake freeglut3-dev pkg-config build-essential libxmu-dev libxi-dev libusb-1.0-0-dev
Clone the Git Repository, build and install
git clone git://github.com/OpenKinect/libfreenect.git
cd libfreenect
mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig /usr/local/lib64/
Launch the app
sudo glview
- push 'w' to move tilt up, push 's' to tilt down, push f to change the view.


Anomalies I've noticed:

  • Despite attempting to implementing the directions on how to add users to the video group, glview still needed to be launched as root (sudo glview).
  • Running freenect-demos prompts for an install of freenect-demos, yet after installing, it's not still not recognized as being installed.
  • apt-get install freenect doesn't work
  • freenect-glview command not found

8 comments:

  1. Hello Jason

    I have done all of these steps and yet I get
    Kinect camera test
    Number of devices found: 0
    when I run sudo glview
    Do you know what the problem could be?

    Hemanth

    ReplyDelete
    Replies
    1. Sorry for the late reply, my day job got in the way of everything (was super cool though).

      run the program as root.

      Delete
    2. Jason, hi!

      they are already running the program as ROOT with: "sudo glview"

      do we have to install something more like the primesense driver??

      Delete
    3. or what else do u mean, when said: "run the program as root."

      as far as I know just with "sudo" at the begining was enough

      Delete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Kinect camera test
    Number of devices found: 0


    any solution?

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete