I am trying to create tesseract for android. I put tesseract in the sample folder as
C:\Android_NDK\android-ndk-r8\samples\tesseract with the C:\Android_NDK\android-ndk-r8\samples\tesseract folder, I have the tesseract-3.00 folder, the leptonlib-1.66 folder and the libjpeg folder. Whenever I try to create code using ndk-build. I get an error like
C:/Android_NDK/android-ndk-r8/build/core/build-binary.mk:240: *** target pattern contains no '%'. Stop.
I use ndk-build like this on the command line C:\Android_NDK\android-ndk-r8\samples\tesseract\jni>C:\Android_NDK\android-ndk-r8/ndk-build
Application.mk file contents in the tesseract / jni folder
# 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
Tried with Cygwin, but with the same problem.
Looking forward to your reply.
thanks.
source share