its my first time compiling in android, using lime build android in haxeflixel, and the console gives me this:
Error: C:/HaxeToolkit/haxe/lib/hxcpp/4,3,2/project/thirdparty/pcre2-10.42/src/pcre2_script_run.c: In function ‘_pcre2_script_run_8’:
C:/HaxeToolkit/haxe/lib/hxcpp/4,3,2/project/thirdparty/pcre2-10.42/src/pcre2_script_run.c:109:1: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < FULL_MAPSIZE; i++) require_map[i] = 0;
^
C:/HaxeToolkit/haxe/lib/hxcpp/4,3,2/project/thirdparty/pcre2-10.42/src/pcre2_script_run.c:109:1: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
C:/HaxeToolkit/haxe/lib/hxcpp/4,3,2/project/thirdparty/pcre2-10.42/src/pcre2_script_run.c:248:7: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < FULL_MAPSIZE; i++)
^
C:/HaxeToolkit/haxe/lib/hxcpp/4,3,2/project/thirdparty/pcre2-10.42/src/pcre2_script_run.c:285:9: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < FULL_MAPSIZE; i++) require_map[i] &= map[i];
Do you set android SDK and NDK location properly.
Try reinstalling libraries of haxeflixel, hxcpp, openfl. and delete the build folder formed, recheck with lime test android not lime build android.
You’ll need to install hxcpp 4.2.1 instead of 4.3.2. There’s an issue in 4.3.2 that prevents that pcre2 library from compiling. It’s been fixed in the hxcpp git repo, but there hasn’t been a new release yet.
How do you use an older version? Lime just tells me to update it when I try to build with 4.2.1
If you go back to hxcpp 4.2.1, you also (unfortunately) need to go back to Haxe 4.2.