I finnaly find the way to create hellowrold.js… But i still got the same bug
And when it create the html i got another issue:
parseTools.js preprocessor error in shell.html:1: “#!/usr/bin/env firefox”!
undefined:81
throw e;
^
Unclear preprocessor command on line 0: #!/usr/bin/env firefox
Traceback (most recent call last):
File “C:\HTML5Games\tools\emsdk\emscripten\1.38.30\emcc.py”, line 3276, in
sys.exit(run(sys.argv))
File “C:\HTML5Games\tools\emsdk\emscripten\1.38.30\emcc.py”, line 2228, in run
memfile, optimizer)
File “C:\HTML5Games\tools\emsdk\emscripten\1.38.30\emcc.py”, line 3091, in generate_html
wasm_binary_target, memfile, optimizer)
File “C:\HTML5Games\tools\emsdk\emscripten\1.38.30\emcc.py”, line 2864, in generate_traditional_runtime_html
shell = read_and_preprocess(options.shell_path)
File “C:\HTML5Games\tools\emsdk\emscripten\1.38.30\tools\shared.py”, line 3250, in read_and_preprocess
run_js(path_from_root(‘tools/preprocessor.js’), NODE_JS, args, True, stdout=open(stdout, ‘w’), cwd=path)
File “C:\HTML5Games\tools\emsdk\emscripten\1.38.30\tools\shared.py”, line 1091, in run_js
return jsrun.run_js(filename, engine, *args, **kw)
File “C:\HTML5Games\tools\emsdk\emscripten\1.38.30\tools\jsrun.py”, line 155, in run_js
raise Exception('Expected the command ’ + str(command) + ’ to finish with return code ’ + str(assert_returncode) + ', but it returned with code ’ + str(proc.returncode) + ’ instead! Output: ’ + str(ret)[:error_limit])
Exception: Expected the command [‘C:/HTML5Games/tools/emsdk/node/8.9.1_64bit/bin/node.exe’, ‘C:\HTML5Games\tools\emsdk\emscripten\1.38.30\tools/preprocessor.js’, ‘C:\Users\Johnny\AppData\Local\Temp\emscripten_temp_qssv0c\settings.js’, ‘shell.html’] to finish with return code 0, but it returned with code 1 instead! Output:
Source\Samples\01_HelloWorld\CMakeFiles\01_HelloWorld.dir\build.make:94: recipe for target ‘bin/01_HelloWorld.html’ failed
mingw32-make[3]: *** [bin/01_HelloWorld.html] Error 1
CMakeFiles\Makefile2:1696: recipe for target ‘Source/Samples/01_HelloWorld/CMakeFiles/01_HelloWorld.dir/all’ failed
mingw32-make[2]: *** [Source/Samples/01_HelloWorld/CMakeFiles/01_HelloWorld.dir/all] Error 2
CMakeFiles\Makefile2:1708: recipe for target ‘Source/Samples/01_HelloWorld/CMakeFiles/01_HelloWorld.dir/rule’ failed
mingw32-make[1]: *** [Source/Samples/01_HelloWorld/CMakeFiles/01_HelloWorld.dir/rule] Error 2
Makefile:521: recipe for target ‘01_HelloWorld’ failed
mingw32-make: *** [01_HelloWorld] Error 2
I am using latest emscripten should i use this one?