Skip to content

On android, release and debug outputs overwrite - avoid - #3904

Draft
pljones wants to merge 1 commit into
jamulussoftware:mainfrom
pljones:bugfix/avoid-android-release-debug-conflict
Draft

On android, release and debug outputs overwrite - avoid#3904
pljones wants to merge 1 commit into
jamulussoftware:mainfrom
pljones:bugfix/avoid-android-release-debug-conflict

Conversation

@pljones

@pljones pljones commented Aug 15, 2026

Copy link
Copy Markdown
Collaborator

Short description of changes

Currently, when running qmake for an android build, the command completes with

WARNING: Targets of builds 'ReleaseArm64-v8a' and 'DebugArm64-v8a' conflict: libJamulus_arm64-v8a.so.

because both targets write the same pre-packaging file in the project root (rather than under the Release or Debug ABI directory). For example: https://github.com/jamulussoftware/jamulus/actions/runs/31731502137/job/94565506319

This change splits the DESTDIR for debug and release runs so there is no conflict and makes the other necessary changes to get the build to assemble the final target.

CHANGELOG: SKIP

Context: Fixes an issue?

Build conflict on android.

Does this change need documentation? What needs to be documented and how?

No.

Status of this Pull Request

Could do with someone who knows the intent of debug_and_release confirming this is a sensible fix. It appears to work.

What is missing until this pull request can be merged?

Needs a second opinion on the approach.

Checklist

  • I've verified that this Pull Request follows the general code principles
  • I tested my code and it does what I want
  • My code follows the style guide
  • I waited some time after this Pull Request was opened and all GitHub checks completed without errors.
  • I've filled all the content above

@pljones
pljones requested review from softins and a lite review from Copilot August 15, 2026 15:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the project’s qmake configuration to avoid Android build conflicts where debug and release targets overwrite the same pre-packaging .so output during multi-ABI builds.

Changes:

  • Stop enabling debug_and_release when building for Android to prevent conflicting output targets.
  • Keep debug_and_release enabled for non-Android builds.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread Jamulus.pro Outdated
@pljones
pljones force-pushed the bugfix/avoid-android-release-debug-conflict branch from 5e0808e to 53a2e61 Compare August 15, 2026 16:26
@pljones
pljones requested a lite review from Copilot August 15, 2026 17:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread Jamulus.pro
Comment on lines +269 to +272
CONFIG -= android_install
android_lib.files = $$DESTDIR/libJamulus_$${QT_ARCH}.so
android_lib.path = /libs/$$ANDROID_TARGET_ARCH
INSTALLS += android_lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants