Building libfreenect with patched libusb under Mac OS X
You need:
- macports
- The following installed macports:
- git-core
- cmake
- libtool
- libusb-devel
1. Get sources:
- libfreenect:
- git clone https://github.com/OpenKinect/libfreenect.git
- libusb:
- git clone git://git.libusb.org/libusb.git
2. Apply patch and build libusb:
- cd path/to/libusb
- ./autogen.sh
- patch -p1 < path/to/libfreenect/platform/osx/libusb-osx-kinect.diff
- ./configure LDFLAGS=’-framework IOKit -framework CoreFoundation’
- make
- sudo make install
3. Start building libfreenect:
- cd path/to/libfreenect
- mkdir build
- cd build
- ccmake ..
- With the following changes:
- LIBUSB_1_INCLUDE_DIR: /usr/local/include
- LIBUSB_1_LIBRARY: /usr/local/lib/libusb-1.0.dylib
- press ‘c’ and afterwards ‘g’ to generate and exit
- cmake ..
- make
- sudo make install
Advertisement