Help with Emscripten/Wasm

About Monkey 2 Forums Monkey 2 Programming Help Help with Emscripten/Wasm

This topic contains 7 replies, has 3 voices, and was last updated by  Pakz 1 year, 10 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #8730

    Diffrenzy
    Keymaster

    I’ve setup emscripten on MaxOS Sierra, using emsdk portable.

    Modules and programs compile, but when I try to run the apps, I get this error:

    Mojotest.html:67 missing function: _ZNSt3__16chrono12steady_clock3nowEv

    I’ve put an examle online here:

    http://scheutz.dk/stuff/Emscripten/Mojotest.html

    Can somebody help?

    #8740

    Mark Sibly
    Keymaster

    What version of emscripten are you running? I’m on 1.37.9, use ’em++ -v’ to find out.

    Use this link to grab installer for 1.37.9, there’s another one around that installs an older version I think…

    https://github.com/juj/emsdk/blob/master/README.md

    #8745

    Diffrenzy
    Keymaster

    Thanks! reinstalling worked 🙂

    For anybody with the same issue:

    Got the portable zip (https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz) and ran ( in terminal from the install dir. ):

    ./emsdk update
    ./emsdk install latest
    ./emsdk activate latest
    source ./emsdk_env.sh

    Then I see this when running “em++ -v”:

    MyMac:emsdk-portable myusername$ em++ -v
    emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.37.13
    clang version 4.0.0 (emscripten 1.37.13 : 1.37.13)
    Target: x86_64-apple-darwin16.6.0
    Thread model: posix
    InstalledDir: /Users/myusername/emsdk-portable/clang/e1.37.13_64bit
    INFO:root:(Emscripten: Running sanity checks)

    and in env_macos.txt I put:

    ‘***** EMSCRIPTEN *****

    EMSCRIPTEN=${HOME}/emsdk-portable/emscripten/1.37.13
    PATH=${HOME}/emsdk-portable:${HOME}/emsdk-portable/clang/e1.37.13_64bit:${HOME}/emsdk-portable/node/4.1.1_64bit/bin:${HOME}/emsdk-portable/emscripten/1.37.13:${PATH}

    PATH=${MX2_HOME}\devtools\emsdk-portable;${PATH}

    #8750

    Pakz
    Participant

    I think I still have the old Emscripten compiler. I will install the new one.

    #8754

    Pakz
    Participant

    I broke the emscripten 🙁 I am not a windows wizzard.

    I am trying to fix it again by following the instructions from the monkey2 editor (ted) help screen.

    #8762

    Mark Sibly
    Keymaster

    Actually, I recommend using the current instructions in the monkey2 manual:

    Monkey2 uses the emscripten sdk compilers and tools to build emscripten and wasm apps.

    To install the emscripten sdk, please see this page: https://github.com/juj/emsdk/blob/master/README.md.

    After installation, you should have em++ 1.37.9 installed. Use ’em++ -v’ to check version.

    Emscripten is still kinda in flux and is unlikely to be ‘fun’ to get going for a while yet!

    #8767

    Diffrenzy
    Keymaster

    Just to avoid confusion: My post above follows the current instructions from monkey2 manual and does what https://github.com/juj/emsdk/blob/master/README.md. tells me to. 🙂

    #8769

    Pakz
    Participant

    Where can I find the monkey2 manual? I only see docs on the top of this site.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.