Skip to content

Commit a6770bd

Browse files
committed
Merge pull request #328 from xlz/macosx-docs
Mac OS X docs update
2 parents 9159a41 + 8483bf8 commit a6770bd

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

README.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,17 +146,24 @@ Then you can run the program with `.\bin\Protonect.exe`. If DLLs are missing, yo
146146

147147
### Mac OSX
148148

149+
Use your favorite package managers (brew, ports, etc.)
150+
149151
1. ``cd`` into a directory where you want to keep libfreenect2 stuff in
150-
1. Install opencv and git via brew (or your own favorite package manager, ie ports)
152+
1. Make sure these build tools are available: wget, git, cmake, pkg-config, automake, autoconf, libtool. Xcode may provide some of them. Install the rest via package managers.
153+
1. Install dependencies: OpenCV, TurboJPEG, GLFW.
151154

152155
```
153156
brew update
154157
brew tap homebrew/science
155-
brew install opencv git nasm wget jpeg-turbo
158+
brew install opencv jpeg-turbo
156159
brew tap homebrew/versions
157160
brew install glfw3
158161
```
159162

163+
Do not install libusb via package managers for libfreenect2. libfreenect2 includes an unreleased local version of libusb with USB3 specific patches. libfreenect2's libusb should still work fine in presence of a global version libusb.
164+
165+
It is not recommended to build TurboJPEG from source, which produces corrupted results on Mac OSX according to reports. Install TurboJPEG binary only from package managers.
166+
160167
1. Download the libfreenect2 repository
161168

162169
```
@@ -174,8 +181,10 @@ sh ./depends/install_mac.sh
174181

175182
```
176183
cd ./examples/protonect/
177-
cmake CMakeLists.txt
178-
make && make install
184+
mkdir build && cd build
185+
cmake ..
186+
make
187+
make install
179188
```
180189

181190
1. Run the program
@@ -213,8 +222,10 @@ sudo dpkg -i libglfw3*_3.0.4-1_*.deb # Ubuntu 14.04 only
213222

214223
```
215224
cd ../examples/protonect/
216-
cmake CMakeLists.txt
217-
make && sudo make install
225+
mkdir build && cd build
226+
cmake ..
227+
make
228+
sudo make install
218229
```
219230

220231
1. Run the program

0 commit comments

Comments
 (0)