Hey, guys.
I'm new to HaxeFlixel (and Haxe in general) and I'm trying to build my test project for a few different platforms. I've tried Windows and Android, both of which worked wonderfully in the beginning. Windows still works, but Android does not.
There's no rhyme or reason why, but sometimes when I attempt to build my game for Android, I get an error about stddef.h not being able to be found in my Android NDK path, so the build fails. I ran the "lime setup android" command and went through all the steps. I assume it was setup correctly because I was able to build for Android with no problem at first. I got my APK, put it on my phone, and it worked. I went through the process of making some changes to my project, rebuilding, repeat. It worked two or three times, but then the next time it failed and I was given this error:
C:\Code\HAXE\HaxeFlixel\DungeonCrawlerTutorial>lime build android
Creating C:/Code/HAXE/HaxeFlixel/DungeonCrawlerTutorial/export/android/obj/obj/android-v7/__pch/haxe/hxcpp.h.gch...
In file included from C:/HaxeToolkit/installs/hxcpp/3,3,49/include/hxcpp.h:20:0:
C:\Users\Parker\AppData\Local\Android\ndk/platforms/android-9/arch-arm/usr/include/stdint.h:31:20: fatal error: stddef.h: No such file or directory
#include <stddef.h>
^
compilation terminated.
Error: error running arm-linux-androideabi-g++ -Iinclude --sysroot=C:\Users\Parker\AppData\Local\Android\ndk/platforms/android-9/arch-arm -IC:\Users\Parker\AppData\Local\Android\ndk/sources/cxx-stl/gnu-libstdc++/4.9/include -IC:\Users\Parker\AppData\Local\Android\ndk/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=330 -IC:/HaxeToolkit/installs/hxcpp/3,3,49/include -Iinclude -fpic -fvisibility=hidden -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums "-D_LINUX_STDDEF_H " -Wno-psabi -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -fomit-frame-pointer -fexceptions -fno-strict-aliasing -finline-limit=10000 -DANDROID=ANDROID -DHX_ANDROID -DHXCPP_ANDROID_PLATFORM=9 -Wa,--noexecstack -O2 -DNDEBUG -c -Wno-invalid-offsetof -frtti -o C:/Code/HAXE/HaxeFlixel/DungeonCrawlerTutorial/export/android/obj/obj/android-v7/__pch/haxe/hxcpp.h.gch C:/HaxeToolkit/installs/hxcpp/3,3,49/include/hxcpp.h
But nothing was changed. I deleted my Android NDK folder and reinstalled it and it started building again, but only a few times before the same error came up.
What could be causing this and how can I fix it? Thanks for any help!