【问题标题】:speak.js compiling issues in windowsspeak.js 在 windows 中的编译问题
【发布时间】:2012-09-18 02:43:26
【问题描述】:

我在尝试编译 speak.js 时遇到了这个问题。在emscripten.sh当编译器到达这一行时:

$EMSCRIPTEN/emcc -O2 --js-transform "python bundle.py" speak.bc -o speak.raw.js

我收到此错误(之前的部分工作正常):

emscripten

fs.js:338
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^
Error: ENOENT, no such file or directory 'C:\tmp\tmp0Ak4ij.txt' 
    at Object.fs.openSync (fs.js:338:18) 
    at Object.fs.readFileSync (fs.js:182:15) 
    at read (C:\opt\emscripten\src\compiler.js:36:37) 
    at Object.<anonymous> (C:\opt\emscripten\src\compiler.js:120:29) 
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:492:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)
Traceback (most recent call last):
  File "/opt/emscripten/emcc", line 871, in <module>
    final = shared.Building.emscripten(final, append_ext=False, extra_args=extra_args)
  File "/opt/emscripten/tools/shared.py", line 736, in emscripten
    assert os.path.exists(filename + '.o.js') and len(open(filename + '.o.js', 'r').read()) > 0, 'Emscripten failed to generate .js: ' + str(compiler_output)
AssertionError: Emscripten failed to generate .js:
cat: speak.raw.js: No such file or directory

我在 windows 7 下运行 cygwin;所有 emscripten 健全性检查工作正常,我尝试将 emscripten /tmp 配置(主文件夹中的 .escripten)更改为多个值,授予权限等。似乎从未创建临时文件,所以当它尝试再次访问它时,它坏了。

欢迎任何帮助/指导/建议。

【问题讨论】:

  • 抱歉,我不知道脚本在做什么。如果您进入 Emscripten IRC 频道并对此进行 bug azakai,您可能会更快地找到解决方案 :)
  • 感谢您的提示,但我不知道哪个是 emscripten irc 任何 URL、链接?
  • 找到它(抱歉懒惰)IRC:#emscripten on irc.mozilla.org

标签: cygwin llvm llvm-clang emscripten espeak


【解决方案1】:

如果有人感兴趣,我会发布答案。

不幸的是,我找不到根本原因,但它不适用于 windows 7 x64 下的 cygwin。

我能够编译,但是,安装 clang、llvm visual studio express 以及此链接中的其余工具

Using emscripten with VS 2010

并使用 Windows 控制台执行与 emscripten.sh 中相同的操作。但是它不会用

编译

emcc -O2 --js-transform "python bundle.py" speak.bc -o speak.raw.js

您必须删除 -02 选项,它才有效。我正在测试不同的语言/音素并告诉你它是如何工作的

【讨论】:

    猜你喜欢
    • 2016-01-05
    • 1970-01-01
    • 2014-05-30
    • 1970-01-01
    • 2013-08-13
    • 1970-01-01
    • 1970-01-01
    • 2019-03-26
    • 1970-01-01
    相关资源
    最近更新 更多