VirtualBox

Ticket #17835 (closed defect: fixed)

Opened 15 months ago

Last modified 15 months ago

Build process is broken in src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp -> fixed in 5.2.14

Reported by: FredBezies Owned by:
Component: GUI Version: VirtualBox 5.2.12
Keywords: Cc:
Guest type: other Host type: other

Description

Hello.

I was trying to build from svn VirtualBox, after I saw this commit: https://www.virtualbox.org/changeset/72641/vbox

I thought it will fix a nasty graphic bug I reported: https://www.virtualbox.org/ticket/17827

While trying to build, process is stopped in src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp.

Here is the log just before build error:

/home/fred/virtualbox-svn/src/VirtualBox/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp: In member function 'void UIGlobalSettingsProxy::prepare()':
/home/fred/virtualbox-svn/src/VirtualBox/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp:215:59: error: invalid use of incomplete type 'class QButtonGroup'
         QButtonGroup *pButtonGroup = new QButtonGroup(this);
                                                           ^
In file included from /usr/include/qt/QtWidgets/qradiobutton.h:44,
                 from /usr/include/qt/QtWidgets/QRadioButton:1,
                 from /home/fred/virtualbox-svn/src/VirtualBox/out/linux.amd64/release/obj/VBoxGlobal/qtuic/UIGlobalSettingsProxy.gen.h:33,
                 from /home/fred/virtualbox-svn/src/VirtualBox/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.h:23,
                 from /home/fred/virtualbox-svn/src/VirtualBox/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp:27:
/usr/include/qt/QtWidgets/qabstractbutton.h:53:7: note: forward declaration of 'class QButtonGroup'
 class QButtonGroup;
       ^~~~~~~~~~~~
/home/fred/virtualbox-svn/src/VirtualBox/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp:219:25: error: invalid use of incomplete type 'class QButtonGroup'
             pButtonGroup->addButton(m_pRadioProxyAuto);

~

And it goes on for three or four more times...

Really annoying because since my distribution migrated to QT 5.11, both toolbar and statusbar are not displayed on start.

Change History

comment:1 Changed 15 months ago by socratis

You didn't mention your distribution or anything regarding your environment. For a moment I thought you were building it on OSX and I got worried, until I saw the "my distribution" part...

BTW, it builds fine on OSX, rev. 72642.

Last edited 15 months ago by socratis (previous) (diff)

comment:2 Changed 15 months ago by FredBezies

Oops !

Archlinux 64 bits ; QT 5.11.1-1 ; gcc 8.1.

I hope it will help a little.

comment:3 Changed 15 months ago by FredBezies

A week later or so, and building process is still busted, on Archlinux with gcc 8.1.1, QT 5.11.1.

I tried with svn revision 72730. Ouch!

comment:4 Changed 15 months ago by Dsen

Hello FredBezies.
Thing is, we are not maintaining Qt 5.11 yet, as we haven't heard of any distributions using it. But it seems first of them already appeared, so we have to check what's going on there. I did a blind fix in r72664 but seems it either didn't worked or that bug was just not alone. Since you haven't mentioned other build issues, I was not trying to fix anything else.
Personally I have no Linux distribution with Qt 5.11, so before you told us there is a problem I had no even idea there was something. Of course we are going to fix those issues but please take into account they are not of top priority for us now.
You can either wait for now or give me a list of all build issues you have with Qt 5.11.
Thanks.

comment:5 Changed 15 months ago by FredBezies

Well, for your information, here are some Linux distributions using QT 5.11.

  1. Archlinux
  2. Manjaro Linux
  3. OpenSuSE Tumbleweed
  4. Fedora Linux 28+

I will try to attach asap an error log when trying to build virtualbox-svn on my Archlinux.

comment:6 Changed 15 months ago by FredBezies

Looks like Archlinux team applies a patch to get VirtualBox GUI to be build against QT 5.11.

 https://git.archlinux.org/svntogit/community.git/tree/trunk/010-qt-5.11.patch?h=packages/virtualbox

comment:7 Changed 15 months ago by Dsen

But that was a patch I did some time ago, in r72664. You said that was not enough.

comment:8 Changed 15 months ago by FredBezies

I was not aware of this point. Looks like I was using a bad PKGBUILD.

Sorry.

This bug is no longer relevant. I'm asking you to close it. Thanks.

comment:9 Changed 15 months ago by Dsen

Thank you. Please let me know if something similar happens in future.

comment:10 Changed 15 months ago by Dsen

  • Status changed from new to closed
  • Resolution set to fixed
  • Component changed from other to GUI
  • Summary changed from Build process is broken in src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp to Build process is broken in src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp -> fixed in 5.2.14

comment:11 Changed 15 months ago by FredBezies

Another QT 5.11 related-> #17855

Last edited 15 months ago by janitor (previous) (diff)
Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use