pengyi0827 / tesseract-android-tools

Automatically exported from code.google.com/p/tesseract-android-tools
0 stars 0 forks source link

error on compiling tessaract-android-tools ndk-build fails #57

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
expected ==> the two lib*.so.
I got errors:
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'
collect2.exe: error: ld returned 1 exit status
make.exe: *** [obj/local/armeabi/liblept.so] Error 1
these variables (__sfp , ____sflags) seem to not being defined in the project.

What version of the product are you using? On what operating system?
tesseract-ocr-3.02.02.tar.gz
leptonica-1.69.tar.gz

I'm running on win seven 64bits

Please provide any additional information below.
I used ndk-build -version = GNU Make 3.81

Thanks to your next answer.
Regards

Oliver

Original issue reported on code.google.com by olivier....@gmail.com on 5 Mar 2015 at 10:46

GoogleCodeExporter commented 9 years ago
Did you manage to solve this, I get same error on my win7 with cygwin

Original comment by android....@gmail.com on 3 Jul 2015 at 6:08