QtWasm
QtWasm copied to clipboard
Dockerfile for building Qt projects for WebAssembly
Dockerfile for building a containerized Qt SW development environment for WebAssembly. The Docker images are published at forderud/qtwasm on Docker Hub.
Prerequisites
Instructions:
- Download and install Docker desktop from https://www.docker.com/products/docker-desktop/
- From the settings, configure http and https proxy settings, as well as proxy bypass
- Start Docker desktop in "Linux container" mode
How to build the image
Look at the scripts in the image
subfolder.
How to use the image
From a Windows host:
- Run either
build_cmake.bat
orbuild_qmake.bat
to build the sample project using either QMake or CMake. A web browser will automatically open and load the app after the build process have completed.
References
- https://blog.qt.io/blog/2019/03/05/using-docker-test-qt-webassembly/
- CMake toolkit: https://github.com/emscripten-core/emscripten/blob/main/cmake/Modules/Platform/Emscripten.cmake