Mark Sibly

Forum Replies Created

Viewing 15 posts - 241 through 255 (of 1,431 total)
  • Author
    Posts
  • in reply to: Emscripten: 'em++' is not recognized #12485

    Mark Sibly
    Keymaster

    Whew – finally got emscripten going on macos.

    I couldn’t get any of the precompiled sdks to work due to the ‘llvm-ar’ issue above so ended up installing sdk-incoming-64bit, which involves a build from source which takes a while. But if you’ve got xcode installed (and I think you need cmake too) it should ‘just work’.

    I have made a few tweaks to bin/env_macos.txt and it all should be going again, although you’ll need to install/build the incoming version as per above.

    Sorry about this disaster, you might have been better sticking with your original install after all but I meant well!

    in reply to: Emscripten: 'em++' is not recognized #12484

    Mark Sibly
    Keymaster

    Ok, having mixed results with this.

    The Pointer_stringify error can be fixed like this:

    MX2_LD_OPTS_EMSCRIPTEN=-s USE_SDL=2 -s TOTAL_MEMORY=268435456 -s DISABLE_EXCEPTION_CATCHING=1 -s “EXTRA_EXPORTED_RUNTIME_METHODS=[‘Pointer_stringify’]”

    Unfortunately, the precompiled macos emscripten releases appear to be completely knackered due to this issue:

    https://github.com/kripken/emscripten/issues/5418

    Currently trying to build incoming-64bit from source…sorry I got you to uninstall yours!

    in reply to: Emscripten: 'em++' is not recognized #12483

    Mark Sibly
    Keymaster

    …building modules!

    Had no problems with ted2go though, dunno what’s up there.

    in reply to: Emscripten: 'em++' is not recognized #12481

    Mark Sibly
    Keymaster

    I’ll have another go at installing emscripten on mac tomorrow.

    in reply to: Emscripten: 'em++' is not recognized #12470

    Mark Sibly
    Keymaster

    Ok, just pushed a potential fix to develop branch.

    I had to change the ‘comment’ system in the env var files a bit. Comment chars must now appear at beginning of a line only, this allows for apostrophes in env vars so =’allow’ should work now.

    Have tested it here but only on Windows as I have *never* been able to successfully install emscripten on macos for some reason!

    So any problems you may have will probably be in bin/env_macos.txt. I had to change this a bit and remove any ‘inline comments’ (there were a few in there).

    in reply to: Emscripten: 'em++' is not recognized #12469

    Mark Sibly
    Keymaster

    Well waddya know, looks like I didn’t even properly test my last little fix as I get the same error here! Probably built the wrong target…huge apologies….there may have been small amounts of beer involved…am running purely on caffeine today, promise!

    in reply to: Emscripten: 'em++' is not recognized #12468

    Mark Sibly
    Keymaster

    You are not going to like this.

    No problem, we’ll get there!

    I think I know what’s up too (and why I originally hardcoded LD WASM opts into mx2cc) – the apostrophe is behaving like a comment in the env.txt file.

    Will do some tweaking…

    in reply to: Emscripten: 'em++' is not recognized #12467

    Mark Sibly
    Keymaster

    You are not going to like this.

    No problem, we’ll get there!

    I think I know what’s up to0 (and why I originally hardcoded LDWASM opts into mx2cc) – the apostrophe is behaving like a comment in the env.txt file.

    Will do some tweaking…

    in reply to: Emscripten: 'em++' is not recognized #12454

    Mark Sibly
    Keymaster

    The ‘allow’ error looks like it was caused by a emscripten linker option hardcoded into mx2cc. I have tweaked mx2cc so this option is now configurable via bin/env_windows.txt etc:

    MX2_LD_OPTS_EMSCRIPTEN_WASM=-s BINARYEN=1 -s BINARYEN_TRAP_MODE=’allow’

    This is just what used to be hardcoded into mx2cc – all I can say for sure is that it works on MY setup!

    To build with 1.37.9 you’ll (probably) need to change this to:

    MX2_LD_OPTS_EMSCRIPTEN_WASM=-s BINARYEN=1

    Note that this var is appended to MX2_LD_OPTS_EMSCRIPTEN when building wasm (or wasm+asmjs) apps.

    Not the prettiest, but I’m gonna stick with emsdk ‘latest’ versions for now as they seem to be easiest to install, and this does at least let you experiment with later versions that may break some stuff. Well, when it comes to LD opts anyway.

    You’ll need to grab the latest from develop and updatemx2cc for this to work. Assuming it does work, as I’m running emsdk v1.37.26 and haven’t tested it with any 1.37.9 version yet.

    in reply to: Emscripten: 'em++' is not recognized #12453

    Mark Sibly
    Keymaster

    Ok, think I know where the “NameError: name ‘allow’ is not defined” error is coming from.

    I would still like to know what version of emscripten people are running and how they are installing it. It does seem like there are numerous issues related to different versions of emscripten, which is understandable I guess.

    Another thing to note is that after activating ‘latest’ with emsdk, I have to go through and manually update a bunch of env vars and PATH settings to point to various things inside emsdk dir. The emsdk tries to do this but of course all env vars are lost as soon as you close the console.

    I did waste a day+ trying to put together a truly portable emsdk but gave up in the end. I am kind of hpoing some 3rd party will grab the bull by horns and release an emsdk-deluxe that ‘just works’ and sets up paths properly and everything.

    in reply to: Emscripten: 'em++' is not recognized #12452

    Mark Sibly
    Keymaster

    Well, I *was* using 1.37.9, but went back to using ‘latest’ as others seemed to be having problems installing 1.37.9 and ‘latest’ was working fine for me – still is! In fact, emscripten has always worked for me, amazingly…

    I though it’d be best just to try and use the version installed by ’emsdk install latest’ so everyone was on the same page and it’s probably what we’re supposed to be using?

    I am also now a bit unclear on exactly where people are even getting 1.37.9 from too, or are they rebuilding from source?

    Using the emsdk-portable-64bit, if I go ’emsdk update’ it says:

    But of course, true to form, if I install/activate latest I only get 1.37.26!

    If I go ’emsdk list’ I can see some precompiled 1.37.9 versions that look like they’re from April. In fact, here’s my whole emsdk list output:

    So which 1.37.9 are people actually using, and how are they installing it, and which version do they actually get if they just install/activate ‘latest’?

    in reply to: Mark Sibly's Avatar. #12446

    Mark Sibly
    Keymaster

    Ha ha, nice find, happy christmas all!

    in reply to: MSVC Community 2017 #12445

    Mark Sibly
    Keymaster

    Please post your env_windows.txt file.

    in reply to: No way to change data prior to Main? #12429

    Mark Sibly
    Keymaster

    ‘Lazy initialization’ can help here:

    in reply to: Gravatar profile avatar downloader #12406

    Mark Sibly
    Keymaster

    Cool!

Viewing 15 posts - 241 through 255 (of 1,431 total)