VirtualBox

Opened 4 years ago

Last modified 4 years ago

#19637 new defect

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

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

Download all attachments as: .zip

Change History (3)

comment:1 by Frank Batschulat (Oracle), 4 years ago

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

Last edited 4 years ago by Frank Batschulat (Oracle) (previous) (diff)

by sqrt, 4 years ago

With this patch the build completes sucessfully

in reply to:  1 comment:2 by sqrt, 4 years ago

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.

© 2023 Oracle
ContactPrivacy policyTerms of Use