Docker build images for Android and Linux Qt
9.5K
These Docker images allow you to very easily build a Qt app accross all platforms. You may use build system (e.g. Gitlab CI) to fully leverage these images.
Qt 6.3.2 (EOL 2023-04-12)
a12e/docker-qt:6.3-linux (Ubuntu 18.04 LTS, GCC 11.1, CMake 3.24.2, linuxdeployqt)Qt 6.4.0 (EOL 2023-09-29)
a12e/docker-qt:6.4-android (Ubuntu 22.04 LTS, CMake 3.24.2, OpenSSL 1.1.1q)a12e/docker-qt:6.4-linux (Ubuntu 18.04 LTS, GCC 11.1, CMake 3.24.2, linuxdeployqt)docker run -it --rm --volume $PWD:/src a12e/docker-qt:6.4-android
mkdir ~/build && cd ~/build
qt-cmake /src -DQT_ANDROID_BUILD_ALL_ABIS=YES
cmake --build . --target aab
docker run -it --rm --volume $PWD:/src a12e/docker-qt:6.4-linux
mkdir ~/build && cd ~/build
cmake /src
cmake --build . --parallel
cmake --install . --prefix $PWD/appdir/usr
linuxdeployqt appdir/usr/share/applications/*.desktop -qmldir=/src/resources/ -extra-plugins=platforms
cp -v /usr/lib/x86_64-linux-gnu/libstdc++.so.6 appdir/usr/lib/
linuxdeployqt appdir/usr/share/applications/*.desktop -appimage
OpenSSL for Android is compiled and installed directly inside the Qt directory, so you can easily link to or ship it:
find_package(OpenSSL 1.1 REQUIRED)
target_link_libraries(MyTarget PRIVATE
OpenSSL::Crypto # if needed by your app
OpenSSL::SSL # for androiddeplyqt: it will copy libssl.so in the APK
)
Linux images are built inside a 18.04 LTS Ubuntu, to allow the AppImage to be run on older systems. Otherwise, links to too recent versions of GLIBC are made. However, the libstdc++.so.6 needs to be deployed, because Qt requires C++17 features.
Content type
Image
Digest
sha256:9b39e587a…
Size
563 MB
Last updated
about 1 month ago
docker pull a12e/docker-qt:6.11-linux