Repository navigation
Fix rviz Qt6 threshold: 15.1 → 15.1.14 - #3807
Merged
Merged
Conversation
nbbrooks
force-pushed
the
nbbrooks/rviz-qt6-threshold-15.1.14
branch
from
August 2, 2026 20:42
c9ab5b0 to
58af015
Compare
The Qt6 gates added in #3707 test `rviz2_VERSION VERSION_GREATER_EQUAL 15.1`, but rviz did not switch to Qt6 at 15.1.0. ros2/rviz#1635 ("Use qt6 as the default dependency from rosdep", ahcorde, merged 2025-12-08, commit 4784c8cd) first shipped in the 15.1.14 tag on 2025-12-17. Bisecting rviz_common's package.xml: 15.1.11 qtbase5-dev 15.1.12 qtbase5-dev 15.1.13 qtbase5-dev 15.1.14 qt6-base-dev <- switch So 15.1.0 through 15.1.13 are Qt5 but are currently classified as Qt6. Any build against an rviz in that window picks Qt6 while rviz itself is Qt5. No active distro sits in that window today (humble 11.2.x, jazzy 14.1.x, kilted 15.0.x are Qt5; lyrical 15.2.x and rolling 16.0.x are Qt6), so this is latent rather than currently breaking -- but kilted is at 15.0.13, one patch series below the bad range. Applied to all 8 CMakeLists.txt carrying the gate (moveit_ros/visualization plus the 7 moveit_setup_assistant packages). Verified in osrf/ros:<distro>-desktop containers that rviz2_VERSION and rviz_common_VERSION agree and that the corrected gate still resolves correctly: kilted 15.0.13 -> Qt5, lyrical 15.2.4 -> Qt6, rolling 16.0.1 -> Qt6. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
nbbrooks
force-pushed
the
nbbrooks/rviz-qt6-threshold-15.1.14
branch
from
August 2, 2026 23:57
58af015 to
ede3d8a
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3807 +/- ##
==========================================
+ Coverage 46.21% 46.30% +0.09%
==========================================
Files 726 726
Lines 59510 59506 -4
Branches 7623 7623
==========================================
+ Hits 27497 27547 +50
+ Misses 31845 31793 -52
+ Partials 168 166 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
2 of 5 tasks
2 of 5 tasks
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.
Description
Follow-up to #3707. The Qt6 gates it added test
rviz2_VERSION VERSION_GREATER_EQUAL 15.1, but rviz didn't switch to Qt6 at 15.1.0.ros2/rviz#1635 — "Use qt6 as the default dependency from rosdep" (ahcorde, merged 2025-12-08,
4784c8cd) — first shipped in the 15.1.14 tag on 2025-12-17.Bisecting
rviz_common/package.xmlupstream:qtbase5-devqtbase5-devqtbase5-devqt6-base-devSo 15.1.0 – 15.1.13 are Qt5 but currently classify as Qt6. Building against an rviz in that window selects Qt6 while rviz itself is Qt5.
Impact
Latent, not currently breaking — no active distro is in the bad window:
rviz2_VERSIONWorth fixing anyway: kilted is at 15.0.13, one patch series below the bad range.
Note the failure mode is not a silent ABI mismatch — where Qt5 and Qt6 are both installed,
find_package(Qt6)after rviz's Qt5 has defined the versionlessQt::Coretarget aborts the configure withSome (but not all) targets in this export set were already defined.Changes
15.1→15.1.14in all 8CMakeLists.txtcarrying the gate (moveit_ros/visualization+ the 7moveit_setup_assistantpackages), and the comment now records which release introduced the switch.Validation
Probed
osrf/ros:<distro>-desktopcontainers: confirmedrviz2_VERSIONandrviz_common_VERSIONagree, and the corrected gate still resolves correctly — kilted 15.0.13 → Qt5, lyrical 15.2.4 → Qt6, rolling 16.0.1 → Qt6.Checklist
🤖 Generated with Claude Code