Missing allheaders.h in Android Studio Project

前端 未结 5 1686
礼貌的吻别
礼貌的吻别 2021-01-14 02:56

I am following the tutorial from this tesseract tutorial and had everything go smoothly up until my actual running of the Java code. When I try

new TessBaseA         


        
5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-14 03:43

    I also ran into this problem with Android Studio. After googling some more i found this issue. https://code.google.com/p/android/issues/detail?id=74132

    Apparently the NDK plugin generates it's own Android.mk file and ignore any existing one, so the recommended way is to run ndk-build to generate the native .so files.

    When I used ndk-build in the tess-two directory it compiles just fine and the .so files is created.

    How you can include native libraries in gradle and android studio is described in this post: Add pre-built .so files in project using Android Gradle plugin 0.7.3

提交回复
热议问题