AndroidGuiExample 编译失败

AndroidGuiExample failed compiling

我正在尝试熟悉 openFrameworks 和 Android 应用程序。我安装了 Android SDK 和 NDK (r10e),并尝试编译 AndroidGuiExample。 不幸的是,这是终端最后返回的内容:

undefined reference to 'std::__throw_out_of_range_fmt(char const*, ...)'
collect2: error: ld returned 1 exit status
make[2]: *** [libs/armeabi-v7a/libOFAndroidApp.so] Error 1
make[1]: *** [Debug] Error 2
make: *** [AndroidDebug] Error 2

我真的不清楚发生了什么。 任何人都可以帮助我理解错误并找到解决方案吗? 谢谢大家!

你配置NDK了吗?


使用文本编辑器编辑文件

libs/openFrameworksCompiled/project/android/paths.make 

并将 NDK 路径设置为正确的文件夹:

NDK_ROOT=/path/to/the/ndk

看起来像这样

NDK_ROOT=/Developer/android-ndk-r10e

编码愉快! :)