Andriod JNI中使用GLM

由于GLM不需要预编译,可以直接将下载的GLM放入JNI目录中,

但是编译会存在:


jni/src/glm/glm.hpp:86:18: fatal error: limits: No such file or directory
 because by default the NDK uses a stripped-down C++ runtime library.

You will need to read CPLUSPLUS-SUPPORT.html to choose what kind of runtime is best for you. In the meantime, adding this to Application.mk will probably work:



所以如下改动即可:

Application.mk

APP_STL := gnustl_static

你可能感兴趣的:(Andriod JNI中使用GLM)