Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Qt6 #170

Open
wants to merge 13 commits into
base: rolling
Choose a base branch
from
Open

Support Qt6 #170

wants to merge 13 commits into from

Conversation

ahcorde
Copy link

@ahcorde ahcorde commented Jun 27, 2024

Support Qt6

@ahcorde ahcorde requested a review from clalancette June 27, 2024 15:52
@ahcorde ahcorde self-assigned this Jun 27, 2024
@ahcorde ahcorde marked this pull request as ready for review June 27, 2024 15:52
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
@ahcorde ahcorde changed the base branch from ahcorde/rolling/turtlesim_msgs to rolling June 28, 2024 10:56
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Copy link

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

One small thing I think we should fix, this otherwise looks good to me.

turtlesim/CMakeLists.txt Outdated Show resolved Hide resolved
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
@ahcorde ahcorde requested a review from clalancette July 2, 2024 07:43
@ahcorde
Copy link
Author

ahcorde commented Jul 10, 2024

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

Signed-off-by: Alejandro Hernández Cordero <[email protected]>
@ahcorde
Copy link
Author

ahcorde commented Jul 10, 2024

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@ahcorde
Copy link
Author

ahcorde commented Jul 12, 2024

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
@ahcorde
Copy link
Author

ahcorde commented Jul 17, 2024

  • Windows Build Status

Signed-off-by: Alejandro Hernández Cordero <[email protected]>
@ahcorde
Copy link
Author

ahcorde commented Jul 18, 2024

  • Windows Build Status

Signed-off-by: Alejandro Hernández Cordero <[email protected]>
@ahcorde
Copy link
Author

ahcorde commented Jul 18, 2024

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@ahcorde
Copy link
Author

ahcorde commented Jul 22, 2024

friendly ping @clalancette

1 similar comment
@ahcorde
Copy link
Author

ahcorde commented Jul 29, 2024

friendly ping @clalancette

Comment on lines 17 to 22
find_package(Qt6 COMPONENTS Widgets QUIET)
set(QT_VERSION_MAJOR 6)
if(NOT Qt6_FOUND)
find_package(Qt5 REQUIRED COMPONENTS Widgets)
set(QT_VERSION_MAJOR 5)
endif()

Choose a reason for hiding this comment

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

I'm somewhat concerned about this logic.

In particular, I think we want to continue to use Qt5 right now, but have everything in place so that we could switch to Qt6 in the future.

Because of the way we build binary packages, we will only install Qt5 libraries, and thus we'll continue to build against Qt5 for binaries.

But in from-source builds, it depends on what the user has installed. Thus, I'm a bit afraid that we'll get bug reports from users saying things won't compile properly due to Qt6 being installed. And I don't think we are quite ready for that.

So my suggestion here is to hide this whole thing behind a CMake option, something like USE_QT6. The the logic would be something like:

if (USE_QT6)
  find_package(Qt6 REQUIRED COMPONENTS Widgets)
  set(QT_VERSION_MAJOR 6)
else()
  find_package(Qt5 REQUIRED COMPONENTS Widgets)
  set(QT_VERSION_MAJOR 5)
endif()

What do you think?

Signed-off-by: Alejandro Hernández Cordero <[email protected]>
@ahcorde
Copy link
Author

ahcorde commented Jul 31, 2024

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

Signed-off-by: Alejandro Hernández Cordero <[email protected]>
@ahcorde ahcorde requested a review from clalancette July 31, 2024 10:40
@ahcorde
Copy link
Author

ahcorde commented Aug 19, 2024

friendly ping @clalancette

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