Building Virtualbox 7.2 on Debian Bookworm
Posted: 19. Aug 2025, 14:23
Virtualbox 7.2 fails to build on Debian Bookworm because it requires Qt >= 6.8 which is not available on this platform.
To build Virtualbox 7.2 on Debian Bookworm :
1/ build and install a recent version of Qt from sources following the build instructions for linux/X11
At this time, the latest version of Qt ( 6.9.1 ) builds fine on Debian Bookworm following these instructions.
2/ create a /etc/ld.so.conf.d/qt.conf file with the following content ( adapting the path to the location of your Qt build ) :
3/ configure the build of Virtualbox providing the location of your Qt build :
then build and install Virtualbox.
4/ as root run the command
( adapting the path to the location of your Qt build ) to avoid to have to provide LD_LIBRARY_PATH each time you run Virtualbox.
To build Virtualbox 7.2 on Debian Bookworm :
1/ build and install a recent version of Qt from sources following the build instructions for linux/X11
At this time, the latest version of Qt ( 6.9.1 ) builds fine on Debian Bookworm following these instructions.
2/ create a /etc/ld.so.conf.d/qt.conf file with the following content ( adapting the path to the location of your Qt build ) :
Code: Select all
/usr/local/Qt-6.9.1/lib
Code: Select all
./configure --with-qt-dir=/usr/local/Qt-6.9.1
4/ as root run the command
Code: Select all
ldconfig /usr/local/Qt-6.9.1/lib