Integrating tesseract with Android Studio -


i working on android project have use tesseract library. have downloaded source here , trying build using steps readme source.

when run command in cmd ndk-build -j8, getting errors:

[armeabi] compile thumb  : lept <= open_memstream.c [armeabi] compile thumb  : lept <= fopencookie.c [armeabi] compile thumb  : lept <= fmemopen.c [armeabi] compile++ thumb: lept <= box.cpp [armeabi] compile++ thumb: lept <= pix.cpp [armeabi] compile++ thumb: lept <= pixa.cpp [armeabi] compile++ thumb: lept <= utilities.cpp [armeabi] compile++ thumb: lept <= readfile.cpp in file included jni/com_googlecode_leptonica_android/box.cpp:17:0: jni/com_googlecode_leptonica_android/common.h:22:24: fatal error: allheaders.h: no such file or directory  #include <allheaders.h>                          ^  coin file included jni/com_googlecode_leptonica_android/pixa.cpp:17:0: jni/com_googlecode_leptonica_android/common.h:22:24: fatal error: allheaders.h: no such file or directory  #include <allheaders.h>                         ^  compilation terminated. make.exe: *** [obj/local/armeabi/objs/lept/pixa.o] error 1  make.exe: *** waiting unfinished jobs....  min file included jni/com_googlecode_leptonica_android/pix.cpp:17:0: jni/com_googlecode_leptonica_android/common.h:22:24: fatal error: allheaders.h: no such file or directory  #include <allheaders.h>                         ^  pciolmaptiiloatnio n tteermrimniantaetde.d . make.exe: *** [obj/local/armeabi/objs/lept/pix.o] error 1  make.exe: *** [obj/local/armeabi/objs/lept/box.o] error 1  in file included jni/com_googlecode_leptonica_android/utilities.cpp:17:0: jni/com_googlecode_leptonica_android/common.h:22:24: fatal error: allheaders.h: no such file or directory  #include <allheaders.h>                         ^  compilation terminated. make.exe: *** [obj/local/armeabi/objs/lept/utilities.o] error 1 in file included jni/com_googlecode_leptonica_android/readfile.cpp:17:0: jni/com_googlecode_leptonica_android/common.h:22:24: fatal error: allheaders.h: no such file or directory  #include <allheaders.h>                         ^ compilation terminated. make.exe: *** [obj/local/armeabi/objs/lept/readfile.o] error 1 

how can fix this?

p.s. working in android studio


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -