Repository navigation
Description
What is the current behaviour and why should it be changed?
Currently Jamulus is built predominantly with qmake and a Jamulus.pro project file specifying the cross-platform build specification.
Qt6 is moving away from the use of qmake and project files. For example, it is no longer possible to use qmake and androidinstallqt to produce an Android multi-ABI APK/AAB.
The recommended tooling is based around cmake and there is a project-provided migration tool to move from qmake to cmake.
However, it comes with a number of provisos and the output would need to be reviewed carefully for each target platform to ensure that Jamulus remains buildable on those platforms.
We also need to investigate the use of cmake for the legacy builds.
Describe possible approaches
- Drop Qt
One option is to take this as the point at which we decide that Qt is no longer the right cross-platform development environment for Jamulus.
The obvious downside is there is a very large amount of work involved in porting to any other platform - primarily the UI but also the inter-component communication, networking and audio. - Halt updates to Qt, supply only Qt5 builds for Android and do not look to publish Jamulus on Play Store
Clearly this saves a lot of work. However, it's likely to mean that support for Android is dropped in the medium term.
Given there is no simple solution, the least bad solution is probably to take the hit on Qt6:
- Split into Qt5 (legacy) and Qt6 (modern) work streams
- Migrate the Qt6 builds to
cmake - Pin the legacy builds to "last known working versions" of all dependencies
Has this feature been discussed and generally agreed?
No. We need to come up with an agreed plan.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTriage
Activity
pljones commentedon Sep 27, 2026
Of course, there's another alternative I missed:
androiddeployqt"as is" and have four separate APKs.It's less work to add support for eight outputs from the AutoBuild matrix (or we make the
debugstream another manual build option and have four) but means never getting to Play Store.mcfnord commentedon Sep 27, 2026
🤖 AI: I ran
qmake2cmake1.0.8 onJamulus.proat43718fdbwith--min-qt-version 6.2. It exits 0 with no warning and writes 892 lines, but the result does not configure:project(... VERSION 3.12.5dev)is rejected at line 2, andtarget_compile_options(Jamulus -ftree-vectorize)has no scope keyword. Dropped silently: the eight client files inSOURCES_GUI,SOURCES_JACK, the oboe$$files()glob (copied as literal text), everyQMAKE_*setting including/DYNAMICBASE:NOand the SSE per-file compilers whileOPUS_HAVE_RTCD=1stays defined, and theTRANSLATIONSlist.Qt::AndroidExtrasis kept as a Qt 6 component (#2528).Of the nine CI configurations in
autobuild.yml, three build on Qt 6.10.2 (macOS and both Windows x64 builds); the other six, Android and iOS among them, are on 5.15.2, so the Qt5/Qt6 split already exists. The Android premise is stated outright in Qt's own docs: "Building multi-ABI packages with qmake is not supported in Qt 6".Hand-fixing the output is a longer road than the clean exit suggests: seven scripted edits took it to a linked, running binary on Linux (Qt 6.8.2, aarch64) and nine on Windows (Qt 6.10.2, MSVC), each round exposing another silent drop — no
AUTOUIC, the client.uifiles, the client sources, the JACK sources and theirPKGCONFIGline, and every ARM and x86 Opus source, so both binaries run generic-C Opus. On the Pi,qmake6compiles 169 sources and the output'scompile_commands.jsonlists 160, yet the cmake server served 5 clients within 1% of the qmake build's CPU, so running it reveals nothing. The two Windows-only rounds were Qt 6 facts the converter cannot know: AUTOMOC hands moc no_WIN32(so it mocs the POSIX branch ofCSignalHandler;AUTOMOC_MOC_OPTIONSfixes it), andDEFINES -= UNICODE(the ASIO SDK'sasiolist.cpp) isqt_disable_unicode_defines()in cmake. macOS adds a third: Qt definesMACOSandGCConly in its own build, so the converter'sif(MACOS)andif(GCC)guards never fire for a consuming project. On macOS 12.7.6 with Qt 6.10.2,MACOSis undefined whileAPPLEis set, and the target takes the JACK sound code instead of CoreAudio; on Linux the deadif(GCC)turns qmake's-O2 -ftree-vectorizeinto-O3.The first check for each migration step is a diff of sources, defines and flags against the qmake build:
CMakeLists.txtbesideJamulus.pro, Qt 6 only, starting from the hand-fixed output. Done when the diff on Linux prints nothing.deploy_windows.ps1becomes cmake. Both legs are on Qt 6.10.2 already, and the two Windows-only fixes are above.deploy_mac.sh, also Qt 6.10.2, once the dead guards above are fixed.QT_ANDROID_ABISfor the multi-ABI package, onceAndroidExtrasis gone. This is the step the issue is about.The six Qt 5 legs keep
Jamulus.pro, pinned as proposed.ann0see commentedon Sep 29, 2026
I think we'll need to move to cmake in the medium term and then slowly move away from Qt in the long term.
The conversion to cmake should be a perfect application of AI (under supervision and testing). We should probably do it step by step...