Я пытаюсь построить tesseract для android. я поставил Tesseract в образцах папки вошибка android ndk-build
C:\Android_NDK\android-ndk-r8\samples\tesseract
с в tesseract
папке у меня есть tesseract-3.00
папку, leptonlib-1.66
папку и libjpeg
папку. Всякий раз, когда я пытаюсь создать код с помощью ndk-build. я получаю ошибку, как
C:/Android_NDK/android-ndk-r8/build/core/build-binary.mk:240: *** target pattern contains no '%'. Stop.
Я использую НДК-строить, как это в Command Prompt C:\Android_NDK\android-ndk-r8\samples\tesseract\jni>C:\Android_NDK\android-ndk-r8/ndk-build
Application.mk
содержимое файла в Тессеракта/JNI папку
# ARMv7 is significanly faster due to the use of the hardware FPU
APP_STL := gnustl_static
APP_ABI := armeabi armeabi-v7a
APP_OPTIM := release
APP_CPPFLAGS += -fexceptions -frtti
Android.mk file contents in tesseract/jni folder
# NOTE: You must set these variables to their respective source paths before
# compiling. For example, set LEPTONICA_PATH to the directory containing
# the Leptonica configure file and source folders. Directories must be
# root-relative, e.g. TESSERACT_PATH := /home/username/tesseract-3.00
#
# To set the variables, you can run the following shell commands:
# export TESSERACT_PATH=<path-to-tesseract>
# export LEPTONICA_PATH=<path-to-leptonica>
# export LIBJPEG_PATH=<path-to-libjpeg>
#
# Or you can fill out and uncomment the following definitions:
# TESSERACT_PATH := <path-to-tesseract>
# LEPTONICA_PATH := <path-to-leptonica>
# LIBJPEG_PATH := <path-to-libjpeg>
ifeq "$(TESSERACT_PATH)" ""
$(error You must set the TESSERACT_PATH variable to the Tesseract source \
directory. See README and jni/Android.mk for details)
endif
ifeq "$(LEPTONICA_PATH)" ""
$(error You must set the LEPTONICA_PATH variable to the Leptonica source \
directory. See README and jni/Android.mk for details)
endif
ifeq "$(LIBJPEG_PATH)" ""
$(error You must set the LIBJPEG_PATH variable to the Android JPEG \
source directory. See README and jni/Android.mk for details)
endif
# Just build the Android.mk files in the subdirs
include $(call all-subdir-makefiles) $(LIBJPEG_PATH)/Android.mk
Пробовал с Cygwin, но та же проблема.
С нетерпением ждем вашего ответа.
спасибо.
Вы можете оставить свой файл ки таким образом мы получаем, чтобы увидеть больше информации. – codetiger
@codetiger Я приложил mk файл подробности. – Mukunda
Пожалуйста, проверьте это [вопрос] (http://stackoverflow.com/questions/601516/cygwin-make-error-target-pattern-contains-no) и [сообщение в форуме] (http://www.daniweb.com /software-development/cpp/threads/334530/target-pattern-contains-no-.-stop). Вероятно, ваша ошибка связана с символом «:» в путях Windows, который обрабатывается как совпадение с шаблоном –