Building Virtualbox 7.2 on Debian Bookworm

Discussions related to using the OSE version of VirtualBox.
Post Reply
atshaw
Posts: 9
Joined: 3. Jan 2013, 04:00
Primary OS: Debian other
VBox Version: OSE self-compiled
Guest OSses: Linux-based OSes, Windows, Other

Building Virtualbox 7.2 on Debian Bookworm

Post by atshaw »

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 ) :

Code: Select all

/usr/local/Qt-6.9.1/lib
3/ configure the build of Virtualbox providing the location of your Qt build :

Code: Select all

./configure --with-qt-dir=/usr/local/Qt-6.9.1
then build and install Virtualbox.

4/ as root run the command

Code: Select all

ldconfig /usr/local/Qt-6.9.1/lib
( adapting the path to the location of your Qt build ) to avoid to have to provide LD_LIBRARY_PATH each time you run Virtualbox.
Post Reply