VirtualBox

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#17835 closed defect (fixed)

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 (11)

comment:1 by Socratis, 6 years ago

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 6 years ago by Socratis (previous) (diff)

comment:2 by FredBezies, 6 years ago

Oops !

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

I hope it will help a little.

comment:3 by FredBezies, 6 years ago

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 by Dsen, 6 years ago

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 by FredBezies, 6 years ago

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 by FredBezies, 6 years ago

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 by Dsen, 6 years ago

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

comment:8 by FredBezies, 6 years ago

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 by Dsen, 6 years ago

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

comment:10 by Dsen, 6 years ago

Component: otherGUI
Resolution: fixed
Status: newclosed
Summary: Build process is broken in src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cppBuild process is broken in src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp -> fixed in 5.2.14

comment:11 by FredBezies, 6 years ago

Another QT 5.11 related-> https://www.virtualbox.org/ticket/17855

Version 0, edited 6 years ago by FredBezies (next)
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use