When compiling git HEAD on win8.1 with ndk r9d, I gett this error:
iso c++ forbids in-class initialization of non-const static member 'innerAngle'
Same problem on Ubuntu 14.04
I'm not sure what compilation settings are used right now when compiling LÖVE for Android, but LÖVE 0.10.0 requires the C++11 language as well as the C++11 standard library.
Hrm... I can't replicate this issue on my 14.04 Ubuntu system and a fresh clone. Are you running ndk-build after you have you have updated from the latest git?
You could try to run ndk-build clean to remove old compiled files.
@slime73, That was the problem. I added
NDK_TOOLCHAIN_VERSION := clang
in Application.mk and it works
But now I get this:
[armeabi] Compile thumb : SDL2_static <= SDL_android.c
jni/SDL2-2.0.3/src/core/android/SDL_android.c:90:24: error: function declared 'aapcs' here was previously declared without calling convention
JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved)
/home/john/android-ndk-r9c/platforms/android-9/arch-arm/usr/include/jni.h:1147:16: note: previous declaration is here
JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved);
1 error generated.
make: *** [obj/local/armeabi/objs/SDL2_static/src/core/android/SDL_android.o] Error 1
I have just committed the change c91dbb6 that forces GCC 4.8. Does it fix the issues for you?
@MartinFelis It works with both ndk-r9 and ndk-r10, so I guess it's fixed.
Issue #114 was marked as a duplicate of this issue.