leptonica_how-to-build

sudo apt-get install libjpeg-dev libpng-dev
mkdir leptonica
cd leptonica

git clone https://github.com/DanBloomberg/leptonica.git .

cd leptonica

./make-for-local
./make-for-auto
./autogen.sh
./configure
make