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