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
(→Do the usual steps) |
(→Optionally install microhttpd and ctemplate) |
||
Line 23: | Line 23: | ||
If you want the http interface you need these | 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) | + | * http://www.gnu.org/software/libmicrohttpd/ [>= 0.4] (Currently you need to install libgcrypt too for this library to work) |
sudo port install libgcrypt | sudo port install libgcrypt | ||
or you can disable https support (which should work with LLA just fine) by adding "AC_DEFUN([AM_PATH_LIBGCRYPT],[:])" to configure.ac BEFORE running "autoreconf -fi" and then configuring libmicrohttpd without https support - "./configure --enable-https=no", deleting lines 242-247 from 'src/daemon/Makefile' because of a bug in the config script and deleting "MHD_get_connection_info" from 'src/daemon/EXPORT.sym' for the same reason. You will also need to remove all references to @LIBGCRYPT_CFLAGS@ from any Makefile (remembering to remove the \ from the privous line if there is one) | or you can disable https support (which should work with LLA just fine) by adding "AC_DEFUN([AM_PATH_LIBGCRYPT],[:])" to configure.ac BEFORE running "autoreconf -fi" and then configuring libmicrohttpd without https support - "./configure --enable-https=no", deleting lines 242-247 from 'src/daemon/Makefile' because of a bug in the config script and deleting "MHD_get_connection_info" from 'src/daemon/EXPORT.sym' for the same reason. You will also need to remove all references to @LIBGCRYPT_CFLAGS@ from any Makefile (remembering to remove the \ from the privous line if there is one) |
Revision as of 10:24, 13 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/ [>= 0.4] (Currently you need to install libgcrypt too for this library to work)
sudo port install libgcrypt
or you can disable https support (which should work with LLA just fine) by adding "AC_DEFUN([AM_PATH_LIBGCRYPT],[:])" to configure.ac BEFORE running "autoreconf -fi" and then configuring libmicrohttpd without https support - "./configure --enable-https=no", deleting lines 242-247 from 'src/daemon/Makefile' because of a bug in the config script and deleting "MHD_get_connection_info" from 'src/daemon/EXPORT.sym' for the same reason. You will also need to remove all references to @LIBGCRYPT_CFLAGS@ from any Makefile (remembering to remove the \ from the privous line if there is one)
- Make sure both of these are made AND installed before running "./configure" on LLA otherwise it will not detect the libraries and ignore all the HTTP server code
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