2016-07-12 31 views
0

我想按照這個教程打造的苔絲二庫: 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/ 

回答

0

該教程是過時的。您可以跳過通過遵循instructions在教程步驟3(參見「用法」)的苔絲個項目。這將使用該庫的預編譯版本,因此您不必親自構建C++代碼。