Personal tools
The Open Lighting Project has moved!

We've launched our new site at This wiki will remain and be updated with more technical information.

Difference between revisions of "Building OLA for Windows"


Jump to: navigation, search
(Install Dependencies)
(Install Dependencies)
Line 23: Line 23:
* . Note you need to install the .tar.gz as the zip just contains protoc (we need the libraries as well)
* . Note you need to install the .tar.gz as the zip just contains protoc (we need the libraries as well)
* , be sure to run configure with  ./configure --prefix=/mingw --includedir /mingw/include/ossp
*  (required for microhttpd)
*  (required for microhttpd)
*  (skip this for now - it's not building yet)
*  (skip this for now - it's not building yet)
== Install pkg-config ==
== Install pkg-config ==

Revision as of 11:41, 7 May 2011

This describes how to get OLA compiled for windows, it's a work in progress so it's unlikely to work as is. This tutorial uses gcc as the compiler, other compilers have not been tested.

Install Mingw, msys & build tools

Together MinGW & msys provide a unix-style shell environment & compiler suite for windows. Read the instructions at the MinGW site for more info. MinGW now provides an installer to get most of the system up and running quickly. Download the installer and make sure you select "C++ Compiler". "MSYS Basic System" & "MinGW Developer Toolkit" when prompted.

Once the installer has completed, open the msys shell (under Programs > MinGW) and install some additional packages:

$ mingw-get.exe install msys-automake msys-autoconf libtool

Install Git

Git is used to checkout (and commit) the ola sources. See, be sure to select "checkout as is, commit unix style" during the install otherwise you'll get autoconf errors.

Add the following line to your .bashrc file so that git can be used within msys:

PATH="$PATH:/c/Program Files/Git/bin"
alias git=git.exe

Install Dependencies

For each of these it should be as simple as downloading the package, placing it in C:\MinGW\msys\1.0\home\USER , un-taring the package and running ./configure , make & make install.

Install pkg-config

This is a bit of a pain - see MinGW FAQ . The packages can be found here. The easiest is to download the latest "All-in-one bundles" and extract it to C:\MinGW\msys\1.0 .

You also need to add

 export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

to your .bashrc file.

Build OLA

  • Do a git checkout of OLA
 $ git.exe clone
  • Run ./configure
 $ ./configure
  • Build
 $ make

Current TODO

  • Fix the Socket & SelectServer classes or replace them with whatever makes sense on windows
  • The USB Pro plugin needs a way to find devices, obviously /dev doesn't exist
  • The DMX USB requires libusb win32. Not sure what the status of this is