gpt4 book ai didi

android - 无法构建 tess-two 库

转载 作者:行者123 更新时间:2023-11-30 01:11:58 28 4
gpt4 key购买 nike

我正尝试按照本教程构建 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/

最佳答案

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

关于android - 无法构建 tess-two 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38325675/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com