I’m trying to build my project for Android, but when I run command “openfl build android”, I get the following error:
C:\projects\haxe\EnglishWords>openfl build android Creating C:/projects/haxe/EnglishWords/Export/android/obj/obj/android-v7/__pch/haxe/hxcpp.h.gch... clang++.exe: warning: treating 'c-header' input as 'c++-header' when in C++ mode, this behavior is deprecated [-Wdeprecated] clang++.exe: warning: optimization flag '-finline-limit=10000' is not supported [-Wignored-optimization-argument] clang++.exe: warning: argument unused during compilation: '-Wa,--noexecstack' [-Wunused-command-line-argument] warning: unknown warning option '-Wno-psabi' [-Wunknown-warning-option] C:/HaxeToolkit/haxe/lib/hxcpp/4,0,4/include/hxcpp.h:19:13: fatal error: 'typeinfo' file not found #include <typeinfo> ^~~~~~~~~~ 1 warning and 1 error generated. Error: Could not create PCH C:\projects\haxe\EnglishWords>
SDK, NDK and Java pathes are correct, but I’m not sure - necessary Android Tools are installed (I installed “Build Tools 19” and “Android Sdk Platform 19” via Android SDK manager), I used to run “lime setup android” in Mac OS and Lime download SDK and NDK via command line, but now by some reason it doesn’t happen in Windows.
Have anyone idea how can I fix it?