Easy to use images to build QT applications
2.5K
This repository contains Linux-based Docker images (Ubuntu) pre-installed with the Qt framework, including all standard plugins and essential build tools. These images are specifically designed to streamline CI/CD workflows and facilitate cross-platform builds for Linux and Windows.
git, curl, and ca-certificates for seamless integration with GitHub Actions, GitLab CI, and Jenkins.make, cmake, and necessary Qt modules.Images follow a standardized naming convention:
qt<Qt version>-<OS version>-<compiler>[-<date of build>]
6.10.0).linux64 or win64).gcc for Linux or mingw for Windows).To pull the image for Qt 6.10.0 targeting Windows:
docker pull dalogik/qt-docker:qt6.10.0-win64-mingw
You can run the container to build your project. For example, if your project uses a Qt .pro file:
docker run --rm -it -v /path/to/your/project:/source \
dalogik/qt-docker:qt6.10.0-win64-mingw \
bash -c 'mkdir -p /source/build && cd /source/build && qmake .. && mingw32-make && windeployqt --dir deploy release/*.exe'
Automate your qmake builds by adding this to your GitHub workflow:
jobs:
build:
runs-on: ubuntu-latest
container: dalogik/qt-docker:qt6.10.0-win64-mingw
steps:
- uses: actions/checkout@v7
- run: |
mkdir build
cd build
qmake ..
mingw32-make
windeployqt --dir deploy release/*.exe
Automate your CMake builds with configured install step by adding this to your GitHub workflow:
jobs:
build:
runs-on: ubuntu-latest
container: dalogik/qt-docker:qt6.10.0-win64-mingw
steps:
- uses: actions/checkout@v7
- run: |
# Create a directory Wine can own
mkdir -p /tmp/wineprefix
export WINEPREFIX=/tmp/wineprefix
# Build
cmake -B build -G Ninja
cmake --build build --config Release
cmake --install build --config Release --prefix $GITHUB_WORKSPACE/deployment_dir
| Qt version | Linux | Windows |
|---|---|---|
| 6.8.0 | ✅ | ✅ |
| 6.9.0 | ✅ | ✅ |
| 6.10.0 | ✅ | ✅ |
| 6.11.0 | ✅ | ✅ |
| 6.12.0 | ✅ | ❌ |
Content type
Image
Digest
sha256:fda126c2b…
Size
970.9 MB
Last updated
4 days ago
docker pull dalogik/qt-docker:qt6.11.2-win64-mingw