Open Dexus opened 4 years ago
Feb 2021. I'm having the same issue, using macOS Catalina 10.15.7 - all software up to date (except for Haxe where I'm using 4.1.5 instead of 4.2 because HaxeFlixel doesn't work with 4.2)
Ditto on Debian 10, Haxe 4.1.5, hxcpp 4.2.1
has anybody fixed this issue?
Same problem here on Windows 11 - hxcpp 4,3,2 - on March 2024.
I just had this problem aswell, I asked what the problem could be in the Haxe discord. https://discord.com/channels/162395145352904705/162395145352904705/1238082566175592449
apparently, using emscripten magically sets the NEKO_WINDOWS
define, which (probably?) shouldn't happen. Or it's that this piece of code should specifically not run on emscripten buillds.
This causes the build faliure at: https://github.com/HaxeFoundation/hxcpp/blob/b1359b43354aa52e7da29dbdd711bace63a51685/src/hx/libs/std/Sys.cpp#L177
As the check is #if defined(NEKO_WINDOWS) && defined(HX_SMART_STRINGS)
I tried disabling smart strings using -D disable-unicode-strings
as a test and sure enough that worked.
If I can find the problem I'll see if I can make a PR, or perhaps someone else can make one? Anyhow, that's all.
Thanks to Zeta and dazKind for their help finding this problem.
With kind regards, MKI
I try to compile a wasm via
lime test emscripten -webassembly
but I get this error following. How can i fix it and compile it?EDIT:
I'm unsing Ubuntu 18.04 - all software up to date.