Overview
- Full name
docker.io/lvglio/emscripten-sdl2- Registry
- docker.io
- Namespace
- lvglio
- Repository
- emscripten-sdl2
- Cached tags
- 3
- Last synced
- 07/06/2026, 02:59 AM
Introduction
Emscripten + SDL2 交叉编译基础镜像,将 C/C++ 代码编译为 WebAssembly,LVGL 嵌入式 GUI Web 化构建专用。
Details
lvglio/emscripten-sdl2 集成 Emscripten SDK 与 SDL2,将 C/C++ 源码交叉编译为 WebAssembly 可执行文件。定位为 WASM 交叉编译 --rm 构建镜像,CI Job 挂载源码执行 emcc;非独立业务服务。
快速启动
docker run --rm \
docker.io/lvglio/emscripten-sdl2:latest \
emcc --version
推荐实践
docker run --rm \
-v $(pwd):/src -w /src \
docker.io/lvglio/emscripten-sdl2:3.1.50 \
emcc main.c -o main.html -s USE_SDL=2
核心参数说明
emcc— Emscripten C 编译器-v .../src:...— 源码挂载- 定位 — WASM
--rm构建 CI - 固定 tag — Emscripten 版本 pin
Latest tags (20)
View all 3 tags →| Tag | Arch | Pushed At | Size | Digest | Sync | Wish | Action |
|---|---|---|---|---|---|---|---|
docker.io/lvglio/emscripten-sdl2 :0.2.0 | linux/amd64linux/arm64 | 2025/12/12 07:28 | 711.6 MB | sha256:28b8da190229… | |||
docker.io/lvglio/emscripten-sdl2 :0.3.0 | linux/amd64linux/arm64 | 2025/08/14 13:47 | 711.8 MB | sha256:f00e4c0f873d… | |||
docker.io/lvglio/emscripten-sdl2 :0.1.0 | linux/amd64 | 2025/04/02 06:36 | 950.9 MB | sha256:95abf9c65f20… |