Building Solarpowerlog under Windows
Posted by coldtobi | 25 Jun, 2009, 21:06
Here's a short how-to to build solarpowerlog for win32, using cygwin as emulation layer.
1. Get cygwin (http://www.cygwin.com) and install (with their dependencies...)
- autoconf
- automake
- g++
- pkg-config
- make
- phyton
- libtool (maybe uneeded.)
- phyton
2. Get the sources for
- libconfig++ http://www.hyperrealm.com/libconfig/
Note: Version 1.3.2 -- if you see a version 1.2 you found the wrong project)
- libboost (http://www.boost.org/)
- (.. and of course solarpowerlog)
Building the libraries:
Use a bash shell for the following (the windows command shell is unsuitable)
Untar archives to for example /cygdrive/c/src (avoid spaces in dir names!)
eg. tar xzf libconfig-1.3.2.tar.gz
libconfig:
cd libconfig-<directory>
./configure --libdir=/usr/lib
make
make install
libboost:
cd boost_1_39_0
./bootstrap.sh
./bjam install –-prefix=/usr/lib
(note: If it says, something 39 failed: this is ok)
solarpowerlog:
cd solarpowerlog
./configure
make
If everythings fine, you'll find solarpowerlog.exe in the src-direcrtory. As solarpowerlog is a console programm, you can start it right-away with src/solarpowerlog.exe