android 的 OCR tesseract 库上的 NDK 编译警告
NDK compile warnings on OCR tesseract libraries for android
我正在尝试编译 android NDK 版本的 OCR tesseract 库 tess-two 但我很困惑为什么会收到以下警告。我刚刚从 github 下载了库并尝试使用 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
编译时每个文件也显示以下警告
[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,您将避免看到该错误。
我正在尝试编译 android NDK 版本的 OCR tesseract 库 tess-two 但我很困惑为什么会收到以下警告。我刚刚从 github 下载了库并尝试使用 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
编译时每个文件也显示以下警告
[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,您将避免看到该错误。