| 1 |
!!! The Windows port of OLA is work-in-progress !!! |
| 2 |
|
| 3 |
================== |
| 4 |
Basic Requirements |
| 5 |
================== |
| 6 |
|
| 7 |
To build OLA on Windows with MinGW, you need an up-to-date MinGW installation. The MinGW project provides a package manager (MinGW Installation Manager, available at http://sourceforge.net/projects/mingw/files/Installer/). |
| 8 |
|
| 9 |
You need to select: |
| 10 |
- mingw-developer-toolkit |
| 11 |
- mingw32-base |
| 12 |
- mingw32-gcc-g++ |
| 13 |
- mingw32-pthreads-w32 |
| 14 |
- msys-base |
| 15 |
- msys-coreutils |
| 16 |
- msys-wget |
| 17 |
|
| 18 |
!!! TODO: Check and update the list above !!! |
| 19 |
|
| 20 |
Open a MSYS shell an edit ~/.bashrc. Add the following lines: |
| 21 |
|
| 22 |
|
| 23 |
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig |
| 24 |
export CPPFLAGS="-I/usr/local/include" |
| 25 |
export LDFLAGS="-L/usr/local/lib" |
| 26 |
|
| 27 |
|
| 28 |
In addition, edit ~/.profile and add |
| 29 |
|
| 30 |
|
| 31 |
[ -f ~/.bashrc ] && . ~/.bashrc |
| 32 |
|
| 33 |
|
| 34 |
If you haven't configured your MSYS fstab yet, do that as well. See http://www.mingw.org/wiki/Getting_Started for instructions. |
| 35 |
|
| 36 |
============================== |
| 37 |
Additional tools and libraries |
| 38 |
============================== |
| 39 |
|
| 40 |
pkg-config |
| 41 |
---------- |
| 42 |
- Download pkg-config-lite from http://sourceforge.net/projects/pkgconfiglite/files/ |
| 43 |
- Extract to MinGW directory (bin-win32 package) or build it from the tarball |
| 44 |
|
| 45 |
Python (optional) |
| 46 |
----------------- |
| 47 |
- Tested version: 2.7 series |
| 48 |
- Download and install Python for Windows from https://www.python.org/downloads/ |
| 49 |
|
| 50 |
msys-git |
| 51 |
-------- |
| 52 |
- Download msysgit from https://msysgit.github.com/ |
| 53 |
- Install and make sure to select "Check-out as is, commit UNIX-style" |
| 54 |
|
| 55 |
libuuid |
| 56 |
------- |
| 57 |
- Download and extract the latest libuuid tarball from https://code.google.com/p/gnome-build-stage-1/downloads/list |
| 58 |
- Configure, compile and install it using the MinGW MSYS shell with option --prefix=/c/MinGW |
| 59 |
|
| 60 |
protobuf |
| 61 |
-------- |
| 62 |
- Download and extract the latest protobuf tarball from https://github.com/google/protobuf |
| 63 |
- Configure, compile and install it using the MinGW MSYS shell with option --prefix=/c/MinGW |
| 64 |
- if you want to use the OLA Python api, install the protobuf Python bindings from the 'python' subdirectory |
| 65 |
|
| 66 |
cppunit |
| 67 |
------- |
| 68 |
- Download and extract the latest cppunit tarball from http://sourceforge.net/projects/cppunit/files/cppunit/ |
| 69 |
- Configure, compile and install it using the MinGW MSYS shell with option --prefix=/c/MinGW |
| 70 |
|
| 71 |
libmicrohttpd |
| 72 |
------------- |
| 73 |
- Download and extract the latest libmicrohttpd tarball from http://ftp.gnu.org/gnu/libmicrohttpd/ |
| 74 |
- Configure, compile and install it using the MinGW MSYS shell with option --prefix=/c/MinGW (and --disable-https if you don't want all the crypto stuff) |
| 75 |
|
| 76 |
liblo (optional) |
| 77 |
---------------- |
| 78 |
- Download and extract the latest version of liblo from http://liblo.sourceforge.net/ |
| 79 |
- Configure, compile and install it using the MinGW MSYS shell with option --prefix=/c/MinGW |
| 80 |
|
| 81 |
libusb (optional) |
| 82 |
---------------- |
| 83 |
- Download and extract the latest version of libusb from http://libusb.info/ |
| 84 |
- Configure, compile and install it using the MinGW MSYS shell with option --prefix=/c/MinGW |
| 85 |
|
| 86 |
libftdi1 (optional) |
| 87 |
---------------- |
| 88 |
- Download and install libftdi1 from https://www.intra2net.com/en/developer/libftdi/ |
| 89 |
- Alternatively download a pre-compiled version and install from https://code.google.com/archive/p/picusb/downloads |
| 90 |
- Use the Zadig tool from https://sourceforge.net/projects/libwdi/files/zadig/ to install the libusbK for each FTDI device |
| 91 |
|
| 92 |
============ |
| 93 |
Building OLA |
| 94 |
============ |
| 95 |
|
| 96 |
* cd ~/your/development/directory |
| 97 |
* git clone https://github.com/OpenLightingProject/ola.git ola |
| 98 |
* cd ola |
| 99 |
* autoreconf -i -f |
| 100 |
* ./configure --enable-python-libs --disable-all-plugins --enable-artnet --enable-dummy --enable-espnet --enable-ftdidmx --enable-kinet --enable-osc --enable-pathport --enable-sandnet --enable-shownet --enable-usbdmx |
| 101 |
* make |
| 102 |
* make install |
| 103 |
|
| 104 |
!!! TODO: Reduce the number of disabled features !!! |