我正在尝试通过遵循本教程来构建tess-two库:
http://www.codeproject.com/Tips/840623/Android-Character-Recognition
在Windows上,库的编译立即在Linux上失败,我收到以下错误:

make: Entering directory "/home/daniele/tess/eyes-two/src/main"
[armeabi] Compile++ thumb: hydrogen <= clusterer.cpp
[armeabi] Compile++ thumb: hydrogen <= hydrogentextdetector.cpp
[armeabi] Compile++ thumb: hydrogen <= thresholder.cpp
[armeabi] Compile++ thumb: hydrogen <= utilities.cpp
[armeabi] Compile++ thumb: hydrogen <= validator.cpp
[armeabi] Compile++ thumb: hydrogen <= hydrogentextdetector.cpp
[armeabi] Compile++ thumb: hydrogen <= thresholder.cpp
[armeabi] Compile++ thumb: hydrogen <= jni.cpp
make: ***  No rule to make target "jni/../../../../tess-two/libs/armeabi/liblept.so", needed by "obj/local/armeabi/libhydrogen.so".  Stop.
make: Leaving directory "/home/daniele/tess/eyes-two/src/main"


这些是我已经完成的步骤:

export ANDROID_HOME=/home/daniele/Android/Sdk/
export ANDROID_NDK_HOME=/home/daniele/Android/Ndk
git clone git://github.com/rmtheis/tess-two tess
cd tess
sudo /home/daniele/Android/Ndk/ndk-build -C eyes-two/src/main/

最佳答案

该教程已过时。您可以按照tess-two项目上的instructions(请参阅“用法”)跳到该教程中的第3步。这将使用该库的预编译版本,因此您不必自己构建C ++代码。

10-06 03:01