NDK在Android的OCR tesseract库上编译警告 [英] NDK compile warnings on OCR tesseract libraries for android

查看:263
本文介绍了NDK在Android的OCR tesseract库上编译警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编译OCR tesseract库tess-two的android NDK版本,但是我很困惑为什么收到以下警告.我刚刚从github下载了该库,并尝试使用NDK r9b进行编译.

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:警告:jni/com_googlecode_tesseract_android/Android.mk:tess:非 链接器标志中的ystem库:-latomic Android NDK:这很可能会导致构建错误.尝试使用LOCAL_ TATIC_LIBRARIES Android NDK:或LOCAL_SHARED_LIBRARIES而不是列出依赖库 的实体 Android NDK:当前模块 [armeabi]编译thumb:jpgt< = jaricom.c

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]

请帮助解决此问题.

推荐答案

您使用的NDK版本太旧.如果将NDK更新为r12b,则可以避免看到该错误.

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.

这篇关于NDK在Android的OCR tesseract库上编译警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