|
| 1 | +libfreenect |
| 2 | +=========== |
| 3 | + |
| 4 | +libfreenect is a userspace driver for the Microsoft Kinect. |
| 5 | +It runs on \*nix, OSX, and Windows and supports |
| 6 | + |
| 7 | +- RGB and Depth Images |
| 8 | +- Motors |
| 9 | +- Accelerometer |
| 10 | +- LED |
| 11 | + |
| 12 | +Audio is a work in progress. |
| 13 | + |
| 14 | + |
| 15 | +# Build Guide |
| 16 | + |
| 17 | +To build libfreenect, you'll need |
| 18 | + |
| 19 | +- [libusb](http://libusb.info/) >= 1.0.13 |
| 20 | +- [CMake](http://www.cmake.org/) >= 2.6 |
| 21 | + |
| 22 | +For the examples, you'll need |
| 23 | + |
| 24 | +- OpenGL (included with OSX) |
| 25 | +- glut (included with OSX) |
| 26 | +- [pthreads-win32](http://sourceforge.net/projects/pthreads4w/) (Windows) |
| 27 | + |
| 28 | +## Fetch & Build |
| 29 | + |
| 30 | + git clone https://github.com/OpenKinect/libfreenect |
| 31 | + cd libfreenect |
| 32 | + mkdir build |
| 33 | + cd build |
| 34 | + cmake .. |
| 35 | + cmake --build . |
| 36 | + |
| 37 | +## OSX |
| 38 | + |
| 39 | +If you don't have a package manager, install [Homebrew](http://brew.sh/). |
| 40 | +For a manual build, see [the wiki](http://openkinect.org/wiki/Getting_Started#Manual_Build_under_OSX). |
| 41 | + |
| 42 | +### Homebrew |
| 43 | + |
| 44 | + brew install libfreenect |
| 45 | + # or get the very latest: |
| 46 | + # brew install --HEAD libfreenect |
| 47 | + |
| 48 | +### MacPorts |
| 49 | + |
| 50 | + sudo port install git-core cmake libusb libtool |
| 51 | + # GOTO: Fetch & Build |
| 52 | + |
| 53 | +## Linux |
| 54 | + |
| 55 | +For a manual build, see [the wiki](http://openkinect.org/wiki/Getting_Started#Manual_Build_on_Linux). |
| 56 | + |
| 57 | +### Ubuntu/Debian/Mint |
| 58 | + |
| 59 | +The version packaged in Ubuntu may be very old. |
| 60 | +To install newer packaged builds, see [the wiki](http://openkinect.org/wiki/Getting_Started#Ubuntu.2FDebian). |
| 61 | +Continue with this section for a manual build. |
| 62 | + |
| 63 | + sudo apt-get install git-core cmake pkg-config build-essential libusb-1.0-0-dev |
| 64 | + sudo adduser $USER video |
| 65 | + sudo adduser $USER plugdev # necessary? |
| 66 | + |
| 67 | + # only if you are building the examples: |
| 68 | + sudo apt-get install libglut3-dev libxmu-dev libxi-dev |
| 69 | + |
| 70 | + # GOTO: Fetch & Build |
| 71 | + |
| 72 | +There is also a [debian branch](https://github.com/OpenKinect/libfreenect/tree/debian) for packaging purposes. |
| 73 | + |
| 74 | +### Gentoo Linux |
| 75 | + |
| 76 | +There is a live ebuild for your convenience in [platform/linux/portage/dev-libs/libfreenect/](https://github.com/OpenKinect/libfreenect/tree/master/platform/linux/portage/dev-libs/libfreenect). |
| 77 | + |
| 78 | +### Arch Linux |
| 79 | + |
| 80 | +There is a [libfreenect-git](https://aur.archlinux.org/packages/libfreenect-git/) PKGBUILD in the AUR. |
| 81 | + |
| 82 | + |
| 83 | +## Windows |
| 84 | + |
| 85 | +The inf files in [platform/windows/](https://github.com/OpenKinect/libfreenect/tree/master/platform/windows) may be used for installing the device. |
| 86 | +Follow **Fetch & Build** or use Github and CMake GUI tools. |
| 87 | +You may need to supply paths to CMake so it can find dependencies. |
| 88 | +For example: |
| 89 | + |
| 90 | + cmake .. -DLIBUSB_1_INCLUDE_DIR="C:\path\to\libusb\include" -DLIBUSB_1_LIBRARY="C:\path\to\libusb\libusb.lib" |
| 91 | + |
| 92 | + |
| 93 | +# Wrappers |
| 94 | + |
| 95 | +Interfaces to various languages are provided in [wrappers/](https://github.com/OpenKinect/libfreenect/tree/master/wrappers). |
| 96 | +Wrappers are not guaranteed to be API stable or up to date. |
| 97 | + |
| 98 | +- C (using a synchronous API) |
| 99 | +- C++ |
| 100 | +- C# |
| 101 | +- python |
| 102 | +- ruby |
| 103 | +- actionscript |
| 104 | +- Java (JNA) |
| 105 | + |
| 106 | + |
| 107 | +# Maintainers |
| 108 | + |
| 109 | +Ongoing Development and Maintenance by the OpenKinect Community |
| 110 | + |
| 111 | +http://www.openkinect.org |
| 112 | + |
| 113 | +- Original Code and Engineering: Hector Martin (marcan) |
| 114 | +- Community Lead: Josh Blake (JoshB) |
| 115 | +- Integration: Kyle Machulis (qDot) |
| 116 | + |
| 117 | + |
| 118 | +# License |
| 119 | + |
| 120 | +The libfreenect project is covered under a dual Apache v2/GPL v2 |
| 121 | +license. The licensing criteria are listed below, as well as at the |
| 122 | +top of each source file in the repo. |
| 123 | + |
| 124 | +``` |
| 125 | +This file is part of the OpenKinect Project. http://www.openkinect.org |
| 126 | +
|
| 127 | +Copyright (c) 2010 individual OpenKinect contributors. See the CONTRIB |
| 128 | +file for details. |
| 129 | +
|
| 130 | +This code is licensed to you under the terms of the Apache License, |
| 131 | +version 2.0, or, at your option, the terms of the GNU General Public |
| 132 | +License, version 2.0. See the APACHE20 and GPL2 files for the text of |
| 133 | +the licenses, or the following URLs: |
| 134 | +http://www.apache.org/licenses/LICENSE-2.0 |
| 135 | +http://www.gnu.org/licenses/gpl-2.0.txt |
| 136 | +
|
| 137 | +If you redistribute this file in source form, modified or unmodified, |
| 138 | +you may: |
| 139 | +
|
| 140 | +- Leave this header intact and distribute it under the same terms, |
| 141 | + accompanying it with the APACHE20 and GPL2 files, or |
| 142 | +- Delete the Apache 2.0 clause and accompany it with the GPL2 file, or |
| 143 | +- Delete the GPL v2 clause and accompany it with the APACHE20 file |
| 144 | +
|
| 145 | +In all cases you must keep the copyright notice intact and include a |
| 146 | +copy of the CONTRIB file. |
| 147 | + |
| 148 | +Binary distributions must follow the binary distribution requirements |
| 149 | +of either License. |
| 150 | +``` |
| 151 | + |
| 152 | + |
| 153 | +# More Information |
| 154 | + |
| 155 | +Information about the OpenKinect project can be found at |
| 156 | + |
| 157 | +http://www.openkinect.org |
| 158 | + |
| 159 | +For questions, support, and discussion, check out the google groups |
| 160 | +mailing list at |
| 161 | + |
| 162 | +http://groups.google.com/group/openkinect |
| 163 | + |
| 164 | +Or the IRC channel at |
| 165 | + |
| 166 | +\#openkinect on Freenode |
| 167 | + |
| 168 | +We are also on twitter at |
| 169 | + |
| 170 | +http://twitter.com/openkinect |
0 commit comments