我目前正在开发Android项目,我必须使用tesseract库。我已经从here下载了源代码,现在我正在尝试使用来自源代码的README中的步骤来构建它。
当我在cmd ndk-build -j8中运行命令时,我收到错误:
[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 from 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 from 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 for unfinished jobs....
mIn file included from 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 from 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 from 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
我该如何解决这个问题?
P.S。我在Android Studio工作