I am currently trying to port my OpenGL application to Android and am stuck on how to import and build GLM http://glm.g-truc.net/ properly. I have no trouble using GLM in standa
Sam Hocevar's answer to codemonkeys problem is correct. it's not glm that's the problem. It's the "limits" header file used by glm that's the problem.
If Sam's answer does not solve your problem, try changing the toolchain to an earlier version by adding the following to your Application.mk file:
NDK_TOOLCHAIN_VERSION=4.4.3
And make sure that the STL includes for your project in Eclipse correspond with the toolchain. Go to project->properties->C/C++ General->Paths and Symbols
make sure the following directories are included:
EDIT : these are only examples; make sure you use the correct platform and abi
/Path/To/NDK/sources/platforms/android-9/arch-arm/usr/include
/Path/To/NDK/sources/cxx-stl/gnu-libstdc++/4.4.3/include
/Path/To/NDK/sources/cxx-stl/gnu-libstdc++/4.4.3/libs/armeabi-v7a/include
EDIT : remark on first directory removed; seems glm looks for the limits file provided by the current stl implementation