Building VirtualBox OSE 3.1.4 on Windows (use VS2005)

Discussions related to using the OSE version of VirtualBox.
yk700101
Posts: 43
Joined: 7. Feb 2009, 00:17
Primary OS: MS Windows Vista
VBox Version: OSE self-compiled
Guest OSses: Debian
Location: Japan
Contact:

Building VirtualBox OSE 3.1.4 on Windows (use VS2005)

Post by yk700101 »

The build maybe succeeded.
But

Code: Select all

  VirtualBox-3.1.4_OSE\src\VBox\Additions\WINNT\VBoxCredProv
could not build.
Because this build environment does not have 'credentialprovider.h'.

This is for reference.

Prerequisites

Code: Select all

Windows Server 2003 Standard Edition SP2

Visual Studio 2005 Professional Edition with service pack 1

Windows Platform SDK
  Windows Server 2003 R2 Platform SDK 
  
Windows Driver Development Kit
  Windows Server 2003 SP1 DDK
  
DirectX SDK
  Microsoft DirectX SDK (November 2008)

MingW
  gcc-core-3.3.3-20040217-1.tar.gz
  gcc-g++-3.3.3-20040217-1.tar.gz
  mingwrt-3.17-mingw32-dev.tar.gz
  w32api-3.14-mingw32-dev.tar.gz
  binutils-2.20-1-mingw32-bin.tar.gz
  
SDL
  SDL-devel-1.2.14-VC8.zip

QT
  qt-everywhere-opensource-src-4.6.1.zip
  
OpenSSL
  openssl-0.9.8l.tar.gz

cURL
  curl-7.20.0.tar.bz2

python
  python-2.6.4.msi

gSOAP
  gsoap_2.7.15.tar.gz
  
Prerequisites(for building libraries)

Code: Select all

Perl
  ActivePerl-5.10.1.1007-MSWin32-x86-291969.msi
Directory tree

Code: Select all

  E:\Perl
  E:\Program Files\Microsoft DirectX SDK (November 2008)
  E:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2
  E:\Program Files\Microsoft Visual Studio 8\VC
  E:\Python26
  E:\WINDDK\3790.1830

  E:\z_Build2
  ? curl-7.20.0
  ? gsoap-2.7
  ? mingw
  ? openssl-0.9.8l
  ? qt-everywhere-opensource-src-4.6.1
  ? SDL-1.2.14
  ? VirtualBox-3.1.4_OSE
Command Prompt for build

Code: Select all

Start -> Programs -> Microsoft Visual Studio 2005 -> Visual Studio Tools -> Visual Studio 2005 Command Prompt
Building Qt4
  • Command

    Code: Select all

    "E:\Program Files\Microsoft DirectX SDK (November 2008)\Utilities\Bin\dx_setenv.cmd"
    
    set PATH=%PATH%;E:\z_Build2\qt-everywhere-opensource-src-4.6.1\bin;
    
    cd E:\z_Build2\qt-everywhere-opensource-src-4.6.1
    
    configure ^
      -release -opensource -shared -no-ltcg -no-fast ^
      -exceptions -accessibility -stl -no-sql-sqlite ^
      -no-qt3support -graphicssystem raster ^
      -qt-zlib -qt-gif -qt-libpng -qt-libmng -qt-libtiff ^
      -qt-libjpeg -no-dsp -no-vcproj -no-incredibuild-xge ^
      -no-plugin-manifests -qmake -process -rtti -no-mmx ^
      -no-3dnow -no-sse -no-sse2 -no-openssl -no-dbus ^
      -no-phonon -no-phonon-backend -no-webkit -no-script ^
      -no-scripttools -no-declarative ^
      -arch windows ^
      -qt-style-windows ^
      -qt-style-windowsxp -qt-style-windowsvista ^
      -qt-style-plastique -qt-style-cleanlooks ^
      -no-style-motif -no-style-cde ^
      -no-native-gestures
    

    Code: Select all

    nmake > E:\z_Build2\qt-everywhere-opensource-src-4.6.1.build.log 2>&1
    

Building OpenSSL
  • Command

    Code: Select all

    set PATH=%PATH%;E:\Perl\bin;
    
    cd E:\z_Build2\openssl-0.9.8l
    
    perl Configure VC-WIN32 --prefix=E:/z_Build2/openssl ^
      > E:\z_Build2\openssl-0.9.8l.configure.log 2>&1
    
    ms\do_masm ^
      > E:\z_Build2\openssl-0.9.8l.assembly_language.log 2>&1
    

    Code: Select all

    nmake -f ms\ntdll.mak ^
      > E:\z_Build2\openssl-0.9.8l.build.log 2>&1
    
    nmake -f ms\ntdll.mak test ^
      > E:\z_Build2\openssl-0.9.8l.test.log 2>&1
    
    nmake -f ms\ntdll.mak install ^
      > E:\z_Build2\openssl-0.9.8l.install.log 2>&1
    
Building cURL
  • Command

    Code: Select all

    cd E:\z_Build2\curl-7.20.0
    
    pushd lib
    nmake /f Makefile.vc8 cfg=release-dll ^
      > E:\z_Build2\curl-7.20.0.build-dll.log 2>&1
    popd
    

    Code: Select all

    xcopy /E /I ^
      E:\z_Build2\curl-7.20.0\include ^
      E:\z_Build2\libcurl\include
    
    pushd E:\z_Build2\curl-7.20.0\lib\release-dll
    copy libcurl.dll     E:\z_Build2\libcurl
    copy libcurl_imp.lib E:\z_Build2\libcurl\libcurl.lib
    popd
    

Building VirtualBox(configure)
  • Command

    Code: Select all

    cd E:\z_Build2\VirtualBox-3.1.4_OSE
    
    cscript configure.vbs ^
      --with-DDK="E:\WINDDK\3790.1830" ^
      --with-DXSDK="E:\Program Files\Microsoft DirectX SDK (November 2008)" ^
      --with-libSDL=E:\z_Build2\SDL-1.2.14 ^
      --with-MinGW=E:\z_Build2\mingw ^
      --with-Qt4=E:\z_Build2\qt-everywhere-opensource-src-4.6.1 ^
      --with-SDK="E:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2" ^
      --with-python=E:\Python26 ^
      --with-openssl=E:\z_Build2\openssl ^
      --with-libcurl=E:\z_Build2\libcurl ^
      > E:\z_Build2\VirtualBox-3.1.4_OSE.configure.log 2>&1
    
