Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

Build not working on NDK r7 #2

Closed
rmtheis opened this issue Nov 19, 2011 · 4 comments
Closed

Build not working on NDK r7 #2

rmtheis opened this issue Nov 19, 2011 · 4 comments

Comments

@rmtheis
Copy link
Owner

rmtheis commented Nov 19, 2011

No description provided.

@b-oern
Copy link

b-oern commented Dec 6, 2011

any progress on this?

@rmtheis
Copy link
Owner Author

rmtheis commented Dec 10, 2011

No, not at the moment. I should have time to look at this in a few weeks. Let me know or do a pull request if you find the source of the problem. The build still works with NDK r6b.

@wnafee
Copy link

wnafee commented Jan 2, 2012

I got it working with NDK r7. You have to make a few small mods to your Android.mk files. Here's what I did:

  1. For <path-to-tess-two>/jni/Android.mk, I added the export commands in there to make my life easy:

    TESSERACT_PATH := $(call my-dir)/../external/tesseract-3.01
    LEPTONICA_PATH := $(call my-dir)/../external/leptonica-1.68
    LIBJPEG_PATH := $(call my-dir)/../external/libjpeg
    
  2. For <path-to-tess-two>/jni/com_googlecode_leptonica_android/Android.mk I changed LOCAL_PATH := to LOCAL_PATH := $(call my-dir)/../..

  3. For <path-to-tess-two>/jni/com_googlecode_tesseract_android/Android.mk I changed LOCAL_PATH := to LOCAL_PATH := $(call my-dir)/../..

That's all I needed to do and it worked fine.

@rmtheis
Copy link
Owner Author

rmtheis commented Jan 4, 2012

Thanks @wnafee! I've checked in your contributions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants