The Open Lighting Project has moved!
We've launched our new site at www.openlighting.org. This wiki will remain and be updated with more technical information.
We've launched our new site at www.openlighting.org. This wiki will remain and be updated with more technical information.
Difference between revisions of "OLA on OS X"
From wiki.openlighting.org
(→Optionally install microhttpd and ctemplate) |
(→Do the usual steps) |
||
Line 39: | Line 39: | ||
make check | make check | ||
sudo make install | sudo make install | ||
+ | |||
+ | '''Note:''' On Mac I had to add #include <sys/socket.h> to include/lla/ExportMap.h before the line #include <microhttpd.h> otherwise it would not know about socklen_t |
Revision as of 14:15, 9 February 2009
This page describes how to get LLA 0.3 working on OS X.
Contents
Basic setup
Use Mac Ports to install stuff
$ port install pkgconfig protobuf-cpp cppunit unittest-cpp
Set some env vars
set $PATH to point to something sane (you should also make sure you point it at your ctemplate and libmicrohttpd)
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig export CPPFLAGS="-I/opt/local/var/macports/software/protobuf-cpp/2.0.3_0/opt/local/include/" export LDFLAGS="-L/opt/local/var/macports/software/protobuf-cpp/2.0.3_0/opt/local/lib/"
Optionally install microhttpd and ctemplate
If you want the http interface you need these
- http://www.gnu.org/software/libmicrohttpd/ (Currently you need to install libgcrypt too for this library to work)
sudo port install libgcrypt
Run autoreconf
If this is the first time run with -i to install the missing files
autoconf -i
Do the usual steps
./configure make make check sudo make install
Note: On Mac I had to add #include <sys/socket.h> to include/lla/ExportMap.h before the line #include <microhttpd.h> otherwise it would not know about socklen_t