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 [email protected].
To post to this group, send email to [email protected].
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to