Hi all!
So I have the following error on my emscripten build:
[ 90%] Linking CXX executable ../../../bin/Urho3DPlayer.html
INFO:root:Enabling --no-heap-copy because -s ALLOW_MEMORY_GROWTH=1 is being used with file_packager.py (pass --no-heap-copy to suppress this notification)
parseTools.js preprocessor error in undefined:1: "#!/usr/bin/env "!
undefined:106
throw e;
^
Unclear preprocessor command: #!/usr/bin/env
Traceback (most recent call last):
File "/opt/emsdk/emscripten/1.38.19/emcc.py", line 3091, in <module>
sys.exit(run())
File "/opt/emsdk/emscripten/1.38.19/emcc.py", line 2093, in run
memfile, optimizer)
File "/opt/emsdk/emscripten/1.38.19/emcc.py", line 2735, in generate_html
shell = read_and_preprocess(options.shell_path)
File "/opt/emsdk/emscripten/1.38.19/tools/shared.py", line 3107, in read_and_preprocess
run_js(path_from_root('tools/preprocessor.js'), NODE_JS, args, True, stdout=open(stdout, 'w'), cwd=path)
File "/opt/emsdk/emscripten/1.38.19/tools/shared.py", line 1125, in run_js
return jsrun.run_js(filename, engine, *args, **kw)
File "/opt/emsdk/emscripten/1.38.19/tools/jsrun.py", line 149, 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 ['/opt/emsdk/node/8.9.1_64bit/bin/node', '/opt/emsdk/emscripten/1.38.19/tools/preprocessor.js', '/tmp/emscripten_temp_68ynej/settings.js', 'shell.html'] to finish with return code 0, but it returned with code 1 instead! Output:
Source/Tools/Urho3DPlayer/CMakeFiles/Urho3DPlayer.dir/build.make:97: recipe for target 'bin/Urho3DPlayer.html' failed
make[2]: *** [bin/Urho3DPlayer.html] Error 1
CMakeFiles/Makefile2:1421: recipe for target 'Source/Tools/Urho3DPlayer/CMakeFiles/Urho3DPlayer.dir/all' failed
make[1]: *** [Source/Tools/Urho3DPlayer/CMakeFiles/Urho3DPlayer.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
Ubuntu 18.04
Steps to reproduce:
git clone https://github.com/urho3d/Urho3D.git emscripten_urho3d
cd emscripten_urho3d/
./script/cmake_emscripten.sh emscripten_build
cd emscripten_build
make
Does anyone have a clue on how to go about this error? I will try to re-install emscripten emsdk, and check if I can avoid that node installation somehow.
Thanks in advance!