Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ffmpeg 共享:错误:闭包编译器失败(rc:1)_Ffmpeg_Emscripten_Cc - Fatal编程技术网

Ffmpeg 共享:错误:闭包编译器失败(rc:1)

Ffmpeg 共享:错误:闭包编译器失败(rc:1),ffmpeg,emscripten,cc,Ffmpeg,Emscripten,Cc,我想构建ffmpeg.js,但运行make all时出现以下错误: pop()()}}var shouldRunNow=true;if(Module["noInitialRun"]) {shouldRunNow=false}Module["noExitRuntime"]=true;run();return __ffmpegjs_return}module["exports"]=__ffmpegjs;

我想构建ffmpeg.js,但运行make all时出现以下错误:

    pop()()}}var shouldRunNow=true;if(Module["noInitialRun"])
{shouldRunNow=false}Module["noExitRuntime"]=true;run();return
 __ffmpegjs_return}module["exports"]=__ffmpegjs;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
    ^^^^^^^^^^^^^^^
    1 error(s), 6 warning(s)
    shared:ERROR: closure compiler failed (rc: 1)
    Makefile:316: recipe for target 'ffmpeg-webm.js' failed
    make: *** [ffmpeg-webm.js] Error 1 
Makefile中的相关行包括:

# Compile bitcode to JavaScript.
# NOTE(Kagami): Bump heap size to 64M, default 16M is not enough even
# for simple tests and 32M tends to run slower than 64M.
EMCC_COMMON_ARGS = \
    --closure 1 \
    -s TOTAL_MEMORY=67108864 \
    -s OUTLINING_LIMIT=20000 \
    -O3 --memory-init-file 0 \
    --pre-js $(PRE_JS) \
    -o $@

ffmpeg-webm.js: $(FFMPEG_WEBM_BC) $(PRE_JS) $(POST_JS_SYNC)
    emcc $(FFMPEG_WEBM_BC) $(WEBM_SHARED_DEPS) \ --------->>>>> THIS IS LINE 316
        --post-js $(POST_JS_SYNC) \
        $(EMCC_COMMON_ARGS)

如何使用emcc正确构建ffmpeg.js?

它说Closure编译器失败了。拆下密封件1。为了编译,您可能需要将优化标志减少到-O2。如您所见,根据我的经验,Emscripten优化器在JS模块化代码方面存在一些缺陷

最好尝试编译任何没有任何优化标志的东西,然后逐渐启用它们