CHAPTER 1 INTRODUCING THE KINECT
3
Listing 1-1. Git Commands for Pulling the Source Code
C:\> mkdir libfreenect
C:\> cd libfreenect
C:\libfreenect> git clone https://github.com/OpenKinect/libfreenect.git (This will clone into
a new libfreenect directory)
C:\libfreenect> cd libfreenect
C:\libfreenect\libfreenect> git branch –track unstable origin/unstable
3. There are three major dependencies that must be installed for libfreenect to
function: libusb-win32, pthreads-win32, and GLUT. Some of the options you
select in the next section are dependent on your choice of compiler.
a. Download libusb-win32 from http://sourceforge.net/projects/libusb-
win32/.
b. Extract and move the resulting folder into /libfreenect.
c. Download pthreads-win32 from http://sourceware.org/pthreads-win32/.
Find the most recent candidate with release.exe at the end.
d. Extract and store the folder in /libfreenect. If you’re using Microsoft Visual
Studio 2010, copy /Pre-built.2/lib/pthreadVC2.dll to /Windows/System32/. If
using MinGW, copy /Pre-built.2/lib/pthreadGC2.dll to /Windows/System32/
instead.
e. Download GLUT from http://www.xmission.com/~nate/glut.html. Find the
most recent release ending in “-bin.zip”.
f. Extract and store the resulting folder in /libfreenect.
g. Copy glut32.dll to /Windows/System32/. If you’re using Microsoft Visual
Studio 2010, copy glut.h to the /include/GL folder in your Visual Studio tree
and glut32.lib library to /lib in the same tree. If the GL folder does not exist,
create it. However, if you’re using MinGW, copy glut.h to /include/GL folder
in the MinGW root directory.
4. All of the dependencies are in place! Now we can install the low-level Kinect
device driver.
a. Plug in yo
ur Kinect
. After a quick search for drivers, your system should
complain that it cannot find the correct drivers, and the LED on the Kinect
itself will not light. This is normal.
b. Open Device Manager. Start Control Panel Hardware and Sound Device
Manager.
c. Double-click Xbox NUI Motor. Click Update Driver in the new window that
appears.
d. Select “Browse my computer for driver software”, and browse to
/libfreenect/platform/inf/xbox nui motor/.
e. After installation, the LED on the Kinect should be blinking green. Repeat steps
3 and 4 for Xbox NUI Camera and Xbox NUI Audio.
评论1
最新资源