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.
- 
		AuthorPosts
 - 
		
			
				
June 14, 2017 at 1:13 pm #8730
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?
June 14, 2017 at 10:06 pm #8740What 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
June 15, 2017 at 6:24 am #8745Thanks! 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.shThen 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}
June 15, 2017 at 11:46 am #8750I think I still have the old Emscripten compiler. I will install the new one.
June 15, 2017 at 6:03 pm #8754I 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.
June 15, 2017 at 11:13 pm #8762Actually, 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!
June 16, 2017 at 7:40 am #8767Just 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.
June 16, 2017 at 9:35 am #8769Where can I find the monkey2 manual? I only see docs on the top of this site.
 - 
		AuthorPosts
 
You must be logged in to reply to this topic.