Android: Incomplete Qt6 support#2533
Closed
hoffie wants to merge 5 commits intojamulussoftware:masterfrom
Closed
Conversation
Related: jamulussoftware#2503 - Move all autobuild/android/* scripts to a single .github/autobuild/android.sh script which is called for the different stages (setup/build/get-artifacts). - Create functions with proper names for larger steps - Inline Github artifact output definition as it's shorter that way - Make shellcheck-clean - Drop wget dependency and use curl for all downloads - Keep variables as local as possible; only export what's necessary - Move further hardcoded versions to variables - Move build output to build/ - Drop dependencies libxkbcommon-x11-0 (unused) and openjdk-8-jre-headless (covered via jdk)
Now that all platforms have been converted to the new scheme (.github/autobuild/*), the autobuild directory only contains the ensure_THIS_JAMULUS_PROJECT_PATH.sh script which is no longer used. Related: jamulussoftware#2521
Qt6 no longer ships qtandroidextras. As of 6.2, there is no replacement either. The official workaround is to use the private headers which still contain the APIs we need: https://bugreports.qt.io/browse/QTBUG-84382?focusedCommentId=566019&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-566019 Fixes jamulussoftware#2528
This is still broken. The main reason is that Qt6 no longer supports building multiple ANDROID_ABIS in one go. This commit includes some attempts to work around this, but they don't work. Individual builds do work though.
Member
Author
|
As noted in the description, this PR has only been created for archival reasons. Therefore, I'm closing it. |
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.
Short description of changes
I'm creating this PR to document and archive the needed steps to get Android built with Qt6. Sadly, I'm hitting a dead end and will not continue this PR for now.
This PR is based on #2527. Until that PR is merged, its changed will show up here as well.
State of this PR:
qmakebinary. In addition that requires the Qticubuild because standard Debian(Ubuntu versions don't fit.AndroidManifest.xmllogic. They can simply be dropped..CHANGELOG:
QT += core-private, it requires a#define QtAndroid QtAndroidPrivateand other ugly logic. Even after that, it won't work out of the box as types are slightly different and *sync API versions have been dropped. Those changes are no longer part of the PR. I tried dropping the Android-specific code altogether in favor of adding the required permission (RECORD_AUDIO) directly to theAndroidManifest.xml.minSdkVersion=23which has been bumped accordingly.ANDROID_ABIS. There's no plan to re-add this feature forqmake-based builds. 6.3.0 re-adds support for this, but only for cmake-based projects.. This is the main reason why I stopped with this PR. I don't see a sane way forward. Some ideas for the future:qmake/makeruns. I tried that as part of the PR with no success. The necessary native libraries are built and kept there, butandroiddeployqtstill errors out.qmakeis a bit unclear for post-Qt6 anyway.Context: Fixes an issue?
Qt6 support.
Status of this Pull Request
Broken and won't be fixed in the short term.
What is missing until this pull request can be merged?
Multi-ABI support, see above.