When I did this I followed a tutorial that said you have to use an older version of the NDK - are you using the latest?
On 6 May 2015 at 13:22, codefully <forclep...@gmail.com> wrote: > I have tried to build Tesseract for Android on a mac several times but > keep getting errors. I followed the steps below: > > 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 > android update project --target 1 --path . > ant debug (release) > > Whenever I get to the ndk-build -j8 step I get the following errors: > > jni/com_googlecode_tesseract_android/src/dict/permdawg.cpp: In member > function 'void tesseract::Dict::go_deeper_dawg_fxn(char const*, const > BLOB_CHOICE_LIST_VECTOR&, int, const CHAR_FRAGMENT_INFO*, bool, > WERD_CHOICE*, float*, float*, WERD_CHOICE*, int*, void*)': > > jni/com_googlecode_tesseract_android/src/dict/permdawg.cpp:208:62: error: > format not a string literal and no format arguments > [-Werror=format-security] > > Compile++ thumb : tess <= states.cpp > > cc1plus: some warnings being treated as errors > > > make: *** [obj/local/armeabi/objs/tess/src/dict/permdawg.o] Error 1 > > make: *** Waiting for unfinished jobs.... > > How can I solve this? > > -- > You received this message because you are subscribed to the Google Groups > "tesseract-ocr" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to tesseract-ocr+unsubscr...@googlegroups.com. > To post to this group, send email to tesseract-ocr@googlegroups.com. > Visit this group at http://groups.google.com/group/tesseract-ocr. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tesseract-ocr/b886506c-1436-4ea5-ac3f-2f832da56a7c%40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/b886506c-1436-4ea5-ac3f-2f832da56a7c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-ocr+unsubscr...@googlegroups.com. To post to this group, send email to tesseract-ocr@googlegroups.com. Visit this group at http://groups.google.com/group/tesseract-ocr. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CAORW5viWiW2ekRcnxSvd-tTHZ%3DJWT%2BMi95CARJqfaoFm4aMvkw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.