Build of Virtualbox 7.1.x fails on 'doc/manual/Makefile.kmk' step with the following error :
Code: Select all
kmk: *** Exiting with status 2
kBuild: Building /var/tmp/VirtualBox-7.1.4/out/linux.amd64/release/obj/manual/en_US/UserManual.pdf (/var/tmp/VirtualBox-7.1.4/out/linux.amd64/release/obj/manual/en_US/UserManual_pdf.log)
Erreur : impossible de trouver ou de charger la classe principale org.apache.tools.ant.launch.Launcher
Causé par : java.lang.ClassNotFoundException: org.apache.tools.ant.launch.Launcher
kmk: *** [/var/tmp/VirtualBox-7.1.4/doc/manual/Makefile.kmk:912: /var/tmp/VirtualBox-7.1.4/out/linux.amd64/release/obj/manual/en_US/UserManual.pdf] Error 1
Here are steps to solve this :
- create the directory <sources_dir>/tools/common/dita-ot,
- download the latest version of dita-ot from here https://www.dita-ot.org/download and extract the archive content into the <sources_dir>/tools/common/dita-ot directory,
- rename the extracted folder from dita-ot-x.y.z to vx.y.z where x.y.z is the dita-ot version,
- restart the build.