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.
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)
- Clean up containers:
docker container prune --force - Clean up volumes:
docker volume prune --force - Clean local images:
docker image prune --force - Clean build cache:
docker builder prune --force - Clean up networks with routing tables:
docker network prune --force
Clean up everything: docker system prune