Error while compiling VirtualBox 6.1 with the latest Slackware64 Current
by Andersen from LinuxQuestions.org on (#54KAE)
Hi guys,
I just spent an embarrassing amount of time trying to install VirtualBox 6.1.8 on the latest Slackware64 Current, and I still have some trouble.
Building and installing of acpica (the version offered at slackbuilds.org won't work here) and virtualbox-kernel was successful at the end, but I failed at the last step, compiling VirtualBox package.
For virtualbox-kernel and virtualbox, I used Ponce's SlackBuilds: https://github.com/Ponce/slackbuilds...tem/virtualbox
It appears that there is some kind of a problem with Qt and QPainterPath, and the process exits reporting this error:
Code: /tmp/SBo/VirtualBox-6.1.8/src/VBox/Frontends/VirtualBox/src/globals/UIImageTools.cpp: In function QImage betaLabelImage(const QSize&)':
/tmp/SBo/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/SBo/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/SBo/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/SBo/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/SBo/VirtualBox-6.1.8/kBuild/footer-pass2-compiling-targets.kmk:277: /tmp/SBo/VirtualBox-6.1.8/out/linux.amd64/release/obj/UICommon/src/globals/UIImageTools.o] Error 1
kmk: *** Waiting for unfinished jobs....
CXX UICommon - {C}/src/VBox/Frontends/VirtualBox/src/globals/UIIconPool.cpp
CXX UICommon - {C}/src/VBox/Frontends/VirtualBox/src/globals/UIMachineAttributeSetter.cpp
kmk: *** Exiting with status 2
The problem should be already addressed here (although for Gentoo): https://www.virtualbox.org/ticket/19...=0&cnum_hist=1 , but I'm not sure how to apply the patch.:scratch:
Did anyone have similar problem and managed to solve it? Thanks!


I just spent an embarrassing amount of time trying to install VirtualBox 6.1.8 on the latest Slackware64 Current, and I still have some trouble.
Building and installing of acpica (the version offered at slackbuilds.org won't work here) and virtualbox-kernel was successful at the end, but I failed at the last step, compiling VirtualBox package.
For virtualbox-kernel and virtualbox, I used Ponce's SlackBuilds: https://github.com/Ponce/slackbuilds...tem/virtualbox
It appears that there is some kind of a problem with Qt and QPainterPath, and the process exits reporting this error:
Code: /tmp/SBo/VirtualBox-6.1.8/src/VBox/Frontends/VirtualBox/src/globals/UIImageTools.cpp: In function QImage betaLabelImage(const QSize&)':
/tmp/SBo/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/SBo/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/SBo/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/SBo/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/SBo/VirtualBox-6.1.8/kBuild/footer-pass2-compiling-targets.kmk:277: /tmp/SBo/VirtualBox-6.1.8/out/linux.amd64/release/obj/UICommon/src/globals/UIImageTools.o] Error 1
kmk: *** Waiting for unfinished jobs....
CXX UICommon - {C}/src/VBox/Frontends/VirtualBox/src/globals/UIIconPool.cpp
CXX UICommon - {C}/src/VBox/Frontends/VirtualBox/src/globals/UIMachineAttributeSetter.cpp
kmk: *** Exiting with status 2
The problem should be already addressed here (although for Gentoo): https://www.virtualbox.org/ticket/19...=0&cnum_hist=1 , but I'm not sure how to apply the patch.:scratch:
Did anyone have similar problem and managed to solve it? Thanks!