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 "Building OLA"

From wiki.openlighting.org

Jump to: navigation, search
(Installed Dependencies)
Line 17: Line 17:
  
 
you'll need to install XML::Simple (e.g. apt-get install libxml-simple-perl)
 
you'll need to install XML::Simple (e.g. apt-get install libxml-simple-perl)
 +
 +
 +
You may also install autoconf, automake and libtool (sudo apt-get install autoconf automake libtool).
 +
 +
In some systems like Ubuntu, default shell has been replaced by Dash. The reconf script needs bash (as it uses popd and pushd). So if you encounter problems while executing the reconf script, you may edit it and replace /bin/sh by /bin/bash in the first line.
  
 
== Download & Extract ==
 
== Download & Extract ==

Revision as of 11:34, 28 December 2007

Sometimes you'll need to build LLA from the sources rather than using the pre-built .deb. For example on non-debian systems or if you want to use the LLA-Dmx4Linux plugin.

See also: Building LLA for OS X

Installed Dependencies

If you're building from the git version you'll need the perl Template module installed. Run the following:

perl -e "use Template"

If you get an error you'll need to download and install Template.pm (or apt-get install libtemplate-perl)


If, while compiling, you get an error that looks like

 Can't locate XML/Simple.pm in @INC

you'll need to install XML::Simple (e.g. apt-get install libxml-simple-perl)


You may also install autoconf, automake and libtool (sudo apt-get install autoconf automake libtool).

In some systems like Ubuntu, default shell has been replaced by Dash. The reconf script needs bash (as it uses popd and pushd). So if you encounter problems while executing the reconf script, you may edit it and replace /bin/sh by /bin/bash in the first line.

Download & Extract

Either download the latest archive or grab the sources via git:

wget http://www.nomis52.net/data/sources/lla/lla-latest.tar.gz
tar -zxf lla-latest.tar.gz

or

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

Build

If you downloaded an archive you can skip the reconf step, otherwise run reconf which will also auto-generate parts of the code:

./reconf
Generating source files...
Done lla-UsbPro
Done lla-ArtNet
Running autotools
+ aclocal -I config
+ autoconf
+ autoheader
+ automake -a
+ exit

Then run ./configure and check which plugins will be built:

./configure
...
checking for artnet_new in -lartnet... yes
checking for DMXdev in -ldmx4linux... no
checking for espnet_new in -lespnet... yes
checking for shownet_new in -lshownet... no
checking for sandnet_new in -lsandnet... yes
checking for pathport_new in -lpathport... yes

In this case we're not going to build the shownet and dmx4linux plugins as we don't have the necessary libraries installed.

Finally run make:

make

Install

(become root)

make install

Test

Check that llad runs:

llad -d 3 -f -s