tessract的ndk构建错误

时间:2016-04-12 07:37:26

标签: android android-ndk

我对tessract完全不熟悉。我已成功完成以下步骤,

cd <project-directory>
curl -O https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz
curl -O http://leptonica.googlecode.com/files/leptonica-1.69.tar.gz
tar -zxvf tesseract-ocr-3.02.02.tar.gz
tar -zxvf leptonica-1.69.tar.gz
rm -f tesseract-ocr-3.02.02.tar.gz
rm -f leptonica-1.69.tar.gz
mv tesseract-3.02.02 jni/com_googlecode_tesseract_android/src
mv leptonica-1.69 jni/com_googlecode_leptonica_android/src

但是当我运行下一步时,

ndk-build -j8

它向我显示以下错误,

[armeabi] SharedLibrary  : liblept.so
[armeabi-v7a] SharedLibrary  : liblept.so
[x86] SharedLibrary  : liblept.so
[mips] SharedLibrary  : liblept.so
jni/com_googlecode_leptonica_android/stdio/open_memstream.c:188: error: undefined reference to '__sfp'
jni/com_googlecode_leptonica_android/stdio/fopencookie.c:154: error: undefined reference to '__sflags'
jni/com_googlecode_leptonica_android/stdio/fopencookie.c:161: error: undefined reference to '__sfp'
jni/com_googlecode_leptonica_android/stdio/fmemopen.c:209: error: undefined reference to '__sflags'
jni/com_googlecode_leptonica_android/stdio/fmemopen.c:215: error: undefined reference to '__sfp'
jni/com_googlecode_leptonica_android/stdio/fmemopen.c:215: error: undefined reference to '__sfp'
collect2.exe: error: ld returned 1 exit status
make: *** [obj/local/x86/liblept.so] Error 1
make: *** Waiting for unfinished jobs....

0 个答案:

没有答案