Select Page

This is with XCode 4.6.2 on Mac OS X 10.8

If you use our favorite package manager getting up and running with libfreenect  is almost straightforward :).

1) Be sure homebrew is installed see

2) Go to

cd /usr/local/Library/Formula

3) Get the formulas

curl --insecure -O ""
curl --insecure -O ""

3) Try installing it with

brew install libfreenect

If this works you are fine and you can say thank you to the Documentation or several fellow posters out there.

If however it fails like in my case with an error like You should use the ‘AC_CONFIG_HEADERS’ macro instead.

Do the following

4) Edit the formula libusb-freenect.rb with your favorite editor in my case

subl libusb-freenect.rb

then update two lines in the install method thanks to
so it should look like this.

require 'formula'

class LibusbFreenect <Formula
  url ';a=snapshot;h=7da756e09fd97efad2b35b5cee0e2b2550aac2cb;sf=tgz;js=1'
  homepage ''
  version "7da756e09fd97efad2b3"
  md5 ''

  depends_on 'libtool'
  depends_on 'automake'

  def patches
    # patches libusb to work with libfreenect

  def install
    system "./"
    system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking", "LDFLAGS=-framework IOKit -framework CoreFoundation"
    system "make install"

After that run brew install  again and you should be up and running check with glview .

Hope that helps