checking for LEPTONICA... no
configure: error: Leptonica 1.74 or higher is required. Try to install libleptonica-dev package.
$ ls ~/miniconda3/envs/cheetoh/lib
liblept.a liblept.la liblept.so liblept.so.5 liblept.so.5.0.3 pkgconfig
$ ls ~/miniconda3/envs/cheetoh/include/leptonica/
allheaders.h bmfdata.h environ.h list.h readbarcode.h watershed.h
alltypes.h bmf.h gplot.h morph.h recog.h
arrayaccess.h bmp.h heap.h pix.h regutils.h
array.h ccbord.h imageio.h ptra.h stack.h
bbuffer.h dewarp.h jbclass.h queue.h stringcode.h
bilateral.h endianness.h leptwin.h rbtree.h sudoku.h
If configure fails with such error "configure: error: Leptonica 1.74 or higher is required." Try to install libleptonica-dev package.
If you are sure you have installed leptonica (for example in /usr/local) then probably pkg-config is not looking at your install folder (check withpkg-config --variable pc_path pkg-config
).
A solution is to set PKG_CONFIG_PATH : example :PKG_CONFIG_PATH=/usr/local/lib/pkgconfig