Skip to content

Conversation

@rubenp02
Copy link
Contributor

@rubenp02 rubenp02 commented Jun 3, 2025

Fix QML module conversion for Qt 6.6.3

Description

Fixed issues with the runtime discovery of modules defined with qt_add_qml_module in 6.6.3, which were causing the app to crash on startup.

Key changes:

  • Explicitly linked all QML modules defined with qt_add_qml_module.
  • Added the NO_PLUGIN option to all qt_add_qml_module calls, as unlike in Qt 6.8.X, it is always needed in 6.6.3 for this style of module.

Note: The changes above should be reverted once Qt 6.6.3 support is dropped.

In addition to this, the plugin workaround used in some of these modules has been replaced with the NO_PLUGIN option in qt_add_qml_module, which is the supported way to disable plugin generation for static QML modules.

Checklist:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Previously, static QML module libraries were linked using non-existent
plugin targets. This commit replaces that workaround with the NO_PLUGIN
option in qt_add_qml_module, which is the supported way to disable
plugin generation for static QML modules.
@rubenp02 rubenp02 force-pushed the bugfix/fix-qml-module-conversion-for-qt-6.6.3 branch 2 times, most recently from 7d0293c to d4d8bab Compare June 3, 2025 10:48
Fixed issues with the runtime discovery of modules defined with
qt_add_qml_module in 6.6.3, which were causing the app to crash on
startup.

Key changes:
- Explicitly linked all QML modules defined with qt_add_qml_module.
- Added the NO_PLUGIN option to all qt_add_qml_module calls, as unlike
  in Qt 6.8.X, it is always needed in 6.6.3 for this style of module.

Note: This commit should be reverted once Qt 6.6.3 support is dropped.
@rubenp02 rubenp02 force-pushed the bugfix/fix-qml-module-conversion-for-qt-6.6.3 branch from d4d8bab to 70dd3dd Compare June 3, 2025 11:52
@DonLakeFlyer
Copy link
Collaborator

Ok, so then #12974 isn't needed right?

@DonLakeFlyer
Copy link
Collaborator

@rubenp02 Can you create an Issue which details what should be changed back when we bail on 6.6.3 support and assign to me?

@DonLakeFlyer
Copy link
Collaborator

Changed look good.

@DonLakeFlyer DonLakeFlyer merged commit 8af4b3d into mavlink:master Jun 6, 2025
11 of 12 checks passed
@rubenp02
Copy link
Contributor Author

rubenp02 commented Jun 6, 2025

@rubenp02 Can you create an Issue which details what should be changed back when we bail on 6.6.3 support and assign to me?

Done at #12977. I have no permissions to assign issues though.

@rubenp02 rubenp02 deleted the bugfix/fix-qml-module-conversion-for-qt-6.6.3 branch June 6, 2025 20:03
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