Dockerfile for building a containerized Qt SW development environment for WebAssembly. The Docker images are published at forderud/qtwasm on Docker Hub.
Instructions:
- Download and install Docker desktop from https://www.docker.com/products/docker-desktop/
- Start Docker desktop in "Linux container" mode
Look at the scripts in the image subfolder.
Docker cleanup:
- Clean local images:
docker image prune - Clean build cache:
docker builder prune
From a Windows host:
- Run
build_cmake.batto build the sample project using CMake. A web browser will automatically open and load the app after the build process have completed.
- Qt for WebAssembly
- Qt Building projects on the command line - documents
qt-cmake - Emscripten.cmake toolchain for CMake (automatically applied by
qt-cmake)