Skip to content

Instantly share code, notes, and snippets.

@wedesoft
Created November 18, 2011 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wedesoft/1376778 to your computer and use it in GitHub Desktop.
Save wedesoft/1376778 to your computer and use it in GitHub Desktop.
Installation information for hornetseye-kinect, hornetseye-xorg, and hornetseye-frame, multiarray, and malloc on Mac OS X
Regarding the installation, the Ruby Gems hornetseye-kinect,
hornetseye-frame, multiarray, and malloc are required [1]. It is also
recommended to install hornetseye-xorg for displaying windows with Ruby.
XCode and Ruby already were installed. There was an issue with Rubygems
though [2].
One needs to install MacPorts [3] and configure it to build universal
binaries [4].
[5] explains how to install git, cmake, and libfreenect. Note that you
need to build universal binaries of libfreenect according to [6]. Also libfreenect
requires the jpeg libraries to be installed:
sudo port install jpeg
Unfortunately FFmpeg 0.7.8 is required, because of the software scaling
library (libswscale). FFmpeg requires yasm:
sudo port install yasm
One needs to first configure and compile it [7] (it
is not necessary to compile all the dependencies). I think I used
"./configure --enable-shared" so that it creates shared libraries (*.dylib
files). Use "make install" to install the compiled binaries to
/usr/local/bin and /usr/local/lib:
./configure --enable-shared
make
sudo make install
Then one needs to cross-compile FFmpeg for 32 bit [8]. I.e. unpack it
again and
./configure --extra-cflags="-arch i386" --extra-ldflags='-arch i386' --arch=x86_32 --target-os=darwin --enable-cross-compile --enable-shared
make
Then one needs to use lipo according to [7] to create universal binaries
of libswscale, libavformat, libavdevice, libavfilter, ffmpeg, and
ffserver. Then overwrite the installed binaries with those.
I installed X11 with the help of MacPorts. I think, I ended up using the
following command line:
sudo port install xorg-server-devel xpm mesa
Also Boost is required:
sudo port install boost
It is necessary to start X11 manually [9]. Otherwise X11-applications will
block and wait forever. Now it should be possible to install the Ruby extensions:
export C_INCLUDE_PATH=/usr/local/include:/opt/local/include
export CPLUS_INCLUDE_PATH=/usr/local/include:/opt/local/include
export LIBRARY_PATH=/usr/local/lib:/opt/local/lib
git clone git://github.com/wedesoft/malloc.git
cd malloc
rake
sudo rake install
cd ..
git clone git://github.com/wedesoft/hornetseye-frame.git
cd hornetseye-frame
rake
sudo rake install
cd ..
git clone git://github.com/wedesoft/hornetseye-kinect.git
cd hornetseye-kinect
rake
sudo rake install
cd ..
git clone git://github.com/wedesoft/hornetseye-ffmpeg.git
cd hornetseye-ffmpeg
rake
sudo rake install
cd ..
git clone git://github.com/wedesoft/hornetseye-xorg.git
cd hornetseye-xorg
rake
sudo rake install
cd ..
[1] http://www.wedesoft.demon.co.uk/hornetseye-api/file.Installation.html
[2] http://handcraftsman.wordpress.com/2010/07/19/resolving-zlib-gzipfile-error-not-in-gzip-format/
[3] http://www.macports.org/install.php
[4] https://trac.macports.org/wiki/howto/buildUniversal
[5] http://kinect.dashhacks.com/kinect-guides/12-17-10/install-openkinect-using-libfreenect-and-libusb-mac-osx
[6] http://www.cmake.org/Wiki/CMake_FAQ#How_do_I_build_universal_binaries_on_Mac_OS_X.3F
[7] http://jerome.ajot.net/ffmpeg/
[8] http://libav-users.943685.n4.nabble.com/Building-ffmpeg-on-Mac-OS-10-6-can-t-get-32-bit-td2229512.html
[9] http://guide.macports.org/#installing.x11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment