Hi,

In openSUSE, the transition from Qt 5.10 to Qt 5.11 is in progress; however, the build failed because some definitions for the QButtonGroup were missing. The necessary patches are attached.

This material is under the MIT license.

Larry
It seems that Qt 5.11 has reorganized some of the headers such that there are
missing definitions for items in the QButtonGroup class. The two changes below
allow VirtualBox to be built when Qt 5.11 is installed without harming builds
with Qt 5.10.

Signed-off-by: Larry Finger <larry.fin...@lwfinger.net>

Index: VirtualBox-5.2.12/src/VBox/Frontends/VirtualBox/src/precomp_vcc.h
===================================================================
--- VirtualBox-5.2.12.orig/src/VBox/Frontends/VirtualBox/src/precomp_vcc.h
+++ VirtualBox-5.2.12/src/VBox/Frontends/VirtualBox/src/precomp_vcc.h
@@ -83,6 +83,7 @@
 #include <QtWidgets/qgraphicsitem.h>
 #include <QtWidgets/qgraphicslayoutitem.h>
 #include <QtWidgets/qgraphicswidget.h>
+#include <QtWidgets/qbuttongroup.h>
 #include <QtCore/QMetaType>
 #include <QtGui/qevent.h>
 #include <QtGui/qtouchdevice.h>
Index: VirtualBox-5.2.12/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp
===================================================================
--- VirtualBox-5.2.12.orig/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp
+++ VirtualBox-5.2.12/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp
@@ -21,6 +21,7 @@
 
 /* Qt includes: */
 # include <QRegExpValidator>
+#include <QButtonGroup>
 
 /* GUI includes: */
 # include "QIWidgetValidator.h"
_______________________________________________
vbox-dev mailing list
vbox-dev@virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev

Reply via email to