"cat: speak.raw.js: File or directory not found" Language Support
alancps opened this issue · 2 comments
I found this error when I tried to build speak.js for language support (using emscripten.sh, bundle.py, post.js). Follow the instructions in the file README.markdown
I use:
closure compiler
Node.js 0.6.6
clang + llvm 3.0
Ubuntu 11.10 32bits
later versions of emscriptem and speak.js
espeak.cpp:357:4: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
{"pho", no_argument, 0, 0x109},
^
espeak.cpp:358:4: warning: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
{"ipa", no_argument, 0, 0x10a},
^
12 warnings generated.
emcc: x_debug.o: Not valid LLVM bitcode
mv libespeak.so libespeak.so.1.1.45
/bin/ln -sf libespeak.so.1.1.45 libespeak.so.1
/bin/ln -sf libespeak.so.1 libespeak.so
/home/alan/emscripten/em++ -o espeak espeak.o -lstdc++ -L . -lespeak
dis
emscripten
emcc: warning: The relooper optimization can be very slow.
Traceback (most recent call last):
File "/home/alan/emscripten/emcc", line 540, in
final = shared.Building.closure_compiler(final)
File "/home/alan/emscripten/tools/shared.py", line 659, in closure_compiler
'--js', filename, '--js_output_file', filename + '.cc.js'], stdout=PIPE, stderr=STDOUT).communicate()[0]
File "/usr/lib/python2.7/subprocess.py", line 679, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1239, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
cat: speak.raw.js: File or directory not found
Judging from the error output, I think it fails because closure compiler is not installed. That makes it not able to generate speak.raw.js, and it fails on missing that file later.
If you install closure and set the path to it in ~/.emscripten, that should work. You can test that closure works with some of emscripten's automatic tests, for example python tests/runner.py other.test_emcc
Thank you very much Alon Zaka!
The Closure Compiler was installed incorrectly (missing install java).
I tested the French language support and is working properly.