Building VirtualBox(make)
  • Prepare
    Edit E:\z_Build2\VirtualBox-3.1.4_OSE\AutoConfig.kmk
    Add to the bottom

    Code: Select all

    VBOX_GSOAP_INSTALLED = 1
    VBOX_PATH_GSOAP := E:/z_Build2/gsoap-2.7/gsoap
    VBOX_PATH_GSOAP_BIN   := $(VBOX_PATH_GSOAP)/bin/win32
    
  • Command

    Code: Select all

    cd E:\z_Build2\VirtualBox-3.1.4_OSE
    
    env.bat
    
    set PATH=%PATH%;E:\z_Build2\mingw\bin;
    
    set PATH=%PATH%;E:\z_Build2\qt-everywhere-opensource-src-4.6.1\bin;
    
    kmk > E:\z_Build2\VirtualBox-3.1.4_OSE.build.log 2>&1
    
  • Error-1

    Code: Select all

    kBuild: Compiling VBoxCredProv - E:/z_Build2/VirtualBox-3.1.4_OSE/src/VBox/Additions/WINNT/VBoxCredProv/helpers.cpp
    helpers.cpp
    e:\z_build2\virtualbox-3.1.4_ose\src\vbox\additions\winnt\vboxcredprov\common.h(19) : fatal error C1083: Cannot open include file: 'credentialprovider.h': No such file or directory
    kmk.exe[2]: *** [E:/z_Build2/VirtualBox-3.1.4_OSE/out/win.x86/release/obj/VBoxCredProv/helpers.obj] Error 2
    The failing command:
    @ E:/PROGRA~1/MICROS~1/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR- -EHsc -GF -W3 -wd4065 -wd4244 -wd4996 -Zc:wchar_t- -O2 -GS- -Oy- -MT -IE:/z_Build2/VirtualBox-3.1.4_OSE/tools/win.x86/sdk/x200702//Include -IE:/PROGRA~1/MICROS~3/Include -IE:/z_Build2/VirtualBox-3.1.4_OSE/tools/win.x86/ddk/not/found/inc/api -IE:/z_Build2/VirtualBox-3.1.4_OSE/tools/win.x86/ddk/not/found/inc/ddk -IE:/z_Build2/VirtualBox-3.1.4_OSE/include -IE:/z_Build2/VirtualBox-3.1.4_OSE/out/win.x86/release -IE:/PROGRA~1/MICROS~1/VC/include -IE:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -D_X86_=1 -Di386=1 -DSTD_CALL -DIN_RING3 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DIN_GUEST -DIN_GUEST_R3 -DIN_RT_R3 -DLOG_TO_BACKDOOR -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DUNICODE -FdE:/z_Build2/VirtualBox-3.1.4_OSE/out/win.x86/release/obj/VBoxCredProv/helpers-obj.pdb -FD -FoE:/z_Build2/VirtualBox-3.1.4_OSE/out/win.x86/release/obj/VBoxCredProv/helpers.obj E:\\z_Build2\\VirtualBox-3.1.4_OSE\\src\\VBox\\Additions\\WINNT\\VBoxCredProv\\helpers.cpp
    
  • Resolve-1-1

    Code: Select all

    pushd E:\z_Build2\VirtualBox-3.1.4_OSE\src\VBox\Additions\WINNT
    move Makefile.kmk          Makefile.kmk.original
    copy Makefile.kmk.original Makefile.kmk
    popd
    
  • Resolve-1-2
    Change E:\z_Build2\VirtualBox-3.1.4_OSE\src\VBox\Additions\WINNT\Makefile.kmk (Line 31)

    Code: Select all

    include $(PATH_SUB_CURRENT)/VBoxCredProv/Makefile.kmk
    
    
    to

    Code: Select all

    # include $(PATH_SUB_CURRENT)/VBoxCredProv/Makefile.kmk
    
    
