Building VBox 6.0.24 Guest Additions Windows

Discussions related to using the OSE version of VirtualBox.
Post Reply
YOYOBOY
Posts: 1
Joined: 9. Feb 2023, 13:53

Building VBox 6.0.24 Guest Additions Windows

Post by YOYOBOY »

Hi guys,

i am trying to build the Guest Additions for Vbox 6.0.24 (it needs to be exactly this version) on windows10 for quite some time without success.

I tried out all different kinds of VS-Versions (2010, 2013, 2015, 2019) in combination with WDK 7600.16385.1 and WDK 8.1.
The best results were obtained with VS2013 and WDK 8.1.

I installed the following packages:
  • OpenSSL64_1.1.1t
    OpenSSL32_1.1.1t
    WDK 8.1
    Visual Studio Professional 2013 with Update 5
    MS build tools 2013
    sdk 8.1
    python 3.10.10
via cygwin:
  • cmake
    gcc-core
    make
    nasm
    zlib

The configuration process ended without errors:

Code: Select all

[+] Configure VirtualBox build setting
Microsoft (R) Windows Script Host, Version 5.812
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

Shell inheritance test: OK
Source path: OK
Checking for kBuild...
 Target architecture: amd64.
 Host architecture: amd64.
 Found kBuild: C:/VBoxBuild/VirtualBox/kBuild
 Found kBuild binaries: C:/VBoxBuild/VirtualBox/kBuild/bin/win.amd64
Checking for Windows DDK v7.1...
 Found Windows DDK v7.1: C:/WinDDK/7600.16385.1
Checking for Visual C++...
 Found Visual C++ v11: C:/PROGRA~2/MICROS~1.0/VC (C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC)
warning: The support for Visual C++ v11 (aka 2012) is experimental
Checking for Windows Platform SDK (recent)...
 Found Windows Platform SDK (v71): C:/PROGRA~2/MICROS~2/Windows/v7.1A (C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1A)
Checking for Midl.exe...
 Found Midl.exe: C:/PROGRA~2/MICROS~2/Windows/v7.1A/bin/Midl.exe (C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1A/Bin/Midl.exe)
Checking for MinGW32 GCC v3.3.x + Binutils + Runtime + W32API...
warning: Can't locate a suitable MinGW32 installation, ignoring since we're targeting AMD64 and won't need it.
Checking for MinGW-w64 GCC (unprefixed)...
 Found MinGW-w64 (GCC v4.5.4): C:/VBoxBuild/MinGW/mingw64
Checking for libSDL...
 Found libSDL: C:/VBoxBuild/SDL
Checking for openssl...
 Found openssl: C:/VBoxBuild/SSL/OpenSSL-Win64
Checking for openssl...
 Found openssl32: C:/VBoxBuild/SSL/OpenSSL-Win32
Checking for libcurl...
 Found libcurl: C:/VBoxBuild/curl/x64
Checking for libcurl...
 Found libcurl32: C:/VBoxBuild/curl/x32
Checking for Qt5...
 Found Qt5: C:/VBoxBuild/Qt/qt5-x64

Execute env.bat once before you start to build VBox:

  env.bat
  kmk
The build process did a good job of compiling for the first 4-5 minutes, but ended with the following failing command:

Code: Select all

The failing command:
@ C:/VS/VC//bin/amd64/cl.exe -c -TC -nologo -Zi -O2 -Zi -Zl -GR- -EHsc -GF -Zc:wchar_t- -O2 -Oy- -W4 -Wall -wd4065 -wd4996 -wd4127 -wd4706 -wd4201 -wd4214 -wd4510 -wd4512 -wd4610 -wd4514 -wd4820 -wd4365 -wd4987 -wd4710 -wd4061 -wd4986 -wd4191 -wd4574 -wd4917 -wd4711 -wd4611 -wd4571 -wd4324 -wd4505 -wd4263 -wd4264 -wd4738 -wd4200 -wd4371 -wd4748 -wd4242 -wd4244 -MT -wd4100  -wd4204 -wd4245 -wd4305 -wd4018 -wd4389 -wd4221 -wd4334 -wd4267 -IC:/VBoxBuild/VirtualBox/src/VBox/Additions/WINNT/Graphics/Wine_new/vbox/libWineStub/include -IC:/VBoxBuild/VirtualBox/out/win.amd64/release/obj/VBoxD3D8/dtrace -IC:/VS/VC//include -IC:/VS/VC//atlmfc/include -IC:/WinDDK/7600.16385.1/inc/api -IC:/WinDDK/7600.16385.1/inc/ddk -IC:/VS/VC//include -IC:/VS/VC//atlmfc/include -IC:/PROGRA~2/MICROS~2/Windows/v7.1A/Include -IC:/VBoxBuild/VirtualBox/include -IC:/VBoxBuild/VirtualBox/out/win.amd64/release -IC:/VS/VC//include -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_REM -DVBOX_WITH_RAW_MODE -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_AMD64 -D__AMD64__ -D__WIN64__ -DVBOX_WITH_DEBUGGER -DWIN32=100 -D_WIN32_WINNT=0x0600 -DWINVER=0x0600 -D_WIN32_IE=0x0700 -DNTDDI_VERSION=0x06000000 -DKMDF_MAJOR_VERSION=01 -DKMDF_MINOR_VERSION=005 -D_AMD64_ -DAMD64 -D_WIN64 -DIN_RING3 -DIN_GUEST -DIN_GUEST_R3 -DIN_RT_R3 -DGC_ARCH_BITS=64 -DRT_NEED_NEW_AND_DELETE -D__WINESRC__ -DWINE_UNICODE_API="" -D_REENTRANT -DWINE_NOWINSOCK -DUSE_WIN32_OPENGL -DDLLDIR=\"\" -DBINDIR=\"\" -DLIB_TO_BINDIR=\"\" -DLIB_TO_DLLDIR=\"\" -DBIN_TO_DLLDIR=\"\" -DLIB_TO_DATADIR=\"\" -DBIN_TO_DATADIR=\"\" -D_USE_MATH_DEFINES -DVBOX_USING_WINDDK -DVBOX_WINE_WITHOUT_LIBWINE -DWINE_NO_DEBUG_MSGS -DVBOX_WINE_WITH_IPRT -D_CRT_SECURE_NO_DEPRECATE -FdC:/VBoxBuild/VirtualBox/out/win.amd64/release/obj/VBoxD3D8/d3d8/d3d8_main-obj.pdb -FoC:/VBoxBuild/VirtualBox/out/win.amd64/release/obj/VBoxD3D8/d3d8/d3d8_main.obj C:\\VBoxBuild\\VirtualBox\\src\\VBox\\Additions\\WINNT\\Graphics\\Wine_new\\d3d8\\d3d8_main.c
kBuild: Compiling VBoxD3D8 - C:/VBoxBuild/VirtualBox/src/VBox/Additions/WINNT/Graphics/Wine_new/d3d8/d3d8_main.c
d3d8_main.c
C:\VBoxBuild\VirtualBox\src\VBox\Additions\WINNT\Graphics\Wine_new\d3d8\d3d8_main.c(85) : error C2628: 'BOOL' followed by 'bool' is illegal (did you forget a ';'?)
C:\VBoxBuild\VirtualBox\src\VBox\Additions\WINNT\Graphics\Wine_new\d3d8\d3d8_main.c(86) : error C2055: expected formal parameter list, not a type list
C:\VBoxBuild\VirtualBox\src\VBox\Additions\WINNT\Graphics\Wine_new\d3d8\d3d8_main.c(91) : error C2059: syntax error : 'type'
C:\VBoxBuild\VirtualBox\src\VBox\Additions\WINNT\Graphics\Wine_new\d3d8\d3d8_main.c(120) : error C2143: syntax error : missing '{' before '__cdecl'
C:\VBoxBuild\VirtualBox\src\VBox\Additions\WINNT\Graphics\Wine_new\d3d8\d3d8_main.c(120) : error C2628: 'BOOL' followed by 'bool' is illegal (did you forget a ';'?)
C:\VBoxBuild\VirtualBox\src\VBox\Additions\WINNT\Graphics\Wine_new\d3d8\d3d8_main.c(121) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
C:\VBoxBuild\VirtualBox\src\VBox\Additions\WINNT\Graphics\Wine_new\d3d8\d3d8_main.c(121) : error C2055: expected formal parameter list, not a type list
C:\VBoxBuild\VirtualBox\src\VBox\Additions\WINNT\Graphics\Wine_new\d3d8\d3d8_main.c(126) : error C2059: syntax error : 'type'
While compiling I also had some warnings.

Threads in this forum were helping me a lot with the testing process.

Does anyone of you have an idea how I could manage to finish the compiling process?

Please tell me if you need more info.
Post Reply