Personal tools
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.

Difference between revisions of "OLA on Linux"

From wiki.openlighting.org

Jump to: navigation, search
(Install libraries)
(better spacing)
Line 12: Line 12:
  
 
You need a couple of libraries installed for everything to work correctly. Some of these are available as packages in most distros but others need to be downloaded.
 
You need a couple of libraries installed for everything to work correctly. Some of these are available as packages in most distros but others need to be downloaded.
 +
  
 
First up we'll need '''microhttpd''' for the embedded web server (Note: you'll need version >= 0.4.0):
 
First up we'll need '''microhttpd''' for the embedded web server (Note: you'll need version >= 0.4.0):
 
    
 
    
 
-> [ftp://ftp.gnu.org/gnu/libmicrohttpd/ ftp://ftp.gnu.org/gnu/libmicrohttpd/]
 
-> [ftp://ftp.gnu.org/gnu/libmicrohttpd/ ftp://ftp.gnu.org/gnu/libmicrohttpd/]
 +
  
 
Then you will need '''libcppunit-dev''' and '''libcppunit'''.
 
Then you will need '''libcppunit-dev''' and '''libcppunit'''.
Line 22: Line 24:
  
 
   apt-get install libcppunit-dev libcppunit-1.12-1 uuid-dev
 
   apt-get install libcppunit-dev libcppunit-1.12-1 uuid-dev
 +
  
 
Next, you need the '''Protocol Buffers''' from Google (BSD license). Most likely, you will need to download and build them yourself:
 
Next, you need the '''Protocol Buffers''' from Google (BSD license). Most likely, you will need to download and build them yourself:
Line 29: Line 32:
 
Debian (and Ubuntu) users can, in some cases, use the following packets (not yet in stable):
 
Debian (and Ubuntu) users can, in some cases, use the following packets (not yet in stable):
 
libprotobuf2 (libprotobuf3), libprotobuf-dev, protobuf-compiler
 
libprotobuf2 (libprotobuf3), libprotobuf-dev, protobuf-compiler
 
  
  

Revision as of 01:52, 22 November 2009

Installing OLA on Linux From GIT/Archive

This describes how to get OLA working on a Linux system.

Checkout or Download an Archive

 git clone http://www.nomis52.net/git/lla

If you don't have it yet, install git using your distro's package manager.

Install libraries

You need a couple of libraries installed for everything to work correctly. Some of these are available as packages in most distros but others need to be downloaded.


First up we'll need microhttpd for the embedded web server (Note: you'll need version >= 0.4.0):

-> ftp://ftp.gnu.org/gnu/libmicrohttpd/


Then you will need libcppunit-dev and libcppunit.

Debian users can install them with apt:

 apt-get install libcppunit-dev libcppunit-1.12-1 uuid-dev


Next, you need the Protocol Buffers from Google (BSD license). Most likely, you will need to download and build them yourself:

-> http://code.google.com/p/protobuf/

Debian (and Ubuntu) users can, in some cases, use the following packets (not yet in stable): libprotobuf2 (libprotobuf3), libprotobuf-dev, protobuf-compiler


Then, build CTemplate (another Google goodie):

-> http://code.google.com/p/google-ctemplate/

Finally run ldconfig as root to pick up the new libraries

 ldconfig

Configure

If you checked out the sources from git, you'll need to run

 autoreconf -i

After that run

 ./configure

Building & Testing

Build

 make


If you get an error like the following:

/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.   -I/opt/local/var/macports/software/protobuf-cpp/2.0.3_0/opt/local/include/  -g -O2 -c -o ltdl.lo ltdl.c
./libtool: line 464: CDPATH: command not found
/Users/simonn/lighting/lla/libltdl/libtool: line 464: CDPATH: command not found
/Users/simonn/lighting/lla/libltdl/libtool: line 1142: func_opt_split: command not found
libtool: Version mismatch error.  This is libtool 2.2.6, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6
libtool: and run autoconf again.

Your system uses a different version of libtool. Run:

 libtoolize --ltdl -c -f

and then start from the autoreconf step again.

Run the tests

 make check

And install OLA

 sudo make install
 sudo ldconfig