Android does not build
Created by: ThePhantasm
The current Android.mk file does not work.
I can almost get waffle to build for android. So far, my steps are:
cd /waffle
git clone https://github.com/waffle-gl/waffle
cmake-gui // nothing special
// edit Android.mk/waffle
cd ~/android-ndk-r10c/
./ndk-build
// add -std=c99 to LOCAL_CFLAGS
// LOCAL_CC override isn't working
ln -s . jni // the NDK expects the jni folder
export NDK_PROJECT_PATH=
The next error is that EGL/egl.h cannot be found. This is because the Android.mk file does not specify a target Android - therefore it defaults to android-3, which does not contain the EGL headers/prebuilts. The source files - such as /src/waffle/droid/surfaceflinger_link.cpp clearly check that the target version is 4.0 or higher.
I tried setting PLATFORM_VERSION := 4.0 and/or APP_PLATFORM=15 inside the Android.mk file, but neither seemed to actually work, so I resorted to export APP_PLATFORM=15 ./ndk-build -e // allow environment variables to override
And that gets as far as: In file included from /home/cholmes/waffle/jni/src/waffle/android/droid_platform.c:38:0: /home/cholmes/waffle/jni/src/waffle/android/droid_platform.h:37:28: error: expected identifier or '(' before numeric constant
The code doesn't appear incorrect.