Skip to content
This repository was archived by the owner on May 11, 2021. It is now read-only.
This repository was archived by the owner on May 11, 2021. It is now read-only.

liblept.so undefined reference errors #5

Description

@pranky89

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions