png2pdf uses CMake for building and installation.
png2pdf has three runtime dependencies:
Mostly everything should be available through package managers:
sudo apt install cmake libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libpng-dev libpodofo-dev
brew install cmake boost libpng podofo png++
on Ubuntu png++ needs to be installed manually:
cd /usr/local/src # Or wherever you compile code
wget http://download.savannah.nongnu.org/releases/pngpp/png++-0.2.9.tar.gz
tar zxf png++-0.2.9.tar.gz
cd png++-0.2.9
make
sudo make install
checkinstall is recommend for installing, but it is only available on Linux.
mkdir build && cd build
cmake ../
make
# Linux
sudo checkinstall
# macOS
sudo make install