[Resolved]Building Virtualbox 5.0.44 on Windows10

Discussions related to using the OSE version of VirtualBox.
Post Reply
Cancer1987
Posts: 11
Joined: 11. Aug 2017, 05:05

[Resolved]Building Virtualbox 5.0.44 on Windows10

Post by Cancer1987 »

Hello, I'm tring to build VirtualBox 5.1.26 and 5.0.44 on Windows 10.

I've done with prerequisites packages, such as libcurl , libxml2 ,etc.
But when I execute
cscript.exe .\configure.vbs --with-VC="C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC"

It shows

Shell inheritance test: OK
Source path: OK
Checking for kBuild...
Target architecture: amd64.
Host architecture: amd64.
Found kBuild: C:/VirtualBox-5.1.26/kBuild
Found kBuild binaries: C:/VirtualBox-5.1.26/kBuild/bin/win.x86
Checking for Windows DDK v7.1...
Found Windows DDK v7.1: C:/WinDDK/7600.16385.1
Checking for Visual C++...
error: The Visual C++ compiler we found ('C:/PROGRA~2/MICROS~4.0/VC') isn't 10.0 or 11.0. Check the build requirements.


But actually I've install Microsoft Visual Studio 2010 Enterprise SUCCESSFULLY.

so why It cannot find the VC++ Compiler properly ??

-----------------------------------------------

By the way, when I use the menu "Microsoft Visual Studio x64 Command" in Startup to execute
cscript.exe .\configure.vbs

It showed:

Shell inheritance test: OK
Source path: OK
Checking for kBuild...
Found kBuild: C:/VirtualBox-5.0.40/kBuild
Found kBuild binaries: C:/VirtualBox-5.0.40/kBuild/bin/win.x86
Checking for Windows DDK v7.1...
Found Windows DDK v7.1: C:/WinDDK/7600.16385.1
Checking for Visual C++...
error: Executing ' ' (which we believe to be the Visual C++ compiler driver) failed.

----------------------------------
Thanks for help.
Last edited by Cancer1987 on 31. Aug 2017, 04:25, edited 1 time in total.
Cancer1987
Posts: 11
Joined: 11. Aug 2017, 05:05

Re: [Resolve]Building Virtualbox 5.0.44 on Windows10

Post by Cancer1987 »

I've resolved this problem by myself.

This problem is caused by LANGUAGE difference of Visual C++ Compiler.

I'm a Chinese, so the compiler info is written by Chinese , but the configure.vbs uses English text info to check the compiler version.

What I've done is that I edited the configure.vbs in LINE 1067

if (InStr(1, g_strShellOutput, "编译器 16.") <= 0) _
And (InStr(1, g_strShellOutput, "编译器 17.") <= 0) then
'MsgError "The Visual C++ compiler we found ('" & strPathVC & "') isn't 10.0 or 11.0. Check the build requirements."
MsgError "g_strShellOutput is " & g_strShellOutput
exit sub
end if

'
' Ok, emit build config variables.
'
if InStr(1, g_strShellOutput, "编译器 16.") > 0 then
CfgPrint "PATH_TOOL_VCC100 := " & g_strPathVCC


-----------------------
In Chinese, "编译器" means compiler, after this alter, I have successfully passes the compiler check.
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Any and all
Contact:

Re: [Resolved]Building Virtualbox 5.0.44 on Windows10

Post by michaln »

Is there some way to get the compiler to emit the messages in English? Because there's no way the .vbs script can support all non-English versions of the compiler.
Cancer1987
Posts: 11
Joined: 11. Aug 2017, 05:05

Re: [Resolved]Building Virtualbox 5.0.44 on Windows10

Post by Cancer1987 »

michaln wrote:Is there some way to get the compiler to emit the messages in English? Because there's no way the .vbs script can support all non-English versions of the compiler.
I think the best way is that editing the script like this:

if (InStr(1, g_strShellOutput, "16.") <= 0) _
And (InStr(1, g_strShellOutput, "17.") <= 0) then
'MsgError "The Visual C++ compiler we found ('" & strPathVC & "') isn't 10.0 or 11.0. Check the build requirements."
MsgError "g_strShellOutput is " & g_strShellOutput
exit sub
end if

'
' Ok, emit build config variables.
'
if InStr(1, g_strShellOutput, "16.") > 0 then
CfgPrint "PATH_TOOL_VCC100 := " & g_strPathVCC


------------------------------------------------
We only concerns the version number, not the compiler name in different languages.
Post Reply