View Single Post
Old 02-11-2018, 06:20 AM   #1522
axet
Junior Member
axet understands when you whisper 'The dog barks at midnight.'axet understands when you whisper 'The dog barks at midnight.'axet understands when you whisper 'The dog barks at midnight.'axet understands when you whisper 'The dog barks at midnight.'axet understands when you whisper 'The dog barks at midnight.'axet understands when you whisper 'The dog barks at midnight.'axet understands when you whisper 'The dog barks at midnight.'axet understands when you whisper 'The dog barks at midnight.'axet understands when you whisper 'The dog barks at midnight.'axet understands when you whisper 'The dog barks at midnight.'axet understands when you whisper 'The dog barks at midnight.'
 
Posts: 6
Karma: 42208
Join Date: Feb 2018
Device: android phone
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'
axet is offline   Reply With Quote