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 "Libartnet on Windows"
From wiki.openlighting.org
(→Compile Libartnet) |
|||
Line 61: | Line 61: | ||
$ cd libartnet | $ cd libartnet | ||
+ | $ autoreconf -i -f | ||
+ | $ ./configure --prefix=/c/MinGW/ && make && make install | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
AC_PROG_LIBTOOL macro and -no-undefined flag cause libartnet to build as DLL | AC_PROG_LIBTOOL macro and -no-undefined flag cause libartnet to build as DLL |
Revision as of 17:24, 1 July 2009
Written by sl1200mk2 2009/07/01. (nicole-banana.com)
This HOWTO outlines a method for compiling libartnet on Windows using MinGW to produce the libartnet-1.dll.
Install Mingw, msys & build tools
The instructions at http://www.mingw.org/wiki/MSYS are very helpful.
- Install mingw and msys
- Launch the msys shell
- Unpack autoconf, automake and libtool to a directory of your choice.
- Install each of them with the following command:
$ ./configure --prefix=/mingw && make && make install
- Update PKG_CONFIG_PATH
As all the libraries will be installed in /mingw, PKG_CONFIG_PATH must be set.
Open the file /etc/profile (C:\msys\1.0\etc\profile) with your favorite editor (make sure it uses LF line endings) and add:
PKG_CONFIG_PATH="/mingw/lib/pkgconfig"
You might also want to set CFLAGS. Safe options for MinGW are:
CFLAGS="-pipe -O2 -mms-bitfields -march=i686"
just before
export HOME LOGNAME MSYSTEM HISTFILE
and modify that line by adding the variables:
export HOME LOGNAME MSYSTEM HISTFILE CFLAGS PKG_CONFIG_PATH
Now restart MSYS. You should now be able to use MSYS without problems.
This is the biggest part of the job.
Install Git
See http://code.google.com/p/msysgit/, be sure to select "unix style carriage returns" otherwise you'll get autoconf errors.
Download Libartnet
Grab the libarnet sources (via the git shell or the git UI)
$ git clone http://www.nomis52.net/git/libartnet
Compile Libartnet
$ cd libartnet $ autoreconf -i -f $ ./configure --prefix=/c/MinGW/ && make && make install
AC_PROG_LIBTOOL macro and -no-undefined flag cause libartnet to build as DLL