NDK compile warnings on OCR tesseract libraries for android

谁说胖子不能爱 提交于 2019-12-08 13:55:48

问题


I am trying to compile android NDK version of OCR tesseract libraries tess-two but I am confused why I am getting the following warning. I have just downloaded the library from the github and trying to compile using NDK r9b.

C:\NV_ANDROIDPACK_BACKUP\android-ndk-r9b\tess-two>C:\NV_ANDROIDPACK_BACKUP\andr id-ndk-r9b\ndk-build Android NDK: WARNING:jni/com_googlecode_tesseract_android/Android.mk:tess: non- ystem libraries in linker flags: -latomic Android NDK: This is likely to result in incorrect builds. Try using LOCAL_ TATIC_LIBRARIES Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependen ies of the Android NDK: current module [armeabi] Compile thumb : jpgt <= jaricom.c

Also on each file at the time of compilation it shows following warning as well

[armeabi] Compile++ thumb: tess <= params_model.cpp
clang++.exe: warning: argument unused during compilation: '-fpermissive'
warning: unknown warning option '-Wno-shift-negative-value'; did you mean
      '-Wno-shift-sign-overflow'? [-Wunknown-warning-option]

kindly help how to solve this.


回答1:


The version of the NDK that you're using is too old. If you update your NDK to r12b, you'll avoid seeing that error.



来源:https://stackoverflow.com/questions/38675799/ndk-compile-warnings-on-ocr-tesseract-libraries-for-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!