如何为 WebAssembly 构建库?

问题描述 投票:0回答:0

我想在我的 WebAssembly 项目中使用 FFmpeg 库 (libav),使用 Emscripten。

我想我需要从源代码构建库来创建“.a”文件。 (如有错误请指正)

我认为第一步是运行

emconfigure ./configure
(如果我错了请纠正我),但我一直得到这个错误:

emconfigure: error: './configure' failed: [WinError 193] %1 is not a valid Win32 application

我认为这是因为“配置”文件适用于 Linux 而不是 Windows。 (如有错误请指正)

我尝试在 Windows 上使用 Git Bash 执行此操作,结果相同。

是否可以在 Windows 上运行配置文件?

是否可以在 Windows 上为 WebAssembly 构建我需要的库?

static-libraries webassembly static-linking emscripten libav
© www.soinside.com 2019 - 2024. All rights reserved.