android-studio - 安卓工作室 : Hand Gesture Recognition fatal error: 'ext/atomicity.h' file not found

标签 android-studio opencv

所以我正在 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 开发还是很陌生。

最佳答案

你的问题是使用:
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/

相关文章:

android - Google 的短信一次性代码自动填充服务,API_NOT_AVAILABLE 状态是什么意思?

android - flutter 1.9 : D/skia ( 5106): Shader compilation error

python - OpenCV 特定颜色提取

java - OpenCV 3.0.0 FaceDetect 样本失败

c++ - 如何知道 CMake 找到的库的版本?

python - 无法在python的VideoCapture中播放视频

android - 向操作栏添加操作

android - 错误 : Could not find or load main class com. android.uiautomator.UiAutomatorViewer

java - 单击按钮更改 ImageView 的颜色?

c++ - Windows 上的堆损坏,但 Linux 上没有