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 FreeBSD"
From wiki.openlighting.org
(→OpenBSD: link to the bug) |
Peternewman (talk | contribs) m (→With OLA 0.9.x, we can build on OpenBSD 5.4 :): How to get libmicrohttpd) |
||
(20 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | Since version 0.8.22, OLA can run on FreeBSD. | + | Since version 0.8.22, OLA can run on FreeBSD (tested on 9.0). |
=Dependencies= | =Dependencies= | ||
Line 14: | Line 14: | ||
* pkg_add -r py27-protobuf (will install py27-setuptools) | * pkg_add -r py27-protobuf (will install py27-setuptools) | ||
+ | ==Quick start== | ||
+ | |||
+ | One-liner to install everything using the new pkgng in FreeBSD 10 | ||
+ | |||
+ | <code>pkg install bison pkgconf protobuf ossp-uuid cppunit libmicrohttpd python27 py27-protobuf autoconf automake libtool</code> | ||
+ | |||
+ | |||
+ | You need to use these flags : | ||
+ | |||
+ | <code>CPPFLAGS="-I/usr/local/include/" LDFLAGS="-L/usr/local/lib/" ./configure --enable-rdm-tests</code> | ||
+ | |||
+ | |||
+ | Then make and make install. | ||
==Packages== | ==Packages== | ||
Line 54: | Line 67: | ||
You can use the tarball or git to get the code. | You can use the tarball or git to get the code. | ||
− | Version >= 0.8.22 | + | --- |
+ | |||
+ | Version >= 0.8.22 or > 0.9.0 | ||
+ | |||
+ | See here what has been done: | ||
+ | |||
+ | http://forums.freebsd.org/showthread.php?t=33715 | ||
+ | |||
+ | --- | ||
+ | |||
+ | Code: | ||
− | + | https://github.com/OpenLightingProject/ola | |
You just need to run: | You just need to run: | ||
− | * $ ./configure (--enable-rdm-tests will need python) | + | * $ CPPFLAGS="-I/usr/local/include/" LDFLAGS="-L/usr/local/lib/" ./configure (--enable-rdm-tests will need python) |
* $ make | * $ make | ||
* # make install | * # make install | ||
− | |||
=Running OLA= | =Running OLA= | ||
Line 75: | Line 97: | ||
We don't forget these nice systems ! | We don't forget these nice systems ! | ||
+ | |||
+ | But you need to know that bsd is not like linux, each system has its kernel and userland. | ||
+ | |||
+ | So it could work on one system and not on another. | ||
+ | |||
==NetBSD== | ==NetBSD== | ||
− | You can build ola ( | + | You can build ola on NetBSD (5.x or 6.x) |
+ | |||
+ | (you need to get Python protobufs via pip if you want them for the RDM tests or similar): | ||
+ | |||
+ | |||
+ | For current release 6.1.3 : | ||
+ | |||
+ | <code>pkgin install bison pkg-config protobuf ossp-uuid cppunit libmicrohttpd ncurses autoconf automake libtool</code> | ||
+ | |||
+ | To install Python protobufs (ensure the time is correct): | ||
+ | pkgin install py27-pip-1.4 | ||
+ | |||
+ | pip install protobuf | ||
+ | some tools on a fresh install : | ||
+ | pkgin install nano screen wget git | ||
+ | |||
+ | |||
+ | $ env GIT_SSL_NO_VERIFY=true git clone https://github.com/OpenLightingProject/ola | ||
+ | |||
+ | <code>CPPFLAGS="-I/usr/pkg/include/" LDFLAGS="-L/usr/pkg/lib/" ./configure</code> | ||
+ | |||
+ | $ make | ||
+ | |||
+ | --- | ||
+ | |||
+ | For older releases : | ||
* ksh (Don't forget to switch to ksh !) | * ksh (Don't forget to switch to ksh !) | ||
− | * export PKG_PATH="http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/5.1/All/" | + | * export PKG_PATH="http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/5.1/All/" |
− | * pkg_add | + | or |
− | * pkg_add | + | * export PKG_PATH="http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/6.0/All/" |
− | + | ||
− | + | ||
+ | * pkg_add bison pkg-config protobuf ossp-uuid cppunit | ||
+ | * pkg_add libmicrohttpd (will install more dependencies) | ||
+ | |||
+ | * pkg_add ncurses (not enough, feel free to edit) | ||
+ | * pkg_add autoconf automake libtool | ||
+ | * pkg_add scmgit (to use git repo) | ||
− | * $ ./configure | + | |
+ | * $ ./configure | ||
* $ make | * $ make | ||
* # make install | * # make install | ||
+ | |||
+ | ==OpenBSD== | ||
− | ==OpenBSD== | + | ==== With OLA 0.9.x, we can build on OpenBSD 5.4 :) ==== |
+ | |||
+ | |||
+ | * export PKG_PATH="ftp://ftp.openbsd.org/pub/OpenBSD/5.4/packages/amd64/" | ||
+ | |||
+ | |||
+ | * pkg_add bison protobuf ossp-uuid cppunit | ||
+ | * pkg_add autoconf automake libtool git | ||
+ | |||
+ | To install Python protobufs (ensure the time is correct): | ||
+ | pkg_add py-pip | ||
+ | |||
+ | pip install protobuf | ||
+ | |||
+ | libmicrohttpd can be compiled and installed from source if desired. | ||
+ | |||
+ | * export AUTOCONF_VERSION=2.69 | ||
+ | * export AUTOMAKE_VERSION=1.13 | ||
+ | |||
+ | <code>CPPFLAGS="-I/usr/local/include/" LDFLAGS="-L/usr/local/lib/" ./configure</code> | ||
+ | |||
+ | * make | ||
+ | |||
− | + | With OLA 0.8.x, we had problems to build on OpenBSD (5.2) :/ | |
Because of this bug: | Because of this bug: | ||
Line 105: | Line 188: | ||
But you can try with: | But you can try with: | ||
− | * export PKG_PATH="ftp://ftp.openbsd.org/pub/OpenBSD/5. | + | * export PKG_PATH="ftp://ftp.openbsd.org/pub/OpenBSD/5.2/packages/i386/" |
* pkg_add bison protobuf ossp-uuid cppunit | * pkg_add bison protobuf ossp-uuid cppunit | ||
* pkg_add autoconf automake (it will tell you the versions) | * pkg_add autoconf automake (it will tell you the versions) | ||
− | * pkg_add autoconf-2.68 automake-1. | + | * pkg_add autoconf-2.68 automake-1.12p1 libtool |
* export AUTOCONF_VERSION=2.68 | * export AUTOCONF_VERSION=2.68 | ||
− | * export AUTOMAKE_VERSION=1. | + | * export AUTOMAKE_VERSION=1.12 |
+ | * hack config/ola.m4 if you want | ||
* autoreconf -fi | * autoreconf -fi | ||
++ | ++ |
Latest revision as of 10:43, 4 April 2014
Since version 0.8.22, OLA can run on FreeBSD (tested on 9.0).
Contents
Dependencies
- pkg_add -r bison (will install m4, libiconv, gettext)
- pkg_add -r pkg-config
- pkg_add -r protobuf
- pkg_add -r ossp-uuid
- pkg_add -r cppunit
- pkg_add -r libmicrohttpd
- pkg_add -r python27
- pkg_add -r py27-protobuf (will install py27-setuptools)
Quick start
One-liner to install everything using the new pkgng in FreeBSD 10
pkg install bison pkgconf protobuf ossp-uuid cppunit libmicrohttpd python27 py27-protobuf autoconf automake libtool
You need to use these flags :
CPPFLAGS="-I/usr/local/include/" LDFLAGS="-L/usr/local/lib/" ./configure --enable-rdm-tests
Then make and make install.
Packages
You can use this combo line:
- pkg_add -r bison pkg-config protobuf ossp-uuid cppunit libmicrohttpd python27 py27-protobuf
pkg_info (FreeBSD 9.0-RELEASE)
- bison-2.4.3,1 A parser generator from FSF, (mostly) compatible with Yacc
- cppunit-1.12.1 C++ port of the JUnit framework for unit testing
- gettext-0.18.1.1 GNU gettext package
- libiconv-1.13.1_1 A character set conversion library
- libmicrohttpd-0.9.15 C library for embedding HTTP server functionality
- m4-1.4.16,1 GNU m4
- ossp-uuid-1.6.2_1 ISO-C & Perl API and CLI for generating Universally Unique
- pkg-config-0.25_1 A utility to retrieve information about installed libraries
- protobuf-2.4.1 A data interchange format library
- py27-protobuf-2.4.1 Google protobuf Python Client Library
- py27-setuptools-0.6c11_1 Download, build, install, upgrade, and uninstall Python pac
- python27-2.7.2_3 An interpreted object-oriented programming language
Tools
If you want to run autoreconf (after git clone for example):
- pkg_add -r autoconf268 automake111 libtool
pkg_info
- autoconf-2.68 Automatically configure source code on many Un*x platforms
- automake-1.11.1 GNU Standards-compliant Makefile generator (1.11)
- libtool-2.4_1 Generic shared library support script
Building OLA
You can use the tarball or git to get the code.
---
Version >= 0.8.22 or > 0.9.0
See here what has been done:
http://forums.freebsd.org/showthread.php?t=33715
---
Code:
https://github.com/OpenLightingProject/ola
You just need to run:
- $ CPPFLAGS="-I/usr/local/include/" LDFLAGS="-L/usr/local/lib/" ./configure (--enable-rdm-tests will need python)
- $ make
- # make install
Running OLA
- $ olad -l3
Since you built with libmicrohttpd, you can use the web UI from http://127.0.0.1:9090
Other BSD
We don't forget these nice systems !
But you need to know that bsd is not like linux, each system has its kernel and userland.
So it could work on one system and not on another.
NetBSD
You can build ola on NetBSD (5.x or 6.x)
(you need to get Python protobufs via pip if you want them for the RDM tests or similar):
For current release 6.1.3 :
pkgin install bison pkg-config protobuf ossp-uuid cppunit libmicrohttpd ncurses autoconf automake libtool
To install Python protobufs (ensure the time is correct):
pkgin install py27-pip-1.4
pip install protobuf
some tools on a fresh install : pkgin install nano screen wget git
$ env GIT_SSL_NO_VERIFY=true git clone https://github.com/OpenLightingProject/ola
CPPFLAGS="-I/usr/pkg/include/" LDFLAGS="-L/usr/pkg/lib/" ./configure
$ make
---
For older releases :
- ksh (Don't forget to switch to ksh !)
- export PKG_PATH="http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/5.1/All/"
or
- export PKG_PATH="http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/6.0/All/"
- pkg_add bison pkg-config protobuf ossp-uuid cppunit
- pkg_add libmicrohttpd (will install more dependencies)
- pkg_add ncurses (not enough, feel free to edit)
- pkg_add autoconf automake libtool
- pkg_add scmgit (to use git repo)
- $ ./configure
- $ make
- # make install
OpenBSD
With OLA 0.9.x, we can build on OpenBSD 5.4 :)
- export PKG_PATH="ftp://ftp.openbsd.org/pub/OpenBSD/5.4/packages/amd64/"
- pkg_add bison protobuf ossp-uuid cppunit
- pkg_add autoconf automake libtool git
To install Python protobufs (ensure the time is correct):
pkg_add py-pip
pip install protobuf
libmicrohttpd can be compiled and installed from source if desired.
- export AUTOCONF_VERSION=2.69
- export AUTOMAKE_VERSION=1.13
CPPFLAGS="-I/usr/local/include/" LDFLAGS="-L/usr/local/lib/" ./configure
- make
With OLA 0.8.x, we had problems to build on OpenBSD (5.2) :/
Because of this bug:
http://code.google.com/p/protobuf/issues/detail?id=406
But you can try with:
- export PKG_PATH="ftp://ftp.openbsd.org/pub/OpenBSD/5.2/packages/i386/"
- pkg_add bison protobuf ossp-uuid cppunit
- pkg_add autoconf automake (it will tell you the versions)
- pkg_add autoconf-2.68 automake-1.12p1 libtool
- export AUTOCONF_VERSION=2.68
- export AUTOMAKE_VERSION=1.12
- hack config/ola.m4 if you want
- autoreconf -fi
++