Repository navigation
Ship Qt 6.8.1 and GCC 15 in place of Ubuntu's Qt 6.4 - #1
Merged
Merged
Conversation
Ubuntu 24.04's Qt is 6.4, which is out of support and older than morph needs: morph's CI installs Qt 6.8.1 through aqtinstall on every Qt job, so nothing used the image's Qt. The image now installs Qt 6.8.1 (WebSockets, Multimedia) the same way, in its own stage, at $QT_ROOT_DIR, with CMAKE_PREFIX_PATH set so find_package(Qt6) needs no hint. The runtime libraries its libraries and the offscreen platform plugin load are installed explicitly, since qt6-base-dev no longer pulls them in. GCC 15 comes from the ubuntu-toolchain-r PPA as gcc-15/g++-15, for morph's GCC jobs. gcc and g++ stay GCC 14. Installing GCC 15 also installs libstdc++ 15, which clang would pick up over 14; clang.cfg and clang++.cfg pin it to GCC 14, so pace's clang builds compile against the same library as its native legs. The smoke test checks all three: g++-15 builds and runs a program, gcc is GCC 14 and clang selects GCC 14, every Qt library and the offscreen plugin resolve, and a CMake project finds Qt with no hint and runs offscreen. Run locally against an image built from this Dockerfile, it passes; morph also configures in it with g++-15 and finds Qt 6.8.1. The image grows to 3.9 GB. LANG is set to C.UTF-8, the hosted runner's, which Qt otherwise warns about. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
$QT_ROOT_DIR, found byfind_package(Qt6)with no hint.gcc-15/g++-15for morph's GCC jobs.gcc/g++stay GCC 14.clang.cfg/clang++.cfgpin--gcc-install-dirto 14, so pace's clang builds and seeds are unchanged.LANG=C.UTF-8as on hosted runners.Verification
Built locally from this Dockerfile (
ubuntu:24.04base, empty seed) and ran the updated smoke step against it:gccis 14; clang reportsSelected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/14.libQt6*.so.6and the offscreen platform plugin resolve (libQt6Quick3DSpatialAudioexcluded: it ships with qtmultimedia but links Qt Quick 3D, which nobody installs).g++-15and finds Qt 6.8.1 (Qt6_DIR=/opt/Qt/6.8.1/gcc_64/lib/cmake/Qt6).Not verified: the publish workflow's own run (this PR runs it up to the smoke test), and the warm-up of pace's seeds against the new image. The clang pin is meant to leave pace's cache keys unchanged, but I haven't measured that.
Cost
The image grows to 3.9 GB, mostly Qt; every job that pulls it, pace's included, downloads that.
🤖 Generated with Claude Code
https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb