所以我正在 Android Studio 中试用 Eaglesky 的这个应用程序: https://github.com/eaglesky/HandGestureApp 但在使用右键单击并选择 ndk-build 时出现错误。
我在想这可能是因为 ndk 不再支持 gnuSTL_static 所以我不得不将其更改为 c++_static 并最终得到了错误。
我的应用.mk
APP_PLATFORM := android-16
APP_ABI := all
APP_CPPFLAGS := -frtti -fexceptions
APP_STL := c++_static
抱歉,我对 Android 开发还是很陌生。
最佳答案
你的问题是使用:
APP_STL := c++_static
OpenCV 需要 gnuc 库:
APP_STL := gnuSTL_shared
确保 NDK 工具链也是 gnu 而不是 clang。
关于android-studio - 安卓工作室 : Hand Gesture Recognition fatal error: 'ext/atomicity.h' file not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52964712/