After build
  • Command

    Code: Select all

    pushd E:\z_Build2\VirtualBox-3.1.4_OSE\out\win.x86\release\bin
    
    copy E:\z_Build2\qt-everywhere-opensource-src-4.6.1\bin\QtCore4.dll .
    copy E:\z_Build2\qt-everywhere-opensource-src-4.6.1\bin\QtGui4.dll .
    copy E:\z_Build2\qt-everywhere-opensource-src-4.6.1\bin\QtNetwork4.dll .
    copy E:\z_Build2\qt-everywhere-opensource-src-4.6.1\bin\QtOpenGL4.dll .
    
    copy E:\z_Build2\openssl\bin\libeay32.dll .
    
    copy E:\z_Build2\libcurl\libcurl.dll .
    
    popd
    
  • Command

    Code: Select all

    pushd E:\z_Build2\VirtualBox-3.1.4_OSE\out\win.x86\release\bin
    
    comregister.cmd
    
    SUPUninstall.exe
    SUPInstall.exe
    
    NetAdpUninstall.exe
    NetAdpInstall.exe
    
    NetFltUninstall.exe
    NetFltInstall.exe
    
    REM please use device manager for Host-Only net interface installation.
    
    popd
    
  • Command (for Windows Vista)
    My VirtualBox directory is "C:\yk_prog\VirtualBox_OSE".

    Open Command Prompt(Run as administrator)

    Code: Select all

    cd C:\yk_prog\VirtualBox_OSE
    
    comregister.cmd
    
    SUPUninstall.exe
    SUPInstall.exe
    
    NetAdpUninstall.exe
    NetAdpInstall.exe
    
    NetFltUninstall.exe
    NetFltInstall.exe
    
    InfDefaultInstall.exe C:\yk_prog\VirtualBox_OSE\VBoxDrv.inf
    
    REM Dummy
    VBoxSDL.exe
    
    REM please use device manager for Host-Only net interface installation.
    
  • Command Log (for Windows Vista)

    Code: Select all

    Microsoft Windows [Version 6.0.6002]
    Copyright (c) 2006 Microsoft Corporation.  All rights reserved.
    
    C:\Windows\system32>cd C:\yk_prog\VirtualBox_OSE
    
    C:\yk_prog\VirtualBox_OSE>
    C:\yk_prog\VirtualBox_OSE>comregister.cmd
    
    C:\yk_prog\VirtualBox_OSE>
    C:\yk_prog\VirtualBox_OSE>SUPUninstall.exe
    uninstallation failed. rc=VERR_GENERAL_FAILURE
    
    C:\yk_prog\VirtualBox_OSE>SUPInstall.exe
    installation failed. rc=VERR_GENERAL_FAILURE
    
    C:\yk_prog\VirtualBox_OSE>
    C:\yk_prog\VirtualBox_OSE>NetAdpUninstall.exe
    uninstalling all Host-Only interfaces..
    uninstalled successfully
    
    C:\yk_prog\VirtualBox_OSE>NetAdpInstall.exe
    not implemented yet, please use device manager for Host-Only net interface insta
    llation.. sorry :(
    
    C:\yk_prog\VirtualBox_OSE>
    C:\yk_prog\VirtualBox_OSE>NetFltUninstall.exe
    NetFlt Is Installed currently
    uninstalled successfully
    
    C:\yk_prog\VirtualBox_OSE>NetFltInstall.exe
    NetFlt Is Not Installed currently
    installed successfully
    
    C:\yk_prog\VirtualBox_OSE>
    C:\yk_prog\VirtualBox_OSE>InfDefaultInstall.exe C:\yk_prog\VirtualBox_OSE\VBoxDr
    v.inf
    
    C:\yk_prog\VirtualBox_OSE>
    C:\yk_prog\VirtualBox_OSE>REM Dummy
    
    C:\yk_prog\VirtualBox_OSE>VBoxSDL.exe
    Sun VirtualBox SDL GUI version 3.1.4_OSE
    (C) 2005-2010 Sun Microsystems, Inc.
    All rights reserved.
    
    Usage:
      --startvm <uuid|name>    Virtual machine to start, either UUID or name
      --hda <file>             Set temporary first hard disk to file
      --fda <file>             Set temporary first floppy disk to file
      --cdrom <file>           Set temporary CDROM/DVD to file/device ('none' to unm
    ount)
      --boot <a|c|d|n>         Set temporary boot device (a = floppy, c = 1st HD, d
    = DVD, n = network)
      --memory <size>          Set temporary memory size in megabytes
      --vram <size>            Set temporary size of video memory in megabytes
      --fullscreen             Start VM in fullscreen mode
      --fullscreenresize       Resize the guest on fullscreen
      --fixedmode <w> <h> <bpp> Use a fixed SDL video mode with given width, height
    and bits per pixel
      --nofstoggle             Forbid switching to/from fullscreen mode
      --noresize               Make the SDL frame non resizable
      --nohostkey              Disable all hostkey combinations
      --nohostkeys ...         Disable specific hostkey combinations, see below for
    valid keys
      --nograbonclick          Disable mouse/keyboard grabbing on mouse click w/o ad
    ditions
      --detecthostkey          Get the hostkey identifier and modifier state
      --hostkey <key> {<key2>} <mod> Set the host key to the values obtained using -
    -detecthostkey
      --termacpi               Send an ACPI power button event when closing the wind
    ow
      --discardstate           Discard saved state (if present) and revert to last s
    napshot (if present)
      --[no]rawr0              Enable or disable raw ring 3
      --[no]rawr3              Enable or disable raw ring 0
      --[no]patm               Enable or disable PATM
      --[no]csam               Enable or disable CSAM
      --[no]hwvirtex           Permit or deny the usage of VT-x/AMD-V
    
      --convertSettings        Allow to auto-convert settings files
      --convertSettingsBackup  Allow to auto-convert settings files
                               but create backup copies before
      --convertSettingsIgnore  Allow to auto-convert settings files
                               but don't explicitly save the results
    
    Key bindings:
      <hostkey> +  f           Switch to full screen / restore to previous view
                   h           Press ACPI power button
                   n           Take a snapshot and continue execution
                   p           Pause / resume execution
                   q           Power off
                   r           VM reset
                   s           Save state and power off
                  <del>        Send <ctrl><alt><del>
           <F1>...<F12>        Send <ctrl><alt><Fx>
    
    
    C:\yk_prog\VirtualBox_OSE>
    C:\yk_prog\VirtualBox_OSE>REM please use device manager for Host-Only net interf
    ace installation.
    
    C:\yk_prog\VirtualBox_OSE>
    
bkarahan
Posts: 3
Joined: 9. Feb 2010, 18:27
Primary OS: MS Windows XP
VBox Version: OSE self-compiled
Guest OSses: LInux

Re: Building VirtualBox OSE 3.1.4 on Windows (use VS2005)

Post by bkarahan »

I thank you for all your work. I will give this a try.
bkarahan
Posts: 3
Joined: 9. Feb 2010, 18:27
Primary OS: MS Windows XP
VBox Version: OSE self-compiled
Guest OSses: LInux

Re: Building VirtualBox OSE 3.1.4 on Windows (use VS2005)

Post by bkarahan »

For QT I used qt-sdk-win-opensource-2010.02.1.exe, I did the exact commands you mentioned but in the Qt\2010.02.1\qt folder.

I had to due some of the changes you have listed in 3.0.8. For VirtualBox-3.1.4_OSE\include\iprt\asm.h
find
# pragma intrinsic(__readdr)
replace with
//# pragma intrinsic(__readdr) //comment out

find
# pragma intrinsic(__writedr)
replace with
//# pragma intrinsic(__writedr) //comment out

find
# if RT_INLINE_ASM_USES_INTRIN
replace with
# if 0

VBox is running fine. Simple instructions and works great!.
Thank you yk700101.
Dest
Volunteer
Posts: 138
Joined: 11. Jan 2008, 17:03
Primary OS: MS Windows Vista
VBox Version: PUEL
Guest OSses: Windows 2000, Windows XP, Ubuntu, FreeBSD

Re: Building VirtualBox OSE 3.1.4 on Windows (use VS2005)

Post by Dest »

Has anyone had created a successful cross compiler to build a 64bit version of virtualbox?

I haven't compiled the OSE since the 2.x days but it always bugged me i couldn't successfully create a 64bit build.
arend
Posts: 60
Joined: 14. Mar 2010, 21:56
Primary OS: MS Windows XP
VBox Version: OSE self-compiled
Guest OSses: Windows XP

Re: Building VirtualBox OSE 3.1.4 on Windows (use VS2005)

Post by arend »

Sorry for tagging on a question to a question but do these build instructions apply to 64-bit versions as well?

Thanks

Arend
sej7278
Volunteer
Posts: 1003
Joined: 5. Sep 2008, 14:40
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Solaris, Linux, Windows, OS/2, MacOSX, FreeBSD
Contact:

Re: Building VirtualBox OSE 3.1.4 on Windows (use VS2005)

Post by sej7278 »

aren't there already two other threads about how to do this?
techjack
Posts: 12
Joined: 17. Sep 2010, 23:30
Primary OS: MS Windows 7
VBox Version: OSE self-compiled
Guest OSses: Windows

Re: Building VirtualBox OSE 3.1.4 on Windows (use VS2005)

Post by techjack »

Thanks.
That helps a lot.
I compiled and build Trunk build as well as 3.2.8 with this instructions.

Pre-requisites can be downloaded from -
W2kSDK - Windows Server 2003 R2 Platform SDK - http://www.microsoft.com/downloads/en/d ... laylang=en
W2kDDK - Windows Server 2003 SP1 DDK http://download.microsoft.com/download/ ... sa_ddk.iso
Microsoft DirectX SDK (November 2008) http://www.microsoft.com/downloads/en/d ... laylang=en
MinGW - http://sourceforge.net/projects/mingw/files/ - Expand MinGW -> BaseSystem, you will find all the five required packages.
SDL - http://www.libsdl.org/download-1.2.php
QT - ftp://ftp.qt.nokia.com/qt/source/ - I couldn't find a pre-built QT package like qt-win-opensource-vs2005.exe. I tried qt-win-opensource-vs2008.exe. It didn't work. You will have to compile and build QT which takes couple of hours.
OpenSSL - I just found a binary package of 0.9.8k so I didn't have to build OpenSSL
cURL - I used prebuilt library here too. I didn't build it myself. Downloaded libcurl from http://curl.haxx.se/dlwiz/?type=devel&o ... &flav=MSVC Take the NO SSL one.
Python and GSoap.

I took me 2 days to gather required pre-requisites (I tried to build it using VS2008 and VS2010 with Win7 DDK first - didn't work)
Tomtom00712
Posts: 6
Joined: 13. Oct 2010, 12:53
Primary OS: MS Windows XP
VBox Version: OSE self-compiled
Guest OSses: Ubuntu

Re: Building VirtualBox OSE 3.1.4 on Windows (use VS2005)

Post by Tomtom00712 »

Thanks for the instructions, they helped me out a lot!

However, there are errors in the logs:

Code: Select all

C:\yk_prog\VirtualBox_OSE>SUPUninstall.exe
uninstallation failed. rc=VERR_GENERAL_FAILURE

C:\yk_prog\VirtualBox_OSE>SUPInstall.exe
installation failed. rc=VERR_GENERAL_FAILURE
Please take a look at
http://forums.virtualbox.org/viewtopic.php?f=10&t=31202
for the solution.
Tomtom00712
Posts: 6
Joined: 13. Oct 2010, 12:53
Primary OS: MS Windows XP
VBox Version: OSE self-compiled
Guest OSses: Ubuntu

Re: Building VirtualBox OSE 3.1.4 on Windows (use VS2005)

Post by Tomtom00712 »

The above mentioned bug during compilation is still in the sources (I just compiled 3.2.10):
# include $(PATH_SUB_CURRENT)/VBoxCredProv/Makefile.kmk
Maybe one should open a bug ticket. The information provided in this thread should be sufficient.
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Re: Building VirtualBox OSE 3.1.4 on Windows (use VS2005)

Post by frank »

credentialproviders.h is part of the MS Windows Software Development Kit Update for Vista, we are using the one from 02/2007.
yk700101
Posts: 43
Joined: 7. Feb 2009, 00:17
Primary OS: MS Windows Vista
VBox Version: OSE self-compiled
Guest OSses: Debian
Location: Japan
Contact:

Building VirtualBox OSE 3.1.6 on Windows (use PSDK2007)

Post by yk700101 »

Frank Mehnert wrote:credentialproviders.h is part of the MS Windows Software Development Kit Update for Vista, we are using the one from 02/2007.
This is for

Code: Select all

Windows Platform SDK
  Windows Vista Update & .NET 3.0 SDK (Feb-07)(6.1.6000.16384.10)
The build maybe succeeded.
But

Code: Select all

  VirtualBox-3.1.6_OSE\src\VBox\Additions\WINNT\VBoxCredProv
could not build.

Because (maybe)

Code: Select all

  VirtualBox-3.1.6_OSE/tools/win.x86/sdk/x200702//Lib/Uuid.Lib
does not exist.

This is for reference.

Prerequisites

Code: Select all

Windows Server 2003 Enterprise Edition SP2

Visual Studio 2005 Professional Edition with service pack 1

Windows Platform SDK
  Windows Vista Update & .NET 3.0 SDK (Feb-07)(6.1.6000.16384.10)
  
Windows Driver Development Kit
  Windows Server 2003 SP1 DDK
  
DirectX SDK
  Microsoft DirectX SDK (November 2008)

MingW
  GCC Version 3
    gcc-core-3.3.3-20040217-1.tar.gz
    gcc-g++-3.3.3-20040217-1.tar.gz

  MinGW Runtime
    mingwrt-3.18-mingw32-dev.tar.gz

  MinGW API for MS-Windows
    w32api-3.14-mingw32-dev.tar.gz

  GNU Binutils
    binutils-2.20.1-2-mingw32-bin.tar.gz

SDL
  SDL-devel-1.2.14-VC8.zip

QT
  qt-everywhere-opensource-src-4.6.2.zip
  
OpenSSL
  openssl-0.9.8n.tar.gz

cURL
  curl-7.20.0.tar.bz2

python
  python-2.6.5.msi

gSOAP
  gsoap_2.7.15.tar.gz  
Prerequisites(for building libraries)

Code: Select all

Perl
  ActivePerl-5.10.1.1007-MSWin32-x86-291969.msi
Directory tree

Code: Select all

  C:\Perl
  C:\Program Files\Microsoft DirectX SDK (November 2008)
  C:\Program Files\Microsoft SDKs\Windows\v6.0
  C:\Program Files\Microsoft Visual Studio 8\VC
  C:\Python26
  C:\WINDDK\3790.1830

  C:\z_Build2
  ? curl-7.20.0
  ? gsoap-2.7
  ? mingw
  ? openssl-0.9.8n
  ? qt-everywhere-opensource-src-4.6.2
  ? SDL-1.2.14
  ? VirtualBox-3.1.6_OSE
Command Prompt for build

Code: Select all

Start -> Programs -> Microsoft Visual Studio 2005 -> Visual Studio Tools -> Visual Studio 2005 Command Prompt
Building Qt4
  • Command

    Code: Select all

    "C:\Program Files\Microsoft DirectX SDK (November 2008)\Utilities\Bin\dx_setenv.cmd"
    
    set PATH=%PATH%;C:\z_Build2\qt-everywhere-opensource-src-4.6.2\bin;
    
    cd C:\z_Build2\qt-everywhere-opensource-src-4.6.2
    
    configure ^
      -release -opensource -shared -no-ltcg -no-fast ^
      -exceptions -accessibility -stl -no-sql-sqlite ^
      -no-qt3support -no-openvg -graphicssystem raster ^
      -qt-zlib -qt-gif -qt-libpng -qt-libmng -qt-libtiff ^
      -qt-libjpeg -no-dsp -no-vcproj -no-incredibuild-xge ^
      -no-plugin-manifests -qmake -process -rtti -no-mmx ^
      -no-3dnow -no-sse -no-sse2 -no-openssl -no-dbus ^
      -no-phonon -no-phonon-backend -no-multimedia ^
      -no-audio-backend -no-webkit -no-script ^
      -no-scripttools -no-declarative ^
      -arch windows ^
      -qt-style-windows ^
      -qt-style-windowsxp -qt-style-windowsvista ^
      -qt-style-plastique -qt-style-cleanlooks ^
      -no-style-motif -no-style-cde ^
      -no-native-gestures
    

    Code: Select all

    nmake > C:\z_Build2\qt-everywhere-opensource-src-4.6.2.build.log 2>&1
    

Building OpenSSL
  • Command

    Code: Select all

    set PATH=%PATH%;C:\Perl\bin;
    
    cd C:\z_Build2\openssl-0.9.8n
    
    perl Configure VC-WIN32 --prefix=C:/z_Build2/openssl ^
      > C:\z_Build2\openssl-0.9.8n.configure.log 2>&1
    
    ms\do_masm ^
      > C:\z_Build2\openssl-0.9.8n.assembly_language.log 2>&1
    

    Code: Select all

    nmake -f ms\ntdll.mak ^
      > C:\z_Build2\openssl-0.9.8n.build.log 2>&1
    
    nmake -f ms\ntdll.mak test ^
      > C:\z_Build2\openssl-0.9.8n.test.log 2>&1
    
    nmake -f ms\ntdll.mak install ^
      > C:\z_Build2\openssl-0.9.8n.install.log 2>&1
    
Building cURL
  • Command

    Code: Select all

    cd C:\z_Build2\curl-7.20.0
    
    pushd lib
    nmake /f Makefile.vc8 cfg=release-dll ^
      > C:\z_Build2\curl-7.20.0.build-dll.log 2>&1
    popd
    

    Code: Select all

    xcopy /E /I ^
      C:\z_Build2\curl-7.20.0\include ^
      C:\z_Build2\libcurl\include
    
    pushd C:\z_Build2\curl-7.20.0\lib\release-dll
    copy libcurl.dll     C:\z_Build2\libcurl
    copy libcurl_imp.lib C:\z_Build2\libcurl\libcurl.lib
    popd
    
Building VirtualBox(configure)
  • Command

    Code: Select all

    cd C:\z_Build2\VirtualBox-3.1.6_OSE
    
    cscript configure.vbs ^
      --with-DDK="C:\WINDDK\3790.1830" ^
      --with-DXSDK="C:\Program Files\Microsoft DirectX SDK (November 2008)" ^
      --with-libSDL=C:\z_Build2\SDL-1.2.14 ^
      --with-MinGW=C:\z_Build2\mingw ^
      --with-Qt4=C:\z_Build2\qt-everywhere-opensource-src-4.6.2 ^
      --with-SDK="C:\Program Files\Microsoft SDKs\Windows\v6.0" ^
      --with-python=C:\Python26 ^
      --with-openssl=C:\z_Build2\openssl ^
      --with-libcurl=C:\z_Build2\libcurl ^
      > C:\z_Build2\VirtualBox-3.1.6_OSE.configure.log 2>&1
    
Building VirtualBox(make)
  • Prepare
    Edit C:\z_Build2\VirtualBox-3.1.6_OSE\AutoConfig.kmk
    Add to the bottom

    Code: Select all

    VBOX_GSOAP_INSTALLED = 1
    VBOX_PATH_GSOAP := C:/z_Build2/gsoap-2.7/gsoap
    VBOX_PATH_GSOAP_BIN   := $(VBOX_PATH_GSOAP)/bin/win32
    PATH_SDK_WINDDK := $(PATH_SDK_W2K3DDK)
    
  • Command

    Code: Select all

    cd C:\z_Build2\VirtualBox-3.1.6_OSE
    
    env.bat
    
    set PATH=%PATH%;C:\z_Build2\mingw\bin;
    
    set PATH=%PATH%;C:\z_Build2\qt-everywhere-opensource-src-4.6.2\bin;
    
    kmk > C:\z_Build2\VirtualBox-3.1.6_OSE.build.log 2>&1
    
  • Error-1

    Code: Select all

    kBuild: Compiling VBoxCOM - C:/z_Build2/VirtualBox-3.1.6_OSE/src/VBox/Main/glue/initterm.cpp
    initterm.cpp
    C:\PROGRA~1\MICROS~1\VC\include\intrin.h(944) : error C2733: second C linkage of overloaded function '_interlockedbittestandset' not allowed
            C:\PROGRA~1\MICROS~1\VC\include\intrin.h(944) : see declaration of '_interlockedbittestandset'
    C:\PROGRA~1\MICROS~1\VC\include\intrin.h(945) : error C2733: second C linkage of overloaded function '_interlockedbittestandreset' not allowed
            C:\PROGRA~1\MICROS~1\VC\include\intrin.h(945) : see declaration of '_interlockedbittestandreset'
    kmk.exe[2]: *** [C:/z_Build2/VirtualBox-3.1.6_OSE/out/win.x86/release/obj/VBoxCOM/glue/initterm.obj] Error 2
    The failing command:
    @ C:/PROGRA~1/MICROS~1/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR -EHsc -GF -MD -W3 -wd4065 -wd4996 -wd4250 -Zc:wchar_t- -O2 -GS- -Oy- -IC:/z_Build2/VirtualBox-3.1.6_OSE/src/VBox/Main/include -IC:/PROGRA~1/MICROS~1/VC/atlmfc/include -IC:/z_Build2/VirtualBox-3.1.6_OSE/out/win.x86/release/bin/sdk/bindings/mscom/include -IC:/PROGRA~1/MICROS~3/Windows/v6.0/Include -IC:/WINDDK/3790.1830/inc/ddk -IC:/WINDDK/3790.1830/inc/ddk/wnet -IC:/WINDDK/3790.1830/inc/wnet -IC:/WINDDK/3790.1830/inc/ddk/wdm/wnet -IC:/z_Build2/VirtualBox-3.1.6_OSE/include -IC:/z_Build2/VirtualBox-3.1.6_OSE/out/win.x86/release -IC:/PROGRA~1/MICROS~1/VC/include -IC:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -D_X86_ -DIN_RING3 -DUNICODE -DNDEBUG=1 -D_UNICODE -D_WIN32_WINNT=0x0500 -FdC:/z_Build2/VirtualBox-3.1.6_OSE/out/win.x86/release/obj/VBoxCOM/glue/initterm-obj.pdb -FD -FoC:/z_Build2/VirtualBox-3.1.6_OSE/out/win.x86/release/obj/VBoxCOM/glue/initterm.obj C:\\z_Build2\\VirtualBox-3.1.6_OSE\\src\\VBox\\Main\\glue\\initterm.cpp
    
  • Resolve-1-1

    Code: Select all

    pushd "C:\Program Files\Microsoft SDKs\Windows\v6.0\Include\"
    ( move WinNT.h WinNT.h.original ) && ( copy WinNT.h.original WinNT.h )
    popd
    
  • Resolve-1-2
    Change C:\Program Files\Microsoft SDKs\Windows\v6.0\Include\WinNT.h (Line 1827-1837, 3108-3118)

    Code: Select all

    BOOLEAN
    _interlockedbittestandset (
        IN LONG volatile *Base,
        IN LONG Offset
        );
    
    BOOLEAN
    _interlockedbittestandreset (
        IN LONG volatile *Base,
        IN LONG Offset
        );
    
    to

    Code: Select all

    BOOLEAN
    _interlockedbittestandset (
        IN LONG *Base,
        IN LONG Offset
        );
    
    BOOLEAN
    _interlockedbittestandreset (
        IN LONG *Base,
        IN LONG Offset
        );
    
  • Error-2

    Code: Select all

    kBuild: Compiling VBoxCredProv - C:/z_Build2/VirtualBox-3.1.6_OSE/src/VBox/Additions/WINNT/VBoxCredProv/VBoxCredProv.rc
    kmk.exe[2]: Leaving directory `C:/z_Build2/VirtualBox-3.1.6_OSE'
    kmk.exe[2]: *** No rule to make target `C:/z_Build2/VirtualBox-3.1.6_OSE/tools/win.x86/sdk/x200702//Lib/Uuid.Lib', needed by `C:/z_Build2/VirtualBox-3.1.6_OSE/out/win.x86/release/obj/VBoxCredProv/VBoxCredProv.dll'.  Stop.
    
  • Resolve-2-1

    Code: Select all

    pushd C:\z_Build2\VirtualBox-3.1.6_OSE\src\VBox\Additions\WINNT
    ( move Makefile.kmk Makefile.kmk.original ) && ( copy Makefile.kmk.original Makefile.kmk )
    popd
    
  • Resolve-2-2
    Change C:\z_Build2\VirtualBox-3.1.6_OSE\src\VBox\Additions\WINNT\Makefile.kmk (Line 31)

    Code: Select all

    include $(PATH_SUB_CURRENT)/VBoxCredProv/Makefile.kmk
    
    to

    Code: Select all

    # include $(PATH_SUB_CURRENT)/VBoxCredProv/Makefile.kmk
    
  • Error-3

    Code: Select all

    kBuild: Compiling VBoxSVC - C:/z_Build2/VirtualBox-3.1.6_OSE/src/VBox/Main/win/NetIf-win.cpp
    NetIf-win.cpp
    C:\z_Build2\VirtualBox-3.1.6_OSE\src\VBox\Main\win\NetIf-win.cpp(103) : error C2065: 'PIP_ADAPTER_UNICAST_ADDRESS' : undeclared identifier
    C:\z_Build2\VirtualBox-3.1.6_OSE\src\VBox\Main\win\NetIf-win.cpp(103) : error C2146: syntax error : missing ';' before identifier 'pAddr'
    C:\z_Build2\VirtualBox-3.1.6_OSE\src\VBox\Main\win\NetIf-win.cpp(103) : error C2065: 'pAddr' : undeclared identifier
    
    C:\z_Build2\VirtualBox-3.1.6_OSE\src\VBox\Main\win\NetIf-win.cpp(146) : error C2227: left of '->PrefixLength' must point to class/struct/union/generic type
            type is ''unknown-type''
    kmk.exe[2]: *** [C:/z_Build2/VirtualBox-3.1.6_OSE/out/win.x86/release/obj/VBoxSVC/win/NetIf-win.obj] Error 2
    The failing command:
    @ C:/PROGRA~1/MICROS~1/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR -EHsc -GF -MD -W3 -wd4065 -wd4996 -wd4250 -Zc:wchar_t- -O2 -GS- -Oy- -Zi -Zl -GR -EHsc -GF -MD -W3 -wd4065 -wd4996 -wd4250 -Zc:wchar_t- -O2 -GS- -Oy- -IC:/PROGRA~1/MICROS~1/VC/include -IC:/z_Build2/VirtualBox-3.1.6_OSE/out/win.x86/release/obj/VBoxCOM -IC:/z_Build2/VirtualBox-3.1.6_OSE/src/VBox/Main/include -IC:/z_Build2/VirtualBox-3.1.6_OSE/out/win.x86/release/obj/VBoxSVC -IC:/z_Build2/VirtualBox-3.1.6_OSE/out/win.x86/release/obj/Main/ -IC:/z_Build2/VirtualBox-3.1.6_OSE/src/VBox/Main -IC:/PROGRA~1/MICROS~1/VC/atlmfc/include -IC:/z_Build2/VirtualBox-3.1.6_OSE/out/win.x86/release/bin/sdk/bindings/mscom/include -IC:/PROGRA~1/MICROS~3/Windows/v6.0/Include -IC:/WINDDK/3790.1830/inc/ddk -IC:/WINDDK/3790.1830/inc/ddk/wnet -IC:/WINDDK/3790.1830/inc/wnet -IC:/WINDDK/3790.1830/inc/ddk/wdm/wnet -IC:/z_Build2/VirtualBox-3.1.6_OSE/include -IC:/z_Build2/VirtualBox-3.1.6_OSE/out/win.x86/release -IC:/PROGRA~1/MICROS~1/VC/include -IC:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -D_X86_ -DIN_RING3 -DUNICODE -DNDEBUG=1 -DVBOX_MAIN_SETTINGS_ADDONS -DIN_VMM_STATIC -DVBOX_WITH_RAW_MODE -DVBOX_WITH_NETFLT -DVBOX_WITH_CROGL -DVBOX_WITH_GUEST_PROPS -DVBOX_WITH_HOSTNETIF_API -DVBOX_WITH_NEW_SYS_V_KEYGEN -DVBOX_WITH_VBOXSDL -DVBOX_WITH_HEADLESS -DVBOX_WITH_QTGUI -DVBOX_WITH_HGCM -DVBOX_WITH_ALSA -DVBOX_WITH_PULSE -DVBOX_WITH_E1000 -DVBOX_WITH_VIRTIO -DVBOX_WITH_AHCI -DVBOX_WITH_LSILOGIC -DVBOX_WITH_RESOURCE_USAGE_API -DVBOX_WITH_PDM_ASYNC_COMPLETION -DVBOX_WITH_HOSTNETIF_API -D_UNICODE -DVBOX_COM_OUTOFPROC_MODULE -D_WIN32_WINNT=0x0500 -FdC:/z_Build2/VirtualBox-3.1.6_OSE/out/win.x86/release/obj/VBoxSVC/win/NetIf-win-obj.pdb -FD -FoC:/z_Build2/VirtualBox-3.1.6_OSE/out/win.x86/release/obj/VBoxSVC/win/NetIf-win.obj C:\\z_Build2\\VirtualBox-3.1.6_OSE\\src\\VBox\\Main\\win\\NetIf-win.cpp
    
  • Resolve-3-1

    Code: Select all

    pushd "C:\z_Build2\VirtualBox-3.1.6_OSE"
    ( move Config.kmk Config.kmk.original ) && ( copy Config.kmk.original Config.kmk )
    popd
    
  • Resolve-3-2
    Change C:\z_Build2\VirtualBox-3.1.6_OSE\Config.kmk (Line 2905)

    Code: Select all

     TEMPLATE_VBOXMAINEXE_SDKS               = WINPSDK W2K3DDK
    
    to

    Code: Select all

     TEMPLATE_VBOXMAINEXE_SDKS               = W2K3DDK WINPSDK
    
After build
  • Undo changes

    Code: Select all

    pushd "C:\Program Files\Microsoft SDKs\Windows\v6.0\Include\"
    ( move WinNT.h WinNT.h.change ) && ( move WinNT.h.original WinNT.h ) && ( del WinNT.h.change )
    popd
    
  • Prepare for install

    Code: Select all

    pushd C:\z_Build2\VirtualBox-3.1.6_OSE\out\win.x86\release\bin
    
    copy C:\z_Build2\qt-everywhere-opensource-src-4.6.2\bin\QtCore4.dll .
    copy C:\z_Build2\qt-everywhere-opensource-src-4.6.2\bin\QtGui4.dll .
    copy C:\z_Build2\qt-everywhere-opensource-src-4.6.2\bin\QtNetwork4.dll .
    copy C:\z_Build2\qt-everywhere-opensource-src-4.6.2\bin\QtOpenGL4.dll .
    
    copy C:\z_Build2\openssl\bin\libeay32.dll .
    
    copy C:\z_Build2\libcurl\libcurl.dll .
    
    popd
    
  • Install

    Code: Select all

    pushd C:\z_Build2\VirtualBox-3.1.6_OSE\out\win.x86\release\bin
    
    comregister.cmd
    
    SUPUninstall.exe
    SUPInstall.exe
    
    NetAdpUninstall.exe
    NetAdpInstall.exe
    
    NetFltUninstall.exe
    NetFltInstall.exe
    
    REM please use device manager for Host-Only net interface installation.
    
    popd
    
  • Install (for Windows Vista)
    My VirtualBox directory is "C:\yk_prog\VirtualBox_OSE".

    Open Command Prompt(Run as administrator)

    Code: Select all

    cd C:\yk_prog\VirtualBox_OSE
    
    comregister.cmd
    
    SUPUninstall.exe
    SUPInstall.exe
    
    NetAdpUninstall.exe
    NetAdpInstall.exe
    
    NetFltUninstall.exe
    NetFltInstall.exe
    
    InfDefaultInstall.exe C:\yk_prog\VirtualBox_OSE\VBoxDrv.inf
    
    REM Dummy
    VBoxSDL.exe
    
    REM please use device manager for Host-Only net interface installation.
    
  • Install Log (for Windows Vista)

    Code: Select all

    Microsoft Windows [Version 6.0.6002]
    Copyright (c) 2006 Microsoft Corporation.  All rights reserved.
    
    C:\Windows\system32>cd C:\yk_prog\VirtualBox_OSE
    
    C:\yk_prog\VirtualBox_OSE>
    C:\yk_prog\VirtualBox_OSE>comregister.cmd
    
    C:\yk_prog\VirtualBox_OSE>
    C:\yk_prog\VirtualBox_OSE>SUPUninstall.exe
    uninstallation failed. rc=VERR_GENERAL_FAILURE
    
    C:\yk_prog\VirtualBox_OSE>SUPInstall.exe
    installation failed. rc=VERR_GENERAL_FAILURE
    
    C:\yk_prog\VirtualBox_OSE>
    C:\yk_prog\VirtualBox_OSE>NetAdpUninstall.exe
    uninstalling all Host-Only interfaces..
    uninstalled successfully
    
    C:\yk_prog\VirtualBox_OSE>NetAdpInstall.exe
    not implemented yet, please use device manager for Host-Only net interface installation.. sorry :(
    
    C:\yk_prog\VirtualBox_OSE>
    C:\yk_prog\VirtualBox_OSE>NetFltUninstall.exe
    NetFlt Is Installed currently
    uninstalled successfully
    
    C:\yk_prog\VirtualBox_OSE>NetFltInstall.exe
    NetFlt Is Not Installed currently
    installed successfully
    
    C:\yk_prog\VirtualBox_OSE>
    C:\yk_prog\VirtualBox_OSE>InfDefaultInstall.exe C:\yk_prog\VirtualBox_OSE\VBoxDrv.inf
    
    C:\yk_prog\VirtualBox_OSE>
    C:\yk_prog\VirtualBox_OSE>REM Dummy
    
    C:\yk_prog\VirtualBox_OSE>VBoxSDL.exe
    Sun VirtualBox SDL GUI version 3.1.6_OSE
    (C) 2005-2010 Sun Microsystems, Inc.
    All rights reserved.
    
    Usage:
      --startvm <uuid|name>    Virtual machine to start, either UUID or name
      --hda <file>             Set temporary first hard disk to file
      --fda <file>             Set temporary first floppy disk to file
      --cdrom <file>           Set temporary CDROM/DVD to file/device ('none' to unmount)
      --boot <a|c|d|n>         Set temporary boot device (a = floppy, c = 1st HD, d = DVD, n = network)
      --memory <size>          Set temporary memory size in megabytes
      --vram <size>            Set temporary size of video memory in megabytes
      --fullscreen             Start VM in fullscreen mode
      --fullscreenresize       Resize the guest on fullscreen
      --fixedmode <w> <h> <bpp> Use a fixed SDL video mode with given width, height and bits per pixel
      --nofstoggle             Forbid switching to/from fullscreen mode
      --noresize               Make the SDL frame non resizable
      --nohostkey              Disable all hostkey combinations
      --nohostkeys ...         Disable specific hostkey combinations, see below for valid keys
      --nograbonclick          Disable mouse/keyboard grabbing on mouse click w/o additions
      --detecthostkey          Get the hostkey identifier and modifier state
      --hostkey <key> {<key2>} <mod> Set the host key to the values obtained using --detecthostkey
      --termacpi               Send an ACPI power button event when closing the window
      --discardstate           Discard saved state (if present) and revert to last snapshot (if present)
      --[no]rawr0              Enable or disable raw ring 3
      --[no]rawr3              Enable or disable raw ring 0
      --[no]patm               Enable or disable PATM
      --[no]csam               Enable or disable CSAM
      --[no]hwvirtex           Permit or deny the usage of VT-x/AMD-V
    
      --convertSettings        Allow to auto-convert settings files
      --convertSettingsBackup  Allow to auto-convert settings files
                               but create backup copies before
      --convertSettingsIgnore  Allow to auto-convert settings files
                               but don't explicitly save the results
    
    Key bindings:
      <hostkey> +  f           Switch to full screen / restore to previous view
                   h           Press ACPI power button
                   n           Take a snapshot and continue execution
                   p           Pause / resume execution
                   q           Power off
                   r           VM reset
                   s           Save state and power off
                  <del>        Send <ctrl><alt><del>
           <F1>...<F12>        Send <ctrl><alt><Fx>
    
    
    C:\yk_prog\VirtualBox_OSE>
    C:\yk_prog\VirtualBox_OSE>REM please use device manager for Host-Only net interface installation.
    
    C:\yk_prog\VirtualBox_OSE>
    
Tomtom00712
Posts: 6
Joined: 13. Oct 2010, 12:53
Primary OS: MS Windows XP
VBox Version: OSE self-compiled
Guest OSses: Ubuntu

Re: Building VirtualBox OSE 3.1.4 on Windows (use VS2005)

Post by Tomtom00712 »

Thansk yk700101. Maybe Frank finds some time to have a look on it...
emadns
Posts: 4
Joined: 26. Sep 2011, 17:56
Primary OS: MS Windows 7
VBox Version: OSE self-compiled
Guest OSses: Windows 7

Re: Building VirtualBox OSE 3.1.4 on Windows (use VS2005)

Post by emadns »

Hello Experts,

I am trying to find OSE 3.1.4, but I could not and it is not the latest version. I tried the steps with the latest code but I had many errors.

How can I download OSE 3.1.4

Thank you
emadns
emadns
Posts: 4
Joined: 26. Sep 2011, 17:56
Primary OS: MS Windows 7
VBox Version: OSE self-compiled
Guest OSses: Windows 7

Re: Building VirtualBox OSE 3.1.4 on Windows (use VS2005)

Post by emadns »

I found it. Sorry for the extra message

Regards,
emadns
johnbob
Posts: 7
Joined: 24. Oct 2011, 16:20
Primary OS: MS Windows XP
VBox Version: OSE self-compiled
Guest OSses: Windows XP

Re: Building VirtualBox OSE 3.1.4 on Windows (use VS2005)

Post by johnbob »

Hello,

I am trying to build version 4.0.8, and I meet the 'PIP_ADAPTER_UNICAST_ADRESS undeclared' bug that I cannot manage to fix

Code: Select all

kBuild: Compiling VBoxSVC - V:/VirtualBox-4.0.8_OSE/src/VBox/Main/src-server/win/NetIf-win.cpp
NetIf-win.cpp
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(130) : error C2065: 'PIP_ADAPTER_UNICAST_ADDRESS' : undeclared id
entifier
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(130) : error C2146: syntax error : missing ';' before identifier
'pAddr'
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(130) : error C2065: 'pAddr' : undeclared identifier
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(132) : error C2065: 'pAddr' : undeclared identifier
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(132) : error C2065: 'pAddr' : undeclared identifier
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(132) : error C2065: 'pAddr' : undeclared identifier
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(132) : error C2065: 'pAddr' : undeclared identifier
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(132) : error C2227: left of '->Next' must point to class/struct/u
nion/generic type
        type is ''unknown-type''
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(134) : error C2065: 'pAddr' : undeclared identifier
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(134) : error C2227: left of '->Address' must point to class/struc
t/union/generic type
        type is ''unknown-type''
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(134) : error C2228: left of '.lpSockaddr' must have class/struct/
union
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(134) : error C2227: left of '->sa_family' must point to class/str
uct/union/generic type
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(141) : error C2065: 'pAddr' : undeclared identifier
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(141) : error C2227: left of '->Address' must point to class/struc
t/union/generic type
        type is ''unknown-type''
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(141) : error C2228: left of '.lpSockaddr' must have class/struct/
union
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(141) : error C2227: left of '->sin_addr' must point to class/stru
ct/union/generic type
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(141) : error C2228: left of '.S_un' must have class/struct/union
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(141) : error C2228: left of '.S_addr' must have class/struct/unio
n
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(150) : error C2065: 'pAddr' : undeclared identifier
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(150) : error C2227: left of '->Address' must point to class/struc
t/union/generic type
        type is ''unknown-type''
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(150) : error C2228: left of '.lpSockaddr' must have class/struct/
union
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(150) : error C2227: left of '->sin6_addr' must point to class/str
uct/union/generic type
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(150) : error C2228: left of '.u' must have class/struct/union
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(150) : error C2228: left of '.Byte' must have class/struct/union
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(156) : error C2065: 'PIP_ADAPTER_PREFIX' : undeclared identifier
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(156) : error C2146: syntax error : missing ';' before identifier
'pPrefix'
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(156) : error C2065: 'pPrefix' : undeclared identifier
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(158) : error C2065: 'pPrefix' : undeclared identifier
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(158) : error C2065: 'pPrefix' : undeclared identifier
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(158) : error C2065: 'pPrefix' : undeclared identifier
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(158) : error C2065: 'pPrefix' : undeclared identifier
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(158) : error C2227: left of '->Next' must point to class/struct/u
nion/generic type
        type is ''unknown-type''
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(160) : error C2065: 'pPrefix' : undeclared identifier
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(160) : error C2227: left of '->Address' must point to class/struc
t/union/generic type
        type is ''unknown-type''
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(160) : error C2228: left of '.lpSockaddr' must have class/struct/
union
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(160) : error C2227: left of '->sa_family' must point to class/str
uct/union/generic type
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(165) : error C2065: 'pPrefix' : undeclared identifier
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(165) : error C2227: left of '->PrefixLength' must point to class/
struct/union/generic type
        type is ''unknown-type''
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(168) : error C2065: 'pPrefix' : undeclared identifier
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(168) : error C2227: left of '->PrefixLength' must point to class/
struct/union/generic type
        type is ''unknown-type''
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(178) : error C2065: 'pPrefix' : undeclared identifier
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(178) : error C2227: left of '->PrefixLength' must point to class/
struct/union/generic type
        type is ''unknown-type''
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(181) : error C2065: 'pPrefix' : undeclared identifier
V:\VirtualBox-4.0.8_OSE\src\VBox\Main\src-server\win\NetIf-win.cpp(181) : error C2227: left of '->PrefixLength' must point to class/
struct/union/generic type
        type is ''unknown-type''
kmk: *** [V:/VirtualBox-4.0.8_OSE/out/win.x86/release/obj/VBoxSVC/src-server/win/NetIf-win.obj] Error 2
The failing command:
@ V:/PROGRA~1/MICROS~1.0/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR -EHsc -GF -MD -W3 -wd4065 -wd4996 -wd4250 -Zc:wchar_t- -O2
-GS- -Oy- -Zi -Zl -GR -EHsc -GF -MD -W3 -wd4065 -wd4996 -wd4250 -Zc:wchar_t- -O2 -GS- -Oy- -IV:/PROGRA~1/MICROS~1.0/VC/include -IV:/
PROGRA~1/MICROS~1.0/VC/include -IV:/PROGRA~1/MICROS~1.0/VC/atlmfc/include -IV:/VirtualBox-4.0.8_OSE/out/win.x86/release/obj/VBoxCOM
-IV:/VirtualBox-4.0.8_OSE/src/VBox/Main/include -IV:/VirtualBox-4.0.8_OSE/out/win.x86/release/obj/VBoxSVC -IV:/VirtualBox-4.0.8_OSE/
out/win.x86/release/obj/Main/ -IV:/VirtualBox-4.0.8_OSE/src/VBox/Main -IV:/PROGRA~1/MICROS~1.0/VC/atlmfc/include -IV:/VirtualBox-4.0
.8_OSE/out/win.x86/release/bin/sdk/bindings/mscom/include -IV:/VirtualBox-4.0.8_OSE/src/libs/libpng-1.2.8 -IV:/VirtualBox-4.0.8_OSE/
src/libs/zlib-1.2.1 -IV:/WinDDK/7600.16385.1/inc/ddk -IV:/WinDDK/7600.16385.1/inc/ddk/wnet -IV:/WinDDK/7600.16385.1/inc/wnet -IV:/Wi
nDDK/7600.16385.1/inc/ddk/wdm/wnet -IC:/PROGRA~1/MICROS~4/Windows/v7.0A/Include -IV:/VirtualBox-4.0.8_OSE/include -IV:/VirtualBox-4.
0.8_OSE/out/win.x86/release -IV:/PROGRA~1/MICROS~1.0/VC/include -IV:/PROGRA~1/MICROS~1.0/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGG
ER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -D_X86_ -DIN_RING3 -DUNICODE
-DNDEBUG=1 -DVBOX_MAIN_SETTINGS_ADDONS -DIN_VMM_STATIC -DVBOX_WITH_RAW_MODE -DVBOX_WITH_NETFLT -DVBOX_WITH_CROGL -DVBOX_WITH_GUEST_P
ROPS -DVBOX_WITH_GUEST_CONTROL -DVBOX_WITH_HOSTNETIF_API -DVBOX_WITH_NEW_SYS_V_KEYGEN -DVBOX_WITH_VBOXSDL -DVBOX_WITH_HEADLESS -DVBO
X_WITH_QTGUI -DVBOX_WITH_HGCM -DVBOX_WITH_ALSA -DVBOX_WITH_PULSE -DVBOX_WITH_E1000 -DVBOX_WITH_VIRTIO -DVBOX_WITH_AHCI -DVBOX_WITH_L
SILOGIC -DVBOX_WITH_RESOURCE_USAGE_API -DVBOX_WITH_PDM_ASYNC_COMPLETION -DVBOX_WITH_EXTPACK -DVBOX_WITH_VUSB -DVBOX_WITH_S3 -DVBOX_W
ITH_USB -DVBOX_WITH_NEW_USB_CODE_ON_DARWIN -DVBOX_WITH_HOSTNETIF_API -D_UNICODE -DVBOX_COM_OUTOFPROC_MODULE -D_WIN32_WINNT=0x0500 -F
dV:/VirtualBox-4.0.8_OSE/out/win.x86/release/obj/VBoxSVC/src-server/win/NetIf-win-obj.pdb -FD -FoV:/VirtualBox-4.0.8_OSE/out/win.x86
/release/obj/VBoxSVC/src-server/win/NetIf-win.obj V:\\VirtualBox-4.0.8_OSE\\src\\VBox\\Main\\src-server\\win\\NetIf-win.cpp
kmk: *** [V:/VirtualBox-4.0.8_OSE/out/win.x86/release/obj/VBoxSVC/src-server/win/NetIf-win.obj] Deleting file `V:/VirtualBox-4.0.8_O
SE/out/win.x86/release/obj/VBoxSVC/src-server/win/netif-win-obj.idb'

Swapping the order of the SDKs in the configuration file didn't change a thing. Anyone had an idea on how to solve this problem ??

Thanks
Post Reply