VirtualBox

Ticket #19637 (new defect)

Opened 18 months ago

Last modified 18 months ago

QT 5.15 breaks VirtualBox (6.1.8)

Reported by: sqrt Owned by:
Component: GUI Version: VirtualBox 6.1.8
Keywords: Cc:
Guest type: other Host type: Linux

Description

Some Qt header files have changed in 5.15 and on my Gentoo box I am no longer able to compile VirtualBox (tested only with 6.1.8, others might break also). The issue is a complaint about QPâinterPath. E.g.:

kBuild: Compiling UICommon - /tmp/VirtualBox-6.1.8/src/VBox/Frontends/VirtualBox/src/globals/UIImageTools.cpp
/tmp/VirtualBox-6.1.8/src/VBox/Frontends/VirtualBox/src/globals/UIImageTools.cpp: In function ‘QImage betaLabelImage(const QSize&)’:
/tmp/VirtualBox-6.1.8/src/VBox/Frontends/VirtualBox/src/globals/UIImageTools.cpp:225:18: error: aggregate ‘QPainterPath tp’ has incomplete type and cannot be defined
  225 |     QPainterPath tp;
      |                  ^~
/tmp/VirtualBox-6.1.8/src/VBox/Frontends/VirtualBox/src/globals/UIImageTools.cpp:231:5: error: ‘QPainterPathStroker’ was not declared in this scope; did you mean ‘QPainterPath’?
  231 |     QPainterPathStroker pps;
      |     ^~~~~~~~~~~~~~~~~~~
      |     QPainterPath
/tmp/VirtualBox-6.1.8/src/VBox/Frontends/VirtualBox/src/globals/UIImageTools.cpp:232:18: error: variable ‘QPainterPath pp’ has initializer but incomplete type
  232 |     QPainterPath pp = pps.createStroke(tp);
      |                  ^~
/tmp/VirtualBox-6.1.8/src/VBox/Frontends/VirtualBox/src/globals/UIImageTools.cpp:232:23: error: ‘pps’ was not declared in this scope
  232 |     QPainterPath pp = pps.createStroke(tp);
      |                       ^~~
kmk: *** [/tmp/VirtualBox-6.1.8/kBuild/footer-pass2-compiling-targets.kmk:277: /tmp/VirtualBox-6.1.8/out/linux.amd64/release/obj/UICommon/src/globals/UIImageTools.o] Error 1
kmk: *** Waiting for unfinished jobs....

Attachments

vbox-6.1.8-qtpainterpath.patch Download (2.9 KB) - added by sqrt 18 months ago.
With this patch the build completes sucessfully

Change History

comment:1 follow-up: ↓ 2 Changed 18 months ago by fbatschu

What is "your Gentoo" box? Kernel version, distribution version please. /etc/os-release

Last edited 18 months ago by fbatschu (previous) (diff)

Changed 18 months ago by sqrt

With this patch the build completes sucessfully

comment:2 in reply to: ↑ 1 Changed 18 months ago by sqrt

Replying to fbatschu:

What is "your Gentoo" box? Kernel version, distribution version please. /etc/os-release

# cat /etc/os-release NAME=Gentoo ID=gentoo PRETTY_NAME="Gentoo/Linux" ANSI_COLOR="1;32" HOME_URL=" https://www.gentoo.org/" SUPPORT_URL=" https://www.gentoo.org/support/" BUG_REPORT_URL=" https://bugs.gentoo.org/"

Kernel is 5.6.15 Arch is x86/64

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use