https://github.com/forderud/qtwasm
Docker image for building Qt projects for WebAssembly
https://github.com/forderud/qtwasm
docker qt webassembly
Last synced: 3 months ago
JSON representation
Docker image for building Qt projects for WebAssembly
- Host: GitHub
- URL: https://github.com/forderud/qtwasm
- Owner: forderud
- Created: 2019-05-09T20:41:25.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2026-03-24T11:56:55.000Z (3 months ago)
- Last Synced: 2026-03-26T04:09:02.416Z (3 months ago)
- Topics: docker, qt, webassembly
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/forderud/qtwasm
- Size: 243 KB
- Stars: 19
- Watchers: 5
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Dockerfile for building a containerized Qt SW development environment for WebAssembly. The Docker images are published at [forderud/qtwasm](https://hub.docker.com/repository/docker/forderud/qtwasm) on Docker Hub.
## Prerequisites
Instructions:
* Download and install Docker desktop from https://www.docker.com/products/docker-desktop/
* Start Docker desktop in "Linux container" mode
## How to build the image
Look at the scripts in the `image` subfolder.
Docker cleanup:
* Clean local images: `docker image prune`
* Clean build cache: `docker builder prune`
## How to use the image
From a Windows host:
* Run `build_cmake.bat` to build the sample project using CMake. A web browser will automatically open and load the app after the build process have completed.
## References
* [Qt for WebAssembly](https://doc.qt.io/qt-6/wasm.html)
* Qt [Building projects on the command line](https://doc.qt.io/qt-6/cmake-build-on-cmdline.html) - documents `qt-cmake`
* [Emscripten.cmake](https://github.com/emscripten-core/emscripten/blob/main/cmake/Modules/Platform/Emscripten.cmake) toolchain for CMake (automatically applied by `qt-cmake`)