ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Meet Error: need the dylink section to be first & how to build libavcodec as wasm side module

未关闭
#401 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C
星标
17.8k
派生
1.1k
PR 合并指标
30 天内没有已合并 PR

描述

**I tried:**
build-with-docker.sh

echo "FFMPEG_EM_FLAGS=${FLAGS[@]}"
emmake make -j
\# emcc "${FLAGS[@]}"

emcc "${FLAGS[@]}" **-s SIDE_MODULE=2**

**And got:**

AR libavcodec/libavcodec.a
LD libavcodec/libavcodec.so.58
emcc: warning: linking a library with `-shared` will emit a static object file. This is a form of emulation to support existing build systems. If you want to build a runtime shared library use the SIDE_MODULE setting. [-Wemcc]
emcc: warning: ignoring unsupported linker flag: `-soname` [-Wlinkflags]
emcc: warning: ignoring unsupported linker flag: `--version-script` [-Wlinkflags

**And in the browser:**
![image](https://user-images.githubusercontent.com/1201634/187736653-80c1be7a-12f4-41e7-bfd0-9fd5ea07a7c8.png)

@jeromewu any ideas? thanks a lot.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。