openfl / lime

A foundational Haxe framework for cross-platform development
https://lime.openfl.org/
MIT License
753 stars 365 forks source link

`lime test android` error #1673

Closed ClintFlames closed 1 year ago

ClintFlames commented 1 year ago
Error: /home/clintflames/haxelib/hxcpp/4,3,2/project/thirdparty/pcre2-10.42/src/pcre2_script_run.c: In function '_pcre2_script_run_8':
/home/clintflames/haxelib/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;
 ^
/home/clintflames/haxelib/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
/home/clintflames/haxelib/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++)
       ^
/home/clintflames/haxelib/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];
         ^

And after that the command freezes. If I press CTRL + C it returns new error:

Error: Source path "export/android/obj/libApplicationMain-v7.so" does not exist

OS: Manjaro Linux Android NDK: r15c JDK: 19.0.2

player-03 commented 1 year ago

That's a known issue with hxcpp 4.3.2. The fix is available on Git but hasn't been released on Haxelib yet. You can also revert to the previous stable release.

ClintFlames commented 1 year ago

Thank you, I installed git version of hxcpp.