【问题标题】:Android Studio: Hand Gesture Recognition fatal error: 'ext/atomicity.h' file not foundAndroid Studio:手势识别致命错误:找不到“ext/atomicity.h”文件
【发布时间】:2018-10-24 08:51:48
【问题描述】:

所以我正在 Android Studio 中试用 Eaglesky 的这个应用程序: https://github.com/eaglesky/HandGestureApp 但在使用右键单击并选择 ndk-build 时出现错误。

The Error

我在想这可能是由于 ndk 不再支持 gnustl_static 所以我不得不将其更改为 c++_static 并最终得到错误。

我的应用程序.mk

APP_PLATFORM := android-16
APP_ABI := all
APP_CPPFLAGS := -frtti -fexceptions
APP_STL := c++_static

抱歉,我对 Android 开发还是很陌生。

【问题讨论】:

    标签: android-studio opencv


    【解决方案1】:

    您的问题是使用:
    APP_STL := c++_static

    OpenCV 需要 gnuc 库:

    APP_STL := gnustl_shared

    确保 NDK 工具链也是 gnu not clang。

    【讨论】:

      猜你喜欢
      • 2018-11-04
      • 2019-07-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-15
      • 1970-01-01
      • 2011-09-09
      • 1970-01-01
      相关资源
      最近更新 更多