Gets wxQt with Qt6 building with CMake, and samples (widgets, cube, pyramid) running.
Sort of implements #24208.
glib-2.0 is needed to work around removal of QAbstractEventDispatcher::hasPendingEvents() in Qt6.
https://github.com/wxWidgets/wxWidgets/pull/24345
(23 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@MaartenBent commented on this pull request.
Nice addition.
AppVeyor is still set to Qt 5.11 so requiring 5.15 causes problems there.
> @@ -126,14 +126,32 @@ if(UNIX AND NOT APPLE AND NOT WIN32 AND (WXX11 OR WXGTK2 OR (WXGTK AND wxHAVE_GD
endif()
if(WXQT)
- set(QT_COMPONENTS Core Widgets Gui OpenGL Test)
+ set(QT_COMPONENTS Core Widgets Gui OpenGL OpenGLWidgets Test)
+
+ find_package(Qt6 COMPONENTS ${QT_COMPONENTS})
+ if (Qt6_FOUND)
+ set(QT_MAJOR_VERSION 6)
+
+ find_package(PkgConfig REQUIRED)
+
+ pkg_check_modules (GLIB2 REQUIRED glib-2.0)
+ include_directories(${GLIB2_INCLUDE_DIRS})
This should be removed. We definitely do not wan't to add them to each target. Is adding them to wxTOOLKIT_INCLUDE_DIRS below not enough?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@dsa-t pushed 3 commits.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@dsa-t pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@dsa-t commented on this pull request.
> @@ -126,14 +126,32 @@ if(UNIX AND NOT APPLE AND NOT WIN32 AND (WXX11 OR WXGTK2 OR (WXGTK AND wxHAVE_GD
endif()
if(WXQT)
- set(QT_COMPONENTS Core Widgets Gui OpenGL Test)
+ set(QT_COMPONENTS Core Widgets Gui OpenGL OpenGLWidgets Test)
+
+ find_package(Qt6 COMPONENTS ${QT_COMPONENTS})
+ if (Qt6_FOUND)
+ set(QT_MAJOR_VERSION 6)
+
+ find_package(PkgConfig REQUIRED)
+
+ pkg_check_modules (GLIB2 REQUIRED glib-2.0)
+ include_directories(${GLIB2_INCLUDE_DIRS})
Seems enough, now fixed.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@dsa-t pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@AliKet Is there anything still worth keeping here or should this one be closed?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Can safely be closed as everything here is in master now, thanks.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Closed #24345.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()