Few source code issues:
willus/linux.h
Code:
-#include <sys/termios.h>
+#include <termios.h>
termios unused, can be dropped, not found while compiling for android.
k2pdfopt/k2master.c
Code:
#if HAVE_LEPTONICA_LIB
wlept_bmp_dewarp(dwbmp,src,srcgrey,white,k2settings->dewarp,
k2settings->debug?"k2opt_dewarp_model.pdf":NULL);
#endif
Missing HAVE_LEPTONICA_LIB if/def, not compiling if leptionica is not compiled. Not sure tho, if this is correct replacement, seems like this call should be replaced with equivalent one.
Code:
- if (k2settings->ocr_max_columns==2 || k2settings->max_columns>1)
+ if (k2settings->max_columns==2 || k2settings->max_columns>1)
missing 'ocr_max_columns' member. replace with 'max_columns'