我试图通过以下教程构建tess-2库:在http://www.codeproject.com/Tips/840623/Android-Character-Recognition上编译库在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/发布于 2016-07-12 14:24:04
那个教程已经过时了。您可以跳到本教程的步骤3,方法是在tess-两个项目上遵循使用说明 (请参阅“使用”)。这将使用库的预编译版本,因此不必自己构建C++代码。
https://stackoverflow.com/questions/38325675
复制相似问题