liblept.so undefined reference errors
Hello,
I imported the project to eclipse and added tess-two as library to the project. At the time of compiling, i am getting the below errors.
[armeabi-v7a] Compile++ thumb: lept <= writefile.cpp [armeabi-v7a] Compile++ thumb: lept <= jni.cpp [armeabi-v7a] SharedLibrary : liblept.so 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'
jni/com_googlecode_leptonica_android/stdio/fmemopen.c:215: error: undefined reference to '__sfp'
Android.mk
LOCAL_PATH := $(call my-dir) TESSERACT_PATH := $(LOCAL_PATH)/com_googlecode_tesseract_android/src LEPTONICA_PATH := $(LOCAL_PATH)/com_googlecode_leptonica_android/src
Just build the Android.mk files in the subdirs
include $(call all-subdir-makefiles)
Application.mk
APP_STL := gnustl_static APP_CPPFLAGS := -frtti -fexceptions APP_ABI := armeabi-v7a APP_PLATFORM := android-14 APP_OPTIM := release
Please assist, thanks