Skip to content

vochlea/qt6-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qt 6 docker containers for CI

The collection of the linux docker containers for your CI. Supports native, android and windows.

Dockerhub: https://hub.docker.com/r/stateoftheartio/qt6

How to use

The images are not containing the dev libraries, so if the project needs some of such dependencies, you can build a new image on top of the base one or install the deps dynamically during the build.

In case you want to build in user dir - create it and mount as -v "${PWD}/build:/home/user/build:rw".

Linux GCC:

In the project directory run:

$ docker run -it --rm -v "${PWD}:/home/user/project:ro" stateoftheartio/qt6:6.2-gcc-aqt \
    sh -c 'sudo apt update; sudo apt install -y libgl-dev libvulkan-dev libtool; qt-cmake -G Ninja -S ./project -B ./build; cmake --build ./build'

Android:

In the project directory run:

$ docker run -it --rm -v "${PWD}:/home/user/project:ro" stateoftheartio/qt6:6.2-gcc-aqt \
    sh -c 'qt-cmake -DANDROID_SDK_ROOT=${ANDROID_SDK_ROOT} -DANDROID_NDK_ROOT=${ANDROID_NDK_ROOT} -S ./project -B ./build; cmake --build ./build'

Windows MinGW (wine):

In the project directory run:

$ docker run -it --rm -v "${PWD}:/home/user/project:ro" stateoftheartio/qt6:6.2-mingw-aqt \
    sh -c 'qt-cmake -S ./project -B ./build; cmake --build ./build'

How to build the image

Just go into the required directory and run:

docker build --pull --force-rm=true -t stateoftheartio/qt6:$(basename "${PWD}") .

Releases

No releases published

Packages

No packages published

Languages

  • Shell 75.4%
  • Dockerfile 21.8%
  • C++ 1.5%
  • CMake 1.2%
  • QML 0.1%