virtualbox-kvm icon indicating copy to clipboard operation
virtualbox-kvm copied to clipboard

compiling 7.14 on Deb 12 notes

Open jmergy opened this issue 11 months ago • 11 comments

Just a heads-up to all those on Debian 12.x there are some additiona dependencies to check if you don't have them already

-gsoap -various additional qt6 libs

I'll post something on that on my site too. Just going through a compile now...

jmergy avatar Dec 20 '24 16:12 jmergy

I am stuck building on ubuntu as well. configure fails with qt6 not found error. I installed couple of qt6 packages based on intuition, but its not enough. Finally itsfailing in compile phase with missing header files like QtStateMachin, QSignalTransition etc. Waiting for your notes :-). Thanks

vineethrp avatar Dec 22 '24 12:12 vineethrp

On Deb 12 I had to install a lot of qt6 related packages to get it to compile. But, got it after about 5 or so passes.

jmergy avatar Dec 22 '24 19:12 jmergy

@vineethrp hope this is helpful. Just snagged my /var/log/apt/history for the passes I had to make

https://mergy.org/compiling-vbox-kvm-on-debian-12-x/

jmergy avatar Dec 23 '24 15:12 jmergy

Thanks @jmergy , I shall give it a try on my ubuntu and let you know. Thanks again for a nice writeup :-)

vineethrp avatar Dec 24 '24 03:12 vineethrp

The build succeeded after I took packages from the list compiled by @jmergy :-). Thanks a lot for compiling the list. Many of the packages in the list was not in ubuntu. But the build succeeded with whatever got successfully installed from the list :-).

I tried this on ubuntu 24.10. The packages are here:

apt install qt6-base-dev libQt6Help* qt6-tools* libqt6statemachine6 libqt6scxml6 qml6-module-qtscxml gsoap gsoap-doc libcgsi-gsoap-dev libcgsi-gsoap1 python3-pyside2.qtscxml libqt5scxml5-bin qtscxml5-examples qt6-scxml-dev libqt6scxml6-bin qml6-module-qtscxml libqt5scxml5 libqt5scxml5-private-dev qtscxml5-doc-html qtscxml5-doc libinput-dev libevdev-dev qt6-wayland qt6-declarative-dev libqt6quickshapes6 libqt6jsonrpc6 qt6-connectivity-dev libqt6bluetooth6 qt6-datavisualization-dev libgudev-1.0-dev libqt6quickcontrols2-6 qt6-base-private-dev libqt6datavisualization6 gir1.2-gudev-1.0 qt6ct libqt6qmlcompiler6 qt6-wayland-dev-tools libqt6bluetooth6-bin libqt6languageserver6 libqt6nfc6 libqt6svg6 libqt6waylandcompositor6 libqt6waylandclient6 libqt6quicktest6 libqt6qmlworkerscript6

vineethrp avatar Dec 24 '24 12:12 vineethrp

@vineethrp excellent news.

jmergy avatar Dec 24 '24 14:12 jmergy

The build succeeded after I took packages from the list compiled by @jmergy :-). Thanks a lot for compiling the list. Many of the packages in the list was not in ubuntu. But the build succeeded with whatever got successfully installed from the list :-).

I tried this on ubuntu 24.10. The packages are here:

apt install qt6-base-dev libQt6Help* qt6-tools* libqt6statemachine6 libqt6scxml6 qml6-module-qtscxml gsoap gsoap-doc libcgsi-gsoap-dev libcgsi-gsoap1 python3-pyside2.qtscxml libqt5scxml5-bin qtscxml5-examples qt6-scxml-dev libqt6scxml6-bin qml6-module-qtscxml libqt5scxml5 libqt5scxml5-private-dev qtscxml5-doc-html qtscxml5-doc libinput-dev libevdev-dev qt6-wayland qt6-declarative-dev libqt6quickshapes6 libqt6jsonrpc6 qt6-connectivity-dev libqt6bluetooth6 qt6-datavisualization-dev libgudev-1.0-dev libqt6quickcontrols2-6 qt6-base-private-dev libqt6datavisualization6 gir1.2-gudev-1.0 qt6ct libqt6qmlcompiler6 qt6-wayland-dev-tools libqt6bluetooth6-bin libqt6languageserver6 libqt6nfc6 libqt6svg6 libqt6waylandcompositor6 libqt6waylandclient6 libqt6quicktest6 libqt6qmlworkerscript6

I used this sheet too on ubuntu 24 but get error with soap....sigh

XenoAmess avatar Dec 25 '24 06:12 XenoAmess

The build succeeded after I took packages from the list compiled by @jmergy :-). Thanks a lot for compiling the list. Many of the packages in the list was not in ubuntu. But the build succeeded with whatever got successfully installed from the list :-). I tried this on ubuntu 24.10. The packages are here:

apt install qt6-base-dev libQt6Help* qt6-tools* libqt6statemachine6 libqt6scxml6 qml6-module-qtscxml gsoap gsoap-doc libcgsi-gsoap-dev libcgsi-gsoap1 python3-pyside2.qtscxml libqt5scxml5-bin qtscxml5-examples qt6-scxml-dev libqt6scxml6-bin qml6-module-qtscxml libqt5scxml5 libqt5scxml5-private-dev qtscxml5-doc-html qtscxml5-doc libinput-dev libevdev-dev qt6-wayland qt6-declarative-dev libqt6quickshapes6 libqt6jsonrpc6 qt6-connectivity-dev libqt6bluetooth6 qt6-datavisualization-dev libgudev-1.0-dev libqt6quickcontrols2-6 qt6-base-private-dev libqt6datavisualization6 gir1.2-gudev-1.0 qt6ct libqt6qmlcompiler6 qt6-wayland-dev-tools libqt6bluetooth6-bin libqt6languageserver6 libqt6nfc6 libqt6svg6 libqt6waylandcompositor6 libqt6waylandclient6 libqt6quicktest6 libqt6qmlworkerscript6

I used this sheet too on ubuntu 24 but get error with soap....sigh

Could you please post the error logs? I did not see any error messages and it might be that I already had some dependency installed prior. Thanks

vineethrp avatar Dec 28 '24 12:12 vineethrp

@vineethrp see https://github.com/cyberus-technology/virtualbox-kvm/issues/40 for more details.

tpressure avatar Dec 28 '24 22:12 tpressure

@tpressure , thanks for pointing to the details. I think you might have some gsoap packages missing. So I did an experiment and installed a fresh ubuntu24.10 virtual machine and did the following:

sudo apt update && sudo apt upgrade
sudo apt install openssh-server
sudo apt install vim git build-essential acpica-tools chrpath doxygen g++-multilib libasound2-dev libcap-dev \
       	libcurl4-openssl-dev libdevmapper-dev libidl-dev libopus-dev libpam0g-dev libpulse-dev libsdl1.2-dev \
	libsdl-ttf2.0-dev libssl-dev libvpx-dev libxcursor-dev libxinerama-dev libxml2-dev libxml2-utils \
	libxmu-dev libxrandr-dev make nasm python3-dev texlive texlive-fonts-extra texlive-latex-extra unzip \
	xsltproc default-jdk libxslt1-dev linux-kernel-headers makeself mesa-common-dev subversion yasm zlib1g-dev \
	glslang-tools libc6-dev-i386 lib32stdc++6 libtpms-dev qt6-base-dev libQt6Help* qt6-tools* libqt6statemachine6 \
	libqt6scxml6 qml6-module-qtscxml gsoap gsoap-doc libcgsi-gsoap-dev libcgsi-gsoap1 python3-pyside2.qtscxml \
       	libqt5scxml5-bin qtscxml5-examples qt6-scxml-dev libqt6scxml6-bin qml6-module-qtscxml libqt5scxml5 \
	libqt5scxml5-private-dev qtscxml5-doc-html qtscxml5-doc libinput-dev libevdev-dev qt6-wayland \
	qt6-declarative-dev libqt6quickshapes6 libqt6jsonrpc6 qt6-connectivity-dev libqt6bluetooth6 \
	qt6-datavisualization-dev libgudev-1.0-dev libqt6quickcontrols2-6 qt6-base-private-dev \
	libqt6datavisualization6 gir1.2-gudev-1.0 qt6ct libqt6qmlcompiler6 qt6-wayland-dev-tools \
	libqt6bluetooth6-bin libqt6languageserver6 libqt6nfc6 libqt6svg6 libqt6waylandcompositor6 \
	libqt6waylandclient6 libqt6quicktest6 libqt6qmlworkerscript6

And then tried the build and build succeeded. I have no other packages other than the above.

As mentioned in the bug you pointed, if build succeeds without guest additions, that should also be fine :-). But you could give this a try to verify if the gsoap issue goes away.

I have a small set of changes in the vbox source to hide the __memset_chk errors as well:

diff --git a/src/VBox/Additions/x11/undefined_xfree86 b/src/VBox/Additions/x11/undefined_xfree86
index e80b6819..e23c0590 100644
--- a/src/VBox/Additions/x11/undefined_xfree86
+++ b/src/VBox/Additions/x11/undefined_xfree86
@@ -277,6 +277,7 @@ memcpy
 "memcpy",xf86memcpy
 memset
 "memset",xf86memset
+__memset_chk
 miAllocateGCPrivateIndex
 miChangeBorderWidth
 miChangeClip
diff --git a/src/VBox/Additions/x11/undefined_xfree86_modules b/src/VBox/Additions/x11/undefined_xfree86_modules
index 9a800b2c..4e89c3b7 100644
--- a/src/VBox/Additions/x11/undefined_xfree86_modules
+++ b/src/VBox/Additions/x11/undefined_xfree86_modules
@@ -3,6 +3,7 @@
 
 fbPictureInit
 fbScreenInit
+__memset_chk
 ShadowFBInit2
 vgaHWFreeHWRec
 vgaHWGetHWRec
diff --git a/src/VBox/Additions/x11/undefined_xorg b/src/VBox/Additions/x11/undefined_xorg
index dcc6c8fc..31d06943 100644
--- a/src/VBox/Additions/x11/undefined_xorg
+++ b/src/VBox/Additions/x11/undefined_xorg
@@ -81,6 +81,7 @@ memalign
 memchr
 memcmp
 __memcpy_chk
+__memset_chk
 memmove
 miPointerGetScreen
 mmap64

vineethrp avatar Dec 28 '24 23:12 vineethrp

Moved to Linux Mint and getting some issues so thankful here to reference the Ubuntu notes. Will report back

jmergy avatar May 18 '25 15:05 jmergy