-
-
Save theleoborges/2549670 to your computer and use it in GitHub Desktop.
xcode jpeg tiff dylib fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install ZeroMQ | |
sudo brew install zmq | |
easy_install pyzmq | |
[0] http://www.zeromq.org/bindings:python | |
# Install OpenCV | |
sudo brew install opencv | |
# Install libusb | |
sudo brew install libusb | |
# Install libfreenect | |
cd /usr/local/Library/Formula | |
sudo curl --insecure -O "https://github.com/OpenKinect/libfreenect/raw/master/platform/osx/homebrew/libfreenect.rb" | |
sudo curl --insecure -O "https://github.com/OpenKinect/libfreenect/raw/master/platform/osx/homebrew/libusb-freenect.rb" | |
sudo brew install libfreenect | |
[0] http://openkinect.org/wiki/Getting_Started#Get_the_formulas | |
# Fix libJPEG: | |
dyld: Symbol not found: __cg_jpeg_resync_to_restart | |
Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib | |
Expected in: /usr/local/lib/libJPEG.dylib | |
in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib | |
Trace/BPT trap | |
sudo cp /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Resources/libJPEG.dylib /usr/local/lib/libJPEG.dylib | |
# Fix libTIFF | |
dyld: Symbol not found: __cg_TIFFClientOpen | |
Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO | |
Expected in: /usr/local/lib/libTIFF.dylib | |
in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO | |
Trace/BPT trap | |
sudo cp /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Resources/libTIFF.dylib /usr/local/lib/ | |
# Build ocv_freenect | |
cd depthjs/cv | |
make | |
# Install DepthJS chrome extension | |
Type chrome://extensions, expand Developer mode click “Load unpacked extension” and select the "depthjs/chrome-extension" folder. | |
# Start the backend | |
Tornado/ZMQ backend: | |
python depthjs/backend/backend.py | |
OpenCV/Freenect: | |
./depthjs/cv/ocv_freenect | |
# Load the extension | |
In chrome://extensions/, select the background.html link in the DepthJS section. Select the Javascript console, you should see events streaming in. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment