log4cpp: http://log4cpp.sourceforge.net
libconfig: http://www.hyperrealm.com/libconfig/
Example:
apt-get install g++ cmake libgsf-1-dev git
git clone https://github.com/Helioviewer-Project/esajpip-SWHV.git
mkdir build && cd build
cmake ../esajpip-SWHV/ -DCMAKE_INSTALL_PREFIX=$HOME/esajpip -DSWHV_PORT_JPIP=8090 -DSWHV_DIR_IMAGE=$HOME/esajpip/images -DSWHV_DIR_LOG=$HOME/esajpip/log
make install
mkdir $HOME/esajpip/{images,log}