Problems with building VBox Additions

Discussions related to using the OSE version of VirtualBox.

Problems with building VBox Additions

Postby Yurii Cherkasov » 21. Apr 2018, 16:53

I'm performing the following commands sequence, according to documentation

The goal is to build both 32- and 64-bit Guest Additions and pack to VBoxGuestAdditions.iso
Only additions should be built (VBOX_ONLY_ADDITIONS := 1 in LocalConfig.kmk)

64-bit additions
Code: Select all   Expand viewCollapse view
call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" /Release /x64 /win7
set BUILD_TARGET_ARCH=amd64
set PATH=%PATH%;%~dp0kBuild\bin\win.amd64
cscript configure.vbs --with-DDK=C:\WinDDK\7600.16385.1 --with-MinGW-w64=C:\mingw\mingw64 --with-MinGW32=C:\mingw\mingw32 --with-libSDL=C:\SDL\x64\SDL-1.2.15 --with-openssl=C:\OpenSSL\x64 --with-openssl32=C:\OpenSSL\x32 --with-libcurl=C:\curl\x64 --with-libcurl32=C:\curl\x86 --with-Qt5=C:\Qt\5.6.3\x64\msvc2010 --with-python=C:/Python27
call env.bat
kmk KBUILD_TARGET_ARCH=amd64


32-bit additions
Code: Select all   Expand viewCollapse view
call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" /Release /x86 /win7
set BUILD_TARGET_ARCH=x86
set PATH=%PATH%;%~dp0kBuild\bin\win.x86
cscript configure.vbs --with-DDK=C:\WinDDK\7600.16385.1 --with-MinGW-w64=C:\mingw\mingw64 --with-MinGW32=C:\mingw\mingw32 --with-libSDL=C:\SDL\x86\SDL-1.2.15 --with-openssl=C:\OpenSSL\x32 --with-libcurl=C:\curl\x86 --with-Qt5=C:\Qt\5.6.3\x86\msvc2010 --with-python=C:/Python27
call env.bat
kmk KBUILD_TARGET_ARCH=x86


Packing
Code: Select all   Expand viewCollapse view
kmk additions-packing


It seems on this step iso image is just being downloaded, not packed from compiled binaries, and getting the following error after download is finished

kBuild: Zipping image C:/Users/atatat/Projects/virtualbox/VirtualBox-5.2.2/out/win.amd64/release/bin/additions/VBoxGuestAdditions.zip
kmk_builtin_redirect: _spawnvpe(zip.exe) failed: No such file or directory
kmk.exe[1]: *** [C:/Users/atatat/Projects/virtualbox/VirtualBox-5.2.2/out/win.amd64/release/bin/additions/VBoxGuestAdditions.zip] Error 2560 (0xa00)
kmk.exe[1]: Leaving directory `C:/Users/atatat/Projects/virtualbox/VirtualBox-5.2.2/src/VBox/Additions'
kmk: *** [additions-packing] Error 2 (0x2)


Trying to build Guest Additions using targets from the root makefile.kmk
Code: Select all   Expand viewCollapse view
kmk additions-build
...
kmk_time: error: _spawnvp(_P_WAIT, "rsync", ...) failed: No such file or directory
kmk: *** [additions-build-solaris.rsync-into-vm] Error 8 (0x8)


My LocalConfig.kmk
Code: Select all   Expand viewCollapse view
VBOX_WITH_HARDENING :=
VBOX_PATH_WIX := C:\wix
VBOX_GSOAP_INSTALLED := 1
VBOX_PATH_GSOAP := C:\gsoap\gsoap-2.8\gsoap
VBOX_WITH_COMBINED_PACKAGE := 1
VBOX_WITH_QT_PAYLOAD := 1
VBOX_WITH_QTGUI_V5 := 1
VBOX_SIGNING_MODE := release
VBOX_TSA_URL := http://timestamp.digicert.com
VBOX_TSA_SHA2_URL := http://timestamp.digicert.com
VBOX_TSA_URL_ARGS := /t "$(VBOX_TSA_URL)"
VBOX_TSA_SHA2_URL_ARGS := /tr "$(VBOX_TSA_SHA2_URL)" /td sha256
VBOX_PATH_SIGN_TOOLS := C:\Program Files (x86)\Windows Kits\8.1\bin\x64
VBOX_PATH_SELFSIGN := C:\WinDDK\7600.16385.1\bin\selfsign
VBOX_PATH_WISUMINFO := "C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\sysmgmt\msi\scripts\WiSumInf.vbs"
VBOX_PATH_WISUBSTG  := "C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\sysmgmt\msi\scripts\WiSubStg.vbs"
VBOX_WITH_DOCS := 1
VBOX_WITH_DOCS_CHM := 1
VBOX_WITH_DOCS_PACKING := 1
VBOX_HAVE_XMLLINT := C:\xmllint\bin\xmllint.exe
VBOX_PATH_DOCBOOK        := C:/DocBook/xsl/
VBOX_PATH_DOCBOOK_DTD    := C:/DocBook/xml/
VBOX_XML_CATALOG         := $(PATH_TARGET)/manual/catalog
VBOX_XML_CATALOG_DOCBOOK := $(PATH_TARGET)/manual/docbook
VBOX_PATH_HTML_HELP_WORKSHOP := "C:\Program Files (x86)\HTML Help Workshop"
VBOX_PDFLATEX := "C:\Program Files\MikTeX\texmfs\install\miktex\bin\pdflatex.exe"
VBOX_PDFLATEX_CMD := $(VBOX_PDFLATEX) -halt-on-error -interaction batchmode
TOOL_CURL_FETCH := C:\curl\x64\curl.exe
PATH_TOOL_NASM := "C:\Program Files\NASM"
VBOX_INSTALLER_LANGUAGES := en_US
VBOX_WITH_TESTCASES :=
VBOX_WITH_VALIDATIONKIT :=
VBOX_WITH_VBOX_IMG := 1
VBOX_BUILD_PUBLISHER :=
VBOX_WITH_R0_LOGGING := 1
VBOX_PATH_DIFX := C:\WinDDK\7600.16385.1\redist\DIFx
VBOX_PATH_NSIS := C:\Program Files (x86)\NSIS
VBOX_MKISOFS := C:\cdrtools\win32
VBOX_PATH_AUTOIT3 := C:\Program Files (x86)\AutoIt3
VBOX_ONLY_ADDITIONS := 1
Yurii Cherkasov
 
Posts: 10
Joined: 9. Mar 2018, 08:14

Re: Problems with building VBox Additions

Postby Yurii Cherkasov » 10. Sep 2018, 08:06

As usual, answering on my question.
First, target additions-build-rsync-into-vms does not work under Windows. Maybe it works after rsync installation, but it is not really necessary for building additions for Windows, so I just removed it from additions-build target
Second, all dependencies should be installed in directories without spaces in paths. Choose portable versions if possible, and install somewhere in C:/bin. I installed AutoIt 3 in C:/Program Files (x86) first, and had a hard time finding the reason why my build does not work.
Yurii Cherkasov
 
Posts: 10
Joined: 9. Mar 2018, 08:14


Return to VirtualBox OSE

Who is online

Users browsing this forum: No registered users and 1 guest