Building VirtualBox OSE 4.1.14 on Windows(32bit)

Discussions related to using the OSE version of VirtualBox.

Building VirtualBox OSE 4.1.14 on Windows(32bit)

Postby yk700101 » 11. May 2012, 13:32

The build maybe succeeded.

This is for reference.

Prerequisites
Code: Select all   Expand viewCollapse view
Windows Server 2003 Enterprise Edition SP2

Visual Studio .NET Enterprise Architect 2003

Windows Platform SDK (Microsoft Windows SDK)
  Windows Server 2003 R2 Platform SDK
  Windows Vista Update & .NET 3.0 SDK

Windows Driver Development Kit (Windows Driver Kit)
  Windows Server 2003 SP1 DDK
  WDK for Windows Server 2008
 
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
    mingw-runtime-3.8.tar.gz

  MinGW API for MS-Windows
    w32api-3.5.tar.gz

  GNU Binutils
    binutils-2.13.90-20021006-2.tar.gz

SDL
  SDL-devel-1.2.15-VC.zip

QT
  qt-everywhere-opensource-src-4.8.1.zip

OpenSSL
  openssl-0.9.8w.tar.gz

cURL
  curl-7.25.0.tar.lzma

python
  python-2.7.3.msi

gSOAP
  gsoap_2.8.8.zip


Prerequisites(for building libraries)
Code: Select all   Expand viewCollapse view
Perl
  ActivePerl-5.14.2.1402-MSWin32-x86-295342.msi

NASM
  nasm-2.10-installer.exe


Directory tree
Code: Select all   Expand viewCollapse view
  F:\Perl
  F:\Program Files\Microsoft DirectX SDK (November 2008)
  F:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2
  F:\Program Files\Microsoft SDKs\Windows\v6.0
  F:\Program Files\Microsoft Visual Studio .NET 2003\Vc7
  F:\Program Files\nasm
  F:\Python27
  F:\WINDDK\3790.1830
  F:\WinDDK\6001.18002

  F:\z_Build2
  ├ curl-7.25.0
  ├ gsoap-2.8
  ├ mingw
  ├ openssl-0.9.8w
  ├ qt-everywhere-opensource-src-4.8.1
  ├ SDL-1.2.15
  └ VirtualBox-4.1.14


Command Prompt for build
Code: Select all   Expand viewCollapse view
Start -> Programs -> Microsoft Visual Studio .NET 2003 -> Visual Studio .NET Tools -> Visual Studio .NET 2003 Command Prompt


Building Qt4
  • Command
    Code: Select all   Expand viewCollapse view
    "F:\Program Files\Microsoft DirectX SDK (November 2007)\Utilities\Bin\dx_setenv.cmd"

    set PATH=%PATH%;F:\z_Build2\qt-everywhere-opensource-src-4.8.1\bin;F:\Perl\bin;

    cd F:\z_Build2\qt-everywhere-opensource-src-4.8.1

    configure ^
      -release -opensource -shared -no-ltcg -no-fast ^
      -exceptions -accessibility -stl -no-sql-sqlite ^
      -no-qt3support -no-openvg -graphicssystem raster ^
      -qt-zlib -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 -no-declarative-debug ^
      -no-directwrite ^
      -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 -no-mp


    Code: Select all   Expand viewCollapse view
    nmake > F:\z_Build2\qt-everywhere-opensource-src-4.8.1.build.log 2>&1

Building OpenSSL
  • Command
    Code: Select all   Expand viewCollapse view
    set PATH=%PATH%;F:\Perl\bin;F:\Program Files\nasm

    cd F:\z_Build2\openssl-0.9.8w

    perl Configure VC-WIN32 --prefix=F:/z_Build2/openssl ^
      > F:\z_Build2\openssl-0.9.8w.configure.log 2>&1

    ms\do_nasm ^
      > F:\z_Build2\openssl-0.9.8w.assembly_language.log 2>&1


    Code: Select all   Expand viewCollapse view
    nmake -f ms\ntdll.mak ^
      > F:\z_Build2\openssl-0.9.8w.build.log 2>&1

    nmake -f ms\ntdll.mak test ^
      > F:\z_Build2\openssl-0.9.8w.test.log 2>&1

    nmake -f ms\ntdll.mak install ^
      > F:\z_Build2\openssl-0.9.8w.install.log 2>&1

Building cURL
  • Command
    Code: Select all   Expand viewCollapse view
    cd F:\z_Build2\curl-7.25.0

    pushd lib
    nmake /f Makefile.vc6 cfg=release-dll ^
      > F:\z_Build2\curl-7.25.0.build-dll.log 2>&1
    popd


    Code: Select all   Expand viewCollapse view
    xcopy /E /I ^
      F:\z_Build2\curl-7.25.0\include ^
      F:\z_Build2\libcurl\include

    pushd F:\z_Build2\curl-7.25.0\lib\release-dll
    copy libcurl.dll     F:\z_Build2\libcurl
    copy libcurl_imp.lib F:\z_Build2\libcurl\libcurl.lib
    popd

Modify SDL

Building VirtualBox(configure)
  • Command
    Code: Select all   Expand viewCollapse view
    cd F:\z_Build2\VirtualBox-4.1.14

    cscript configure.vbs ^
      --with-DDK="F:\WINDDK\3790.1830" ^
      --with-DXSDK="F:\Program Files\Microsoft DirectX SDK (November 2008)" ^
      --with-libSDL=F:\z_Build2\SDL-1.2.15 ^
      --with-MinGW=F:\z_Build2\mingw ^
      --with-Qt4=F:\z_Build2\qt-everywhere-opensource-src-4.8.1 ^
      --with-SDK="F:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2" ^
      --with-VC="F:\Program Files\Microsoft Visual Studio .NET 2003\Vc7" ^
      --with-python=F:\Python27 ^
      --with-openssl=F:\z_Build2\openssl ^
      --with-libcurl=F:\z_Build2\libcurl ^
      > F:\z_Build2\VirtualBox-4.1.14.configure.log 2>&1

Building VirtualBox(make)
  • Prepare
    Edit F:\z_Build2\VirtualBox-4.1.14\AutoConfig.kmk
    Add to the bottom
    Code: Select all   Expand viewCollapse view
    VBOX_GSOAP_INSTALLED = 1
    VBOX_PATH_GSOAP := F:/z_Build2/gsoap-2.8/gsoap
    VBOX_PATH_GSOAP_BIN   := $(VBOX_PATH_GSOAP)/bin/win32
    PATH_SDK_WINDDK := F:/WinDDK/6001.18002

  • Command
    Code: Select all   Expand viewCollapse view
    cd F:\z_Build2\VirtualBox-4.1.14

    env.bat

    set PATH=%PATH%;F:\z_Build2\mingw\bin;

    set PATH=%PATH%;F:\z_Build2\qt-everywhere-opensource-src-4.8.1\bin;

    kmk > F:\z_Build2\VirtualBox-4.1.14.build.log 2>&1

  • Error-1
    Code: Select all   Expand viewCollapse view
    VBoxCredentialProvider.cpp
    f:\z_Build2\VirtualBox-4.1.14\src\VBox\Additions\WINNT\VBoxCredProv\VBoxCredentialProvider.h(22) : fatal error C1083: Cannot open include file: 'credentialprovider.h': No such file or directory
    kmk: *** [F:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxCredProv/VBoxCredentialProvider.obj] Error 2
    The failing command:
    @ F:/PROGRA~1/MICROS~1.NET/Vc7/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR- -EHsc -GF -W3 -wd4065 -wd4244 -Ogitb2 -Oy- -MT -IF:/z_Build2/VirtualBox-4.1.14/tools/win.x86/sdk/x200702//Include -IF:/PROGRA~1/MICROS~2/Include -IF:/WinDDK/6001.18002/inc/api -IF:/WinDDK/6001.18002/inc/ddk -IF:/z_Build2/VirtualBox-4.1.14/include -IF:/z_Build2/VirtualBox-4.1.14/out/win.x86/release -IF:/PROGRA~1/MICROS~1.NET/Vc7/include -IF:/PROGRA~1/MICROS~1.NET/Vc7/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -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 -DIN_GUEST -DIN_GUEST_R3 -DIN_RT_R3 -DGC_ARCH_BITS=64 -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DUNICODE -FdF:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxCredProv/VBoxCredentialProvider-obj.pdb -FD -FoF:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxCredProv/VBoxCredentialProvider.obj F:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Additions\\WINNT\\VBoxCredProv\\VBoxCredentialProvider.cpp

  • Resolve-1-1
    Get the short name of "F:\Program Files\Microsoft SDKs\Windows\v6.0".
    Code: Select all   Expand viewCollapse view
    dir /X "F:\" | find "Program Files"
    dir /X "F:\Program Files" | find "Microsoft SDKs"


    (result)
    Code: Select all   Expand viewCollapse view
    05/11/2012  07:34 AM    <DIR>          PROGRA~1     Program Files
    05/08/2012  08:24 PM    <DIR>          MICROS~4     Microsoft SDKs

  • Resolve-1-2
    Change
    F:\z_Build2\VirtualBox-4.1.14\src\VBox\Additions\WINNT\VBoxCredProv\Makefile.kmk
    (diff)
    Code: Select all   Expand viewCollapse view
    *** F:/z_Build2/download/VirtualBox-4.1.14/src/VBox/Additions/WINNT/VBoxCredProv/Makefile.kmk   Fri Apr 27 01:56:52 2012
    --- F:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/VBoxCredProv/Makefile.kmk   Wed May 09 01:26:28 2012
    ***************
    *** 36,42 ****
      # Since this is not the default SDK we have to navigate manually to it.
      #
      VBOX_PATH_PSDK_200702    := \
    !    $(PATH_DEVTOOLS)/win.x86/sdk/x200702/
     
      VBoxCredProv_INCS        := \
         $(VBOX_PATH_PSDK_200702)/Include
    --- 36,42 ----
      # Since this is not the default SDK we have to navigate manually to it.
      #
      VBOX_PATH_PSDK_200702    := \
    !    F:/PROGRA~1/MICROS~4/Windows/v6.0
     
      VBoxCredProv_INCS        := \
         $(VBOX_PATH_PSDK_200702)/Include

  • Error-2
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxRes - F:/z_Build2/VirtualBox-4.1.14/src/VBox/Installer/win/Resources/dummy.cpp
    dummy.cpp
    kmk_builtin_rm -f F:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc
    kmk_builtin_append F:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_VIRTUALBOX            ICON DISCARDABLE "F:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Frontends\\VirtualBox\\images\\OSE\\VirtualBox_win.ico"'
    kmk_builtin_append F:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX         ICON DISCARDABLE "F:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\OSE\\virtualbox-vbox.ico"'
    kmk_builtin_append F:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX_EXTPACK ICON DISCARDABLE "F:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\OSE\\virtualbox-vbox-extpack.ico"'
    kmk_builtin_append F:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX_OVA     ICON DISCARDABLE "F:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\OSE\\virtualbox-ova.ico"'
    kmk_builtin_append F:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX_OVF     ICON DISCARDABLE "F:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\OSE\\virtualbox-ovf.ico"'
    kmk_builtin_append F:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX_VDI     ICON DISCARDABLE "F:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\virtualbox-vdi.ico"'
    kmk_builtin_append F:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX_VMDK    ICON DISCARDABLE "F:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\virtualbox-vmdk.ico"'
    kmk_builtin_append F:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX_VHD     ICON DISCARDABLE "F:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\virtualbox-vhd.ico"'
    kmk_builtin_append F:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX_HDD     ICON DISCARDABLE "F:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\virtualbox-hdd.ico"'
    kBuild: Compiling VBoxRes - F:/z_Build2/VirtualBox-4.1.14/src/VBox/Installer/win/Resources/VBoxRes.rc
    F:\z_Build2\VirtualBox-4.1.14\out\win.x86\release\obj\VBoxRes/VBoxRes-icons.rc(6) : error RC2176 : old DIB in F:\z_Build2\VirtualBox-4.1.14\src\VBox\Resources\win\virtualbox-vdi.ico; pass it through SDKPAINT

    kmk: *** [F:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes.res] Error 1
    The failing command:
    @ F:/PROGRA~1/MICROS~1.NET/Vc7/bin/rc.exe  /iF:\\z_Build2\\VirtualBox-4.1.14\\out\\win.x86\\release\\obj\\VBoxRes /iF:\\PROGRA~1\\MICROS~2\\Include /iF:\\z_Build2\\VirtualBox-4.1.14\\include /iF:\\z_Build2\\VirtualBox-4.1.14\\out\\win.x86\\release /iF:\\PROGRA~1\\MICROS~1.NET\\Vc7\\include /iF:\\PROGRA~1\\MICROS~1.NET\\Vc7\\atlmfc\\include /dVBOX /dVBOX_WITH_DEBUGGER /dVBOX_OSE /dVBOX_WITH_64_BITS_GUESTS /dRT_OS_WINDOWS /d__WIN__ /dRT_ARCH_X86 /d__X86__ /d__WIN32__ /dIN_RING3 /dHC_ARCH_BITS=32 /dGC_ARCH_BITS=64 /dVBOX_VERSION_MAJOR=\"4\" /dVBOX_VERSION_MINOR=\"1\" /dVBOX_VERSION_BUILD=\"14\" /dVBOX_SVN_REV=\"77440\" /dVBOX_VERSION_MAJOR_NR=4 /dVBOX_VERSION_MINOR_NR=1 /dVBOX_VERSION_BUILD_NR=14 /dVBOX_SVN_REV_NR=77440 /foF:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes.res F:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Installer\\win\\Resources\\VBoxRes.rc

  • Resolve-2
    (Maybe some icon files are missing.)
    Change
    F:\z_Build2\VirtualBox-4.1.14\src\VBox\Installer\win\Resources\Makefile.kmk
    (diff)
    Code: Select all   Expand viewCollapse view
    *** F:/z_Build2/download/VirtualBox-4.1.14/src/VBox/Installer/win/Resources/Makefile.kmk   Fri Apr 27 01:59:03 2012
    --- F:/z_Build2/VirtualBox-4.1.14/src/VBox/Installer/win/Resources/Makefile.kmk   Wed May 09 06:48:10 2012
    ***************
    *** 42,51 ****
        VBOX_WINDOWS_ICON_EXT_EXTPACK := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox-extpack.ico
        VBOX_WINDOWS_ICON_EXT_OVA     := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-ova.ico
        VBOX_WINDOWS_ICON_EXT_OVF     := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-ovf.ico
    !   VBOX_WINDOWS_ICON_EXT_VDI     := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vdi.ico
    !   VBOX_WINDOWS_ICON_EXT_VMDK    := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vmdk.ico
    !   VBOX_WINDOWS_ICON_EXT_VHD     := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vhd.ico
    !   VBOX_WINDOWS_ICON_EXT_HDD     := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-hdd.ico
      else
        VBOX_WINDOWS_ICON_EXT_VBOX    := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vbox.ico
        VBOX_WINDOWS_ICON_EXT_EXTPACK := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vbox-extpack.ico
    --- 42,51 ----
        VBOX_WINDOWS_ICON_EXT_EXTPACK := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox-extpack.ico
        VBOX_WINDOWS_ICON_EXT_OVA     := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-ova.ico
        VBOX_WINDOWS_ICON_EXT_OVF     := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-ovf.ico
    !   VBOX_WINDOWS_ICON_EXT_VDI     := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox.ico
    !   VBOX_WINDOWS_ICON_EXT_VMDK    := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox.ico
    !   VBOX_WINDOWS_ICON_EXT_VHD     := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox.ico
    !   VBOX_WINDOWS_ICON_EXT_HDD     := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox.ico
      else
        VBOX_WINDOWS_ICON_EXT_VBOX    := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vbox.ico
        VBOX_WINDOWS_ICON_EXT_EXTPACK := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vbox-extpack.ico

  • Error-3
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling vboxwebsrv - F:/z_Build2/VirtualBox-4.1.14/src/VBox/Main/webservice/vboxweb.cpp
    vboxweb.cpp
    F:/Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\WinSock2.h(112) : error C2011: 'fd_set' : 'struct' type redefinition
            F:/Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\WinSock.h(54) : see declaration of 'fd_set'
    F:/Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\WinSock2.h(147) : warning C4005: 'FD_SET' : macro redefinition
            F:/Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\WinSock.h(88) : see previous definition of 'FD_SET'
    F:/Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\WinSock2.h(156) : error C2011: 'timeval' : 'struct' type redefinition
    .
    .
    .
    kmk: *** [F:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/vboxwebsrv/vboxweb.obj] Error 2
    The failing command:
    @ F:/PROGRA~1/MICROS~1.NET/Vc7/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR -EHsc -GF -MD -W3 -wd4065 -wd4250 -Ogitb2 -Oy- -IF:/z_Build2/gsoap-2.8/gsoap -IF:/z_Build2/gsoap-2.8/gsoap/import -IF:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/webservice -IF:/z_Build2/VirtualBox-4.1.14/src/VBox/Main/webservice -IF:/PROGRA~1/MICROS~1.NET/Vc7/atlmfc/include -IF:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/bin/sdk/bindings/mscom/include -IF:/z_Build2/openssl/include -IF:/PROGRA~1/MICROS~2/Include -IF:/WINDDK/3790.1830/inc/ddk -IF:/WINDDK/3790.1830/inc/ddk/wnet -IF:/WINDDK/3790.1830/inc/wnet -IF:/WINDDK/3790.1830/inc/ddk/wdm/wnet -IF:/z_Build2/VirtualBox-4.1.14/include -IF:/z_Build2/VirtualBox-4.1.14/out/win.x86/release -IF:/PROGRA~1/MICROS~1.NET/Vc7/include -IF:/PROGRA~1/MICROS~1.NET/Vc7/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -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 -DSOCKET_CLOSE_ON_EXEC -DWITH_OPENSSL -D_UNICODE -DVBOX_BUILD_TARGET=\"win.x86\" -FdF:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/vboxwebsrv/vboxweb-obj.pdb -FD -FoF:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/vboxwebsrv/vboxweb.obj F:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Main\\webservice\\vboxweb.cpp

  • Reference-3
    C++ Redefinition Header Files - Stack Overflow
    http://stackoverflow.com/questions/1372 ... ader-files
  • Resolve-3
    Change
    F:\z_Build2\VirtualBox-4.1.14\src\VBox\Main\webservice\vboxweb.h
    (diff)
    Code: Select all   Expand viewCollapse view
    *** F:/z_Build2/download/VirtualBox-4.1.14/src/VBox/Main/webservice/vboxweb.h   Fri Apr 27 01:59:10 2012
    --- F:/z_Build2/VirtualBox-4.1.14/src/VBox/Main/webservice/vboxweb.h   Wed May 09 07:09:51 2012
    ***************
    *** 18,24 ****
       * debug macro
       *
       ****************************************************************************/
    !
      void WebLog(const char *pszFormat, ...);
     
      #define WEBDEBUG(a) do { if (g_fVerbose) { WebLog a; } } while (0)
    --- 18,24 ----
       * debug macro
       *
       ****************************************************************************/
    ! #define _WINSOCKAPI_
      void WebLog(const char *pszFormat, ...);
     
      #define WEBDEBUG(a) do { if (g_fVerbose) { WebLog a; } } while (0)

After build
  • Prepare for install
    Code: Select all   Expand viewCollapse view
    pushd F:\z_Build2\VirtualBox-4.1.14\out\win.x86\release\bin

    copy F:\z_Build2\qt-everywhere-opensource-src-4.8.1\lib\QtCore4.dll .
    copy F:\z_Build2\qt-everywhere-opensource-src-4.8.1\lib\QtGui4.dll .
    copy F:\z_Build2\qt-everywhere-opensource-src-4.8.1\lib\QtNetwork4.dll .
    copy F:\z_Build2\qt-everywhere-opensource-src-4.8.1\lib\QtOpenGL4.dll .

    copy F:\z_Build2\openssl\bin\libeay32.dll .
    copy F:\z_Build2\openssl\bin\ssleay32.dll .

    copy F:\z_Build2\libcurl\libcurl.dll .

    popd

  • Install
    Code: Select all   Expand viewCollapse view
    pushd F:\z_Build2\VirtualBox-4.1.14\out\win.x86\release\bin

    comregister.cmd

    NetAdpUninstall.exe
    NetFltUninstall.exe
    SUPUninstall.exe
    USBUninstall.exe

    NetAdpInstall.exe
    NetFltInstall.exe
    SUPInstall.exe
    USBInstall.exe

    rundll32 setupapi,InstallHinfSection DefaultInstall 132 F:\z_Build2\VirtualBox-4.1.14\out\win.x86\release\bin\VBoxDrv.inf

    popd

  • Install (for Windows Vista)
    My VirtualBox directory is "C:\yk_prog\VirtualBox_OSE".

    Open Command Prompt(Run as administrator)
    Code: Select all   Expand viewCollapse view
    cd C:\yk_prog\VirtualBox_OSE

    comregister.cmd

    NetAdpUninstall.exe
    NetFltUninstall.exe
    SUPUninstall.exe
    USBUninstall.exe

    NetAdpInstall.exe
    NetFltInstall.exe
    SUPInstall.exe
    USBInstall.exe

    InfDefaultInstall.exe C:\yk_prog\VirtualBox_OSE\VBoxDrv.inf

    REM Dummy
    VBoxSDL.exe

  • Install Log (for Windows Vista)
    Code: Select all   Expand viewCollapse view
    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>NetAdpUninstall.exe
    uninstalling all Host-Only interfaces..
    uninstalled successfully

    C:\yk_prog\VirtualBox_OSE>NetFltUninstall.exe
    NetFlt is installed currently, uninstalling ...
    uninstalled successfully

    C:\yk_prog\VirtualBox_OSE>SUPUninstall.exe
    uninstalled successfully

    C:\yk_prog\VirtualBox_OSE>USBUninstall.exe
    USB uninstallation
    USB uninstallation succeeded!

    C:\yk_prog\VirtualBox_OSE>NetAdpInstall.exe
    adding host-only interface..
    VBoxNetCfgWinEnableStaticIpConfig: ip=0x1f6a8c0 mask=0xffffffnetIfWinFindAdapterClassById: IEnumWbemClassObject::Next -> hr=0x0 pclsObj=034C9DE0 uReturn=1 42=42
    netIfWinFindAdapterClassById: S_OK and 034C9DE0
    VBoxNetCfgWinEnableStaticIpConfig: returns 0x0
    C:\yk_prog\VirtualBox_OSE>NetFltInstall.exe
    NetFlt is not installed currently
    NetFlt will be installed ...
    Installing 2 INF files ...
    Installing INF file "C:\yk_prog\VirtualBox_OSE\VBoxNetFlt.inf" ...
    Installing INF file "C:\yk_prog\VirtualBox_OSE\VBoxNetFltM.inf" ...
    installed successfully

    C:\yk_prog\VirtualBox_OSE>SUPInstall.exe
    installed successfully

    C:\yk_prog\VirtualBox_OSE>USBInstall.exe
    USB installation
    Creating USB monitor driver service with path C:\yk_prog\VirtualBox_OSE\VBoxUSBMon.sys ...
    Installation successful.

    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
    Oracle VM VirtualBox SDL GUI version 4.1.14_OSE
    (C) 2005-2012 Oracle Corporation
    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
      --vrdp <ports>           Listen for VRDP connections on one of specified ports (default if not specified)
      --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

    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>
Last edited by yk700101 on 13. May 2012, 05:55, edited 2 times in total.
yk700101
 
Posts: 43
Joined: 7. Feb 2009, 00:17
Location: Japan
Primary OS: MS Windows Vista
VBox Version: OSE self-compiled
Guest OSses: Debian

Building VirtualBox OSE 4.1.14 on Windows(VS2005)

Postby yk700101 » 11. May 2012, 15:08

The build maybe succeeded.

This is for reference.

Prerequisites
Code: Select all   Expand viewCollapse view
Windows Server 2003 Web Edition SP2

Visual Studio 2005 Professional Edition with service pack 1

Windows Platform SDK (Microsoft Windows SDK)
  Windows Server 2003 R2 Platform SDK
  Windows Vista Update & .NET 3.0 SDK

Windows Driver Development Kit (Windows Driver Kit)
  Windows Server 2003 SP1 DDK
  WDK for Windows Server 2008
 
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
    mingw-runtime-3.8.tar.gz

  MinGW API for MS-Windows
    w32api-3.5.tar.gz

  GNU Binutils
    binutils-2.13.90-20021006-2.tar.gz

SDL
  SDL-devel-1.2.15-VC.zip

QT
  qt-everywhere-opensource-src-4.8.1.zip

OpenSSL
  openssl-0.9.8w.tar.gz

cURL
  curl-7.25.0.tar.lzma

python
  python-2.7.3.msi

gSOAP
  gsoap_2.8.8.zip


Prerequisites(for building libraries)
Code: Select all   Expand viewCollapse view
Perl
  ActivePerl-5.14.2.1402-MSWin32-x86-295342.msi

NASM
  nasm-2.10-installer.exe


Directory tree
Code: Select all   Expand viewCollapse view
  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 SDKs\Windows\v6.0
  E:\Program Files\Microsoft Visual Studio 8\VC
  E:\Program Files\nasm
  E:\Python27
  E:\WINDDK\3790.1830
  E:\WinDDK\6001.18002

  E:\z_Build2
  ├ curl-7.25.0
  ├ gsoap-2.8
  ├ mingw
  ├ openssl-0.9.8w
  ├ qt-everywhere-opensource-src-4.8.1
  ├ SDL-1.2.15
  └ VirtualBox-4.1.14


Command Prompt for build
Code: Select all   Expand viewCollapse view
Start -> Programs -> Microsoft Visual Studio 2005 -> Visual Studio Tools -> Visual Studio 2005 Command Prompt


Building Qt4
  • Command
    Code: Select all   Expand viewCollapse view
    "E:\Program Files\Microsoft DirectX SDK (November 2007)\Utilities\Bin\dx_setenv.cmd"

    set PATH=%PATH%;E:\z_Build2\qt-everywhere-opensource-src-4.8.1\bin;E:\Perl\bin;

    cd E:\z_Build2\qt-everywhere-opensource-src-4.8.1

    configure ^
      -release -opensource -shared -no-ltcg -no-fast ^
      -exceptions -accessibility -stl -no-sql-sqlite ^
      -no-qt3support -no-openvg -graphicssystem raster ^
      -qt-zlib -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 -no-declarative-debug ^
      -no-directwrite ^
      -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 -no-mp


    Code: Select all   Expand viewCollapse view
    nmake > E:\z_Build2\qt-everywhere-opensource-src-4.8.1.build.log 2>&1

Building OpenSSL
  • Command
    Code: Select all   Expand viewCollapse view
    set PATH=%PATH%;E:\Perl\bin;E:\Program Files\nasm

    cd E:\z_Build2\openssl-0.9.8w

    perl Configure VC-WIN32 --prefix=E:/z_Build2/openssl ^
      > E:\z_Build2\openssl-0.9.8w.configure.log 2>&1

    ms\do_nasm ^
      > E:\z_Build2\openssl-0.9.8w.assembly_language.log 2>&1


    Code: Select all   Expand viewCollapse view
    nmake -f ms\ntdll.mak ^
      > E:\z_Build2\openssl-0.9.8w.build.log 2>&1

    nmake -f ms\ntdll.mak test ^
      > E:\z_Build2\openssl-0.9.8w.test.log 2>&1

    nmake -f ms\ntdll.mak install ^
      > E:\z_Build2\openssl-0.9.8w.install.log 2>&1


Building cURL
  • Command
    Code: Select all   Expand viewCollapse view
    cd E:\z_Build2\curl-7.25.0

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


    Code: Select all   Expand viewCollapse view
    xcopy /E /I ^
      E:\z_Build2\curl-7.25.0\include ^
      E:\z_Build2\libcurl\include

    pushd E:\z_Build2\curl-7.25.0\lib\release-dll
    copy libcurl.dll     E:\z_Build2\libcurl
    copy libcurl_imp.lib E:\z_Build2\libcurl\libcurl.lib
    popd

Modify SDL

Building VirtualBox(configure)
  • Command
    Code: Select all   Expand viewCollapse view
    cd E:\z_Build2\VirtualBox-4.1.14

    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.15 ^
      --with-MinGW=E:\z_Build2\mingw ^
      --with-Qt4=E:\z_Build2\qt-everywhere-opensource-src-4.8.1 ^
      --with-SDK="E:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2" ^
      --with-VC="E:\Program Files\Microsoft Visual Studio 8\VC" ^
      --with-python=E:\Python27 ^
      --with-openssl=E:\z_Build2\openssl ^
      --with-libcurl=E:\z_Build2\libcurl ^
      > E:\z_Build2\VirtualBox-4.1.14.configure.log 2>&1


Building VirtualBox(make)
  • Prepare
    Edit E:\z_Build2\VirtualBox-4.1.14\AutoConfig.kmk
    Add to the bottom
    Code: Select all   Expand viewCollapse view
    VBOX_GSOAP_INSTALLED = 1
    VBOX_PATH_GSOAP := E:/z_Build2/gsoap-2.8/gsoap
    VBOX_PATH_GSOAP_BIN   := $(VBOX_PATH_GSOAP)/bin/win32
    PATH_SDK_WINDDK := E:/WinDDK/6001.18002

  • Command
    Code: Select all   Expand viewCollapse view
    cd E:\z_Build2\VirtualBox-4.1.14

    env.bat

    set PATH=%PATH%;E:\z_Build2\mingw\bin;

    set PATH=%PATH%;E:\z_Build2\qt-everywhere-opensource-src-4.8.1\bin;

    kmk > E:\z_Build2\VirtualBox-4.1.14.build.log 2>&1

  • Error-1
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling RuntimeBldProg - E:/z_Build2/VirtualBox-4.1.14/src/VBox/Runtime/common/log/log.cpp
    log.cpp
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm-amd64-x86.h(65) : warning C4164: '__readdr' : intrinsic function not declared
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm-amd64-x86.h(66) : warning C4164: '__writedr' : intrinsic function not declared
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm-amd64-x86.h(1696) : error C3861: '__readdr': identifier not found
    .
    .
    .
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm-amd64-x86.h(2130) : error C3861: '__writedr': identifier not found
    kmk: *** [E:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/RuntimeBldProg/common/log/log.obj] Error 2
    The failing command:
    @ E:/PROGRA~1/MICROS~1/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR- -EHs- -GF -MT -W3 -wd4996 -Zc:wchar_t- -O2 -Oy- -GS- -IE:/z_Build2/VirtualBox-4.1.14/src/VBox/Runtime/include -IE:/z_Build2/VirtualBox-4.1.14/src/libs/zlib-1.2.6 -IE:/z_Build2/VirtualBox-4.1.14/src/libs/liblzf-3.4 -IE:/z_Build2/VirtualBox-4.1.14/src/libs/libxml2-2.6.31/include -IE:/z_Build2/openssl/include -IE:/z_Build2/VirtualBox-4.1.14/src/libs/boost-1.37.0 -IE:/PROGRA~1/MICROS~3/Include -IE:/PROGRA~1/MICROS~3/Include -IE:/WINDDK/3790.1830/inc/ddk -IE:/WINDDK/3790.1830/inc/ddk/wnet -IE:/WINDDK/3790.1830/inc/wnet -IE:/WINDDK/3790.1830/inc/ddk/wdm/wnet -IE:/z_Build2/VirtualBox-4.1.14/include -IE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release -IE:/PROGRA~1/MICROS~1/VC/include -IE:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -D_REENTRANT -DWIN32 -D_WINDOWS -D_MBCS -DBOOST_DISABLE_ASSERTS -D_X86_ -DIN_RING3 -DLOG_DISABLED -DIN_RT_R3 -DIN_SUP_R3 -DLDR_WITH_NATIVE -DLDR_WITH_ELF32 -DLDR_WITH_PE -DRT_WITH_VBOX -DRT_NO_GIP -D_CRT_SECURE_NO_DEPRECATE -FdE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/RuntimeBldProg/common/log/log-obj.pdb -FD -FoE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/RuntimeBldProg/common/log/log.obj E:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Runtime\\common\\log\\log.cpp

  • Resolve-1
    Reinstall (remove, and install from Microsoft Update) VS2005 Service Pack 1(KB926601)
  • Error-2
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxCredProv - E:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/VBoxCredProv/VBoxCredentialProvider.cpp
    VBoxCredentialProvider.cpp
    e:\z_build2\virtualbox-4.1.14\src\vbox\additions\winnt\vboxcredprov\VBoxCredentialProvider.h(22) : fatal error C1083: Cannot open include file: 'credentialprovider.h': No such file or directory
    kmk: *** [E:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxCredProv/VBoxCredentialProvider.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-4.1.14/tools/win.x86/sdk/x200702//Include -IE:/PROGRA~1/MICROS~3/Include -IE:/WinDDK/6001.18002/inc/api -IE:/WinDDK/6001.18002/inc/ddk -IE:/z_Build2/VirtualBox-4.1.14/include -IE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release -IE:/PROGRA~1/MICROS~1/VC/include -IE:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -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 -DIN_GUEST -DIN_GUEST_R3 -DIN_RT_R3 -DGC_ARCH_BITS=64 -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DUNICODE -FdE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxCredProv/VBoxCredentialProvider-obj.pdb -FD -FoE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxCredProv/VBoxCredentialProvider.obj E:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Additions\\WINNT\\VBoxCredProv\\VBoxCredentialProvider.cpp

  • Resolve-2-1
    Get the short name of "E:\Program Files\Microsoft SDKs\Windows\v6.0".
    Code: Select all   Expand viewCollapse view
    dir /X "E:\" | find "Program Files" && ^
    dir /X "E:\Program Files" | find "Microsoft SDKs"


    (result)
    Code: Select all   Expand viewCollapse view
    05/09/2012  09:02 PM    <DIR>          PROGRA~1     Program Files
    05/09/2012  09:05 PM    <DIR>          MI2578~1     Microsoft SDKs

  • Resolve-2-2
    Code: Select all   Expand viewCollapse view
    pushd E:\z_Build2\VirtualBox-4.1.14\src\VBox\Additions\WINNT\VBoxCredProv
    move Makefile.kmk          Makefile.kmk.original
    copy Makefile.kmk.original Makefile.kmk
    popd

  • Resolve-2-3
    Change
    E:\z_Build2\VirtualBox-4.1.14\src\VBox\Additions\WINNT\VBoxCredProv\Makefile.kmk
    (diff)
    Code: Select all   Expand viewCollapse view
    *** E:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/VBoxCredProv/Makefile.kmk.original   Fri Apr 27 01:56:52 2012
    --- E:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/VBoxCredProv/Makefile.kmk   Thu May 10 06:13:58 2012
    ***************
    *** 36,42 ****
      # Since this is not the default SDK we have to navigate manually to it.
      #
      VBOX_PATH_PSDK_200702    := \
    !    $(PATH_DEVTOOLS)/win.x86/sdk/x200702/
     
      VBoxCredProv_INCS        := \
         $(VBOX_PATH_PSDK_200702)/Include
    --- 36,42 ----
      # Since this is not the default SDK we have to navigate manually to it.
      #
      VBOX_PATH_PSDK_200702    := \
    !    E:/PROGRA~1/MI2578~1/Windows/v6.0
     
      VBoxCredProv_INCS        := \
         $(VBOX_PATH_PSDK_200702)/Include

  • Error-3
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxRes - E:/z_Build2/VirtualBox-4.1.14/src/VBox/Installer/win/Resources/dummy.cpp
    dummy.cpp
    kmk_builtin_rm -f E:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc
    kmk_builtin_append E:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_VIRTUALBOX            ICON DISCARDABLE "E:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Frontends\\VirtualBox\\images\\OSE\\VirtualBox_win.ico"'
    kmk_builtin_append E:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX         ICON DISCARDABLE "E:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\OSE\\virtualbox-vbox.ico"'
    kmk_builtin_append E:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX_EXTPACK ICON DISCARDABLE "E:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\OSE\\virtualbox-vbox-extpack.ico"'
    kmk_builtin_append E:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX_OVA     ICON DISCARDABLE "E:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\OSE\\virtualbox-ova.ico"'
    kmk_builtin_append E:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX_OVF     ICON DISCARDABLE "E:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\OSE\\virtualbox-ovf.ico"'
    kmk_builtin_append E:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX_VDI     ICON DISCARDABLE "E:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\virtualbox-vdi.ico"'
    kmk_builtin_append E:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX_VMDK    ICON DISCARDABLE "E:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\virtualbox-vmdk.ico"'
    kmk_builtin_append E:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX_VHD     ICON DISCARDABLE "E:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\virtualbox-vhd.ico"'
    kmk_builtin_append E:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX_HDD     ICON DISCARDABLE "E:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\virtualbox-hdd.ico"'
    kBuild: Compiling VBoxRes - E:/z_Build2/VirtualBox-4.1.14/src/VBox/Installer/win/Resources/VBoxRes.rc
    E:\z_Build2\VirtualBox-4.1.14\out\win.x86\release\obj\VBoxRes/VBoxRes-icons.rc(6) : error RC2176 : old DIB in E:\z_Build2\VirtualBox-4.1.14\src\VBox\Resources\win\virtualbox-vdi.ico; pass it through SDKPAINT

    kmk: *** [E:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes.res] Error 1
    The failing command:
    @ E:/PROGRA~1/MICROS~1/VC/bin/rc.exe  /iE:\\z_Build2\\VirtualBox-4.1.14\\out\\win.x86\\release\\obj\\VBoxRes /iE:\\PROGRA~1\\MICROS~3\\Include /iE:\\z_Build2\\VirtualBox-4.1.14\\include /iE:\\z_Build2\\VirtualBox-4.1.14\\out\\win.x86\\release /iE:\\PROGRA~1\\MICROS~1\\VC\\include /iE:\\PROGRA~1\\MICROS~1\\VC\\atlmfc\\include /dVBOX /dVBOX_WITH_DEBUGGER /dVBOX_OSE /dVBOX_WITH_64_BITS_GUESTS /dRT_OS_WINDOWS /d__WIN__ /dRT_ARCH_X86 /d__X86__ /d__WIN32__ /dIN_RING3 /dHC_ARCH_BITS=32 /dGC_ARCH_BITS=64 /dVBOX_VERSION_MAJOR=\"4\" /dVBOX_VERSION_MINOR=\"1\" /dVBOX_VERSION_BUILD=\"14\" /dVBOX_SVN_REV=\"77440\" /dVBOX_VERSION_MAJOR_NR=4 /dVBOX_VERSION_MINOR_NR=1 /dVBOX_VERSION_BUILD_NR=14 /dVBOX_SVN_REV_NR=77440 /foE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes.res E:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Installer\\win\\Resources\\VBoxRes.rc

  • Resolve-3-1
    Code: Select all   Expand viewCollapse view
    pushd E:\z_Build2\VirtualBox-4.1.14\src\VBox\Installer\win\Resources
    move Makefile.kmk          Makefile.kmk.original
    copy Makefile.kmk.original Makefile.kmk
    popd

  • Resolve-3-2
    (Maybe some icon files are missing.)
    Change
    E:\z_Build2\VirtualBox-4.1.14\src\VBox\Installer\win\Resources\Makefile.kmk
    (diff)
    Code: Select all   Expand viewCollapse view
    *** E:/z_Build2/VirtualBox-4.1.14/src/VBox/Installer/win/Resources/Makefile.kmk.original   Fri Apr 27 01:59:03 2012
    --- E:/z_Build2/VirtualBox-4.1.14/src/VBox/Installer/win/Resources/Makefile.kmk   Thu May 10 06:17:12 2012
    ***************
    *** 42,51 ****
        VBOX_WINDOWS_ICON_EXT_EXTPACK := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox-extpack.ico
        VBOX_WINDOWS_ICON_EXT_OVA     := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-ova.ico
        VBOX_WINDOWS_ICON_EXT_OVF     := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-ovf.ico
    !   VBOX_WINDOWS_ICON_EXT_VDI     := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vdi.ico
    !   VBOX_WINDOWS_ICON_EXT_VMDK    := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vmdk.ico
    !   VBOX_WINDOWS_ICON_EXT_VHD     := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vhd.ico
    !   VBOX_WINDOWS_ICON_EXT_HDD     := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-hdd.ico
      else
        VBOX_WINDOWS_ICON_EXT_VBOX    := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vbox.ico
        VBOX_WINDOWS_ICON_EXT_EXTPACK := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vbox-extpack.ico
    --- 42,51 ----
        VBOX_WINDOWS_ICON_EXT_EXTPACK := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox-extpack.ico
        VBOX_WINDOWS_ICON_EXT_OVA     := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-ova.ico
        VBOX_WINDOWS_ICON_EXT_OVF     := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-ovf.ico
    !   VBOX_WINDOWS_ICON_EXT_VDI     := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox.ico
    !   VBOX_WINDOWS_ICON_EXT_VMDK    := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox.ico
    !   VBOX_WINDOWS_ICON_EXT_VHD     := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox.ico
    !   VBOX_WINDOWS_ICON_EXT_HDD     := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox.ico
      else
        VBOX_WINDOWS_ICON_EXT_VBOX    := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vbox.ico
        VBOX_WINDOWS_ICON_EXT_EXTPACK := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vbox-extpack.ico

  • Error-4
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxGuestInstallHelper - E:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Installer/InstallHelper/VBoxGuestInstallHelper.cpp
    VBoxGuestInstallHelper.cpp
    E:\PROGRA~1\MICROS~1\VC\include\tchar.h(26) : fatal error C1189: #error :  Need to include strsafe.h after tchar.h

    kmk: *** [E:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxGuestInstallHelper/VBoxGuestInstallHelper.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:/PROGRA~1/MICROS~3/Include -IE:/z_Build2/VirtualBox-4.1.14/include -IE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release -IE:/PROGRA~1/MICROS~1/VC/include -IE:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -DIN_RING3 -DIN_GUEST -DIN_GUEST_R3 -DIN_RT_R3 -DGC_ARCH_BITS=64 -D_WIN32_WINNT=0x0400 -DWIN32_LEAN_AND_MEAN=1 -FdE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxGuestInstallHelper/VBoxGuestInstallHelper-obj.pdb -FD -FoE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxGuestInstallHelper/VBoxGuestInstallHelper.obj E:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Additions\\WINNT\\Installer\\InstallHelper\\VBoxGuestInstallHelper.cpp

  • Resolve-4-1
    Code: Select all   Expand viewCollapse view
    pushd E:\z_Build2\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Installer\InstallHelper
    move VBoxGuestInstallHelper.cpp          VBoxGuestInstallHelper.cpp.original
    copy VBoxGuestInstallHelper.cpp.original VBoxGuestInstallHelper.cpp
    popd

  • Resolve-4-2
    Change
    E:\z_Build2\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Installer\InstallHelper\VBoxGuestInstallHelper.cpp
    (diff)
    Code: Select all   Expand viewCollapse view
    *** E:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Installer/InstallHelper/VBoxGuestInstallHelper.cpp.original   Fri Apr 27 01:56:52 2012
    --- E:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Installer/InstallHelper/VBoxGuestInstallHelper.cpp   Thu May 10 20:34:40 2012
    ***************
    *** 21,28 ****
      #include <windows.h>
      #include <atlconv.h>
      #include <stdlib.h>
    - #include <Strsafe.h>
      #include <tchar.h>
      #include "exdll.h"
     
      /* Required structures/defines of VBoxTray. */
    --- 21,28 ----
      #include <windows.h>
      #include <atlconv.h>
      #include <stdlib.h>
      #include <tchar.h>
    + #include <Strsafe.h>
      #include "exdll.h"
     
      /* Required structures/defines of VBoxTray. */

  • Error-5
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling vboxwebsrv - E:/z_Build2/VirtualBox-4.1.14/src/VBox/Main/webservice/vboxweb.cpp
    vboxweb.cpp
    E:\PROGRA~1\MICROS~3\Include\winsock2.h(112) : error C2011: 'fd_set' : 'struct' type redefinition
            E:\PROGRA~1\MICROS~3\Include\winsock.h(54) : see declaration of 'fd_set'
    .
    .
    .
    E:\PROGRA~1\MICROS~3\Include\wspiapi.h(591) : fatal error C1003: error count exceeds 100; stopping compilation
    kmk: *** [E:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/vboxwebsrv/vboxweb.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 -MD -W3 -wd4065 -wd4996 -wd4250 -Zc:wchar_t- -O2 -GS- -Oy- -bigobj -IE:/z_Build2/gsoap-2.8/gsoap -IE:/z_Build2/gsoap-2.8/gsoap/import -IE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/webservice -IE:/z_Build2/VirtualBox-4.1.14/src/VBox/Main/webservice -IE:/PROGRA~1/MICROS~1/VC/atlmfc/include -IE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/bin/sdk/bindings/mscom/include -IE:/z_Build2/openssl/include -IE:/PROGRA~1/MICROS~3/Include -IE:/WINDDK/3790.1830/inc/ddk -IE:/WINDDK/3790.1830/inc/ddk/wnet -IE:/WINDDK/3790.1830/inc/wnet -IE:/WINDDK/3790.1830/inc/ddk/wdm/wnet -IE:/z_Build2/VirtualBox-4.1.14/include -IE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release -IE:/PROGRA~1/MICROS~1/VC/include -IE:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -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 -DSOCKET_CLOSE_ON_EXEC -DWITH_OPENSSL -D_UNICODE -DVBOX_BUILD_TARGET=\"win.x86\" -FdE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/vboxwebsrv/vboxweb-obj.pdb -FD -FoE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/vboxwebsrv/vboxweb.obj E:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Main\\webservice\\vboxweb.cpp

  • Reference-5
    C++ Redefinition Header Files - Stack Overflow
    http://stackoverflow.com/questions/1372 ... ader-files
  • Resolve-5-1
    Code: Select all   Expand viewCollapse view
    pushd E:\z_Build2\VirtualBox-4.1.14\src\VBox\Main\webservice
    move vboxweb.h          vboxweb.h.original
    copy vboxweb.h.original vboxweb.h
    popd

  • Resolve-5-2
    Change
    E:\z_Build2\VirtualBox-4.1.14\src\VBox\Main\webservice\vboxweb.h
    (diff)
    Code: Select all   Expand viewCollapse view
    *** E:/z_Build2/VirtualBox-4.1.14/src/VBox/Main/webservice/vboxweb.h.original   Fri Apr 27 01:59:10 2012
    --- E:/z_Build2/VirtualBox-4.1.14/src/VBox/Main/webservice/vboxweb.h   Thu May 10 20:41:37 2012
    ***************
    *** 18,24 ****
       * debug macro
       *
       ****************************************************************************/
    !
      void WebLog(const char *pszFormat, ...);
     
      #define WEBDEBUG(a) do { if (g_fVerbose) { WebLog a; } } while (0)
    --- 18,24 ----
       * debug macro
       *
       ****************************************************************************/
    ! #define _WINSOCKAPI_
      void WebLog(const char *pszFormat, ...);
     
      #define WEBDEBUG(a) do { if (g_fVerbose) { WebLog a; } } while (0)

  • Error-6
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxNetFlt - E:/z_Build2/VirtualBox-4.1.14/src/VBox/HostDrivers/VBoxNetFlt/win/drv/VBoxNetFltP-win.cpp
    VBoxNetFltP-win.cpp
    E:\WinDDK\6001.18002\inc\ddk\wdm.h(11150) : error C2373: '_InterlockedCompareExchange64' : redefinition; different type modifiers
            E:\PROGRA~1\MICROS~1\VC\include\intrin.h(232) : see declaration of '_InterlockedCompareExchange64'
    .
    .
    .
    kmk: *** [E:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxNetFlt/win/drv/VBoxNetFltP-win.obj] Error 2
    The failing command:
    @ E:/PROGRA~1/MICROS~1/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR- -EHs- -GF -Gz -W3 -GS- -wd4996 -Zc:wchar_t- -O2 -GS- -Oy- -IE:/z_Build2/VirtualBox-4.1.14/src/VBox/HostDrivers/VBoxNetFlt -IE:/WinDDK/6001.18002/inc/api -IE:/WinDDK/6001.18002/inc/ddk -IE:/PROGRA~1/MICROS~3/Include -IE:/z_Build2/VirtualBox-4.1.14/include -IE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release -IE:/PROGRA~1/MICROS~1/VC/include -IE:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -DWIN32=100 -D_WIN32_WINNT=0x0600 -DWINVER=0x0600 -D_WIN32_IE=0x0700 -DNTDDI_VERSION=0x06000000 -DKMDF_MAJOR_VERSION=01 -DKMDF_MINOR_VERSION=005 -D_X86_=1 -Di386=1 -DSTD_CALL -DIN_RING0 -DIN_RT_R0 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DIN_RT_R0 -DIN_SUP_STATIC -DWIN9X_COMPAT_SPINLOCK=1 -DVBOXNETFLT_STATIC_CONFIG -DVBOXNETFLT_NO_PACKET_QUEUE -DNDIS_MINIPORT_DRIVER -DNDIS_WDM=1 -DBINARY_COMPATIBLE=0 -DNDIS50_MINIPORT=1 -DNDIS50=1 -D_X86_ -FdE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxNetFlt/win/drv/VBoxNetFltP-win-obj.pdb -FD -FoE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxNetFlt/win/drv/VBoxNetFltP-win.obj E:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\HostDrivers\\VBoxNetFlt\\win\\drv\\VBoxNetFltP-win.cpp

  • Resolve-6-1
    Code: Select all   Expand viewCollapse view
    pushd E:\z_Build2\VirtualBox-4.1.14\src\VBox\HostDrivers\VBoxNetFlt\win\drv
    move VBoxNetFltCmn-win.h          VBoxNetFltCmn-win.h.original
    copy VBoxNetFltCmn-win.h.original VBoxNetFltCmn-win.h
    popd

  • Resolve-6-2
    Change
    E:\z_Build2\VirtualBox-4.1.14\src\VBox\HostDrivers\VBoxNetFlt\win\drv\VBoxNetFltCmn-win.h
    (diff)
    Code: Select all   Expand viewCollapse view
    *** E:/z_Build2/VirtualBox-4.1.14/src/VBox/HostDrivers/VBoxNetFlt/win/drv/VBoxNetFltCmn-win.h.original   Fri Apr 27 01:58:57 2012
    --- E:/z_Build2/VirtualBox-4.1.14/src/VBox/HostDrivers/VBoxNetFlt/win/drv/VBoxNetFltCmn-win.h   Thu May 10 23:25:41 2012
    ***************
    *** 62,67 ****
    --- 62,68 ----
      #  define _InterlockedExchange           _InterlockedExchange_StupidDDKVsCompilerCrap
      #  define _InterlockedExchangeAdd        _InterlockedExchangeAdd_StupidDDKVsCompilerCrap
      #  define _InterlockedCompareExchange    _InterlockedCompareExchange_StupidDDKVsCompilerCrap
    + #  define _InterlockedCompareExchange64  _InterlockedCompareExchange64_StupidDDKVsCompilerCrap
      #  define _InterlockedAddLargeStatistic  _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap
      #  define _interlockedbittestandset      _interlockedbittestandset_StupidDDKVsCompilerCrap
      #  define _interlockedbittestandreset    _interlockedbittestandreset_StupidDDKVsCompilerCrap
    ***************
    *** 80,85 ****
    --- 81,87 ----
      #  undef  _InterlockedExchange
      #  undef  _InterlockedExchangeAdd
      #  undef  _InterlockedCompareExchange
    + #  undef  _InterlockedCompareExchange64
      #  undef  _InterlockedAddLargeStatistic
      #  undef  _interlockedbittestandset
      #  undef  _interlockedbittestandreset

  • Error-7
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxGuest - E:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win.cpp
    VBoxGuest-win.cpp
    E:\PROGRA~1\MICROS~1\VC\include\intrin.h(198) : error C2373: '_InterlockedExchange' : redefinition; different type modifiers
            E:\WINDDK\3790.1830\inc\ddk\wnet\ntddk.h(8673) : see declaration of '_InterlockedExchange'
    E:\PROGRA~1\MICROS~1\VC\include\intrin.h(208) : error C2373: '_InterlockedExchangeAdd' : redefinition; different type modifiers
            E:\WINDDK\3790.1830\inc\ddk\wnet\ntddk.h(8726) : see declaration of '_InterlockedExchangeAdd'
    E:\PROGRA~1\MICROS~1\VC\include\intrin.h(216) : error C2373: '_InterlockedCompareExchange' : redefinition; different type modifiers
            E:\WINDDK\3790.1830\inc\ddk\wnet\ntddk.h(8755) : see declaration of '_InterlockedCompareExchange'
    E:\PROGRA~1\MICROS~1\VC\include\intrin.h(278) : error C2733: second C linkage of overloaded function '_InterlockedAddLargeStatistic' not allowed
            E:\PROGRA~1\MICROS~1\VC\include\intrin.h(278) : see declaration of '_InterlockedAddLargeStatistic'
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(384) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG)' to 'uint32_t'
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(384) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG)' to 'uint32_t'
            There is no context in which this conversion is possible
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(384) : error C3861: '_InterlockedExchange': identifier not found
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(763) : error C2446: '==' : no conversion from 'uint32_t' to 'LONG (__cdecl *)(volatile LONG *,LONG,LONG)'
            Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(763) : error C2040: '==' : 'LONG (__cdecl *)(volatile LONG *,LONG,LONG)' differs in levels of indirection from 'uint32_t'
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(763) : error C3861: '_InterlockedCompareExchange': identifier not found
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(1053) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG,LONG)' to 'uint32_t'
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(1053) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG,LONG)' to 'uint32_t'
            There is no context in which this conversion is possible
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(1053) : error C3861: '_InterlockedCompareExchange': identifier not found
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(2466) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG)' to 'uint32_t'
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(2466) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG)' to 'uint32_t'
            There is no context in which this conversion is possible
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(2466) : error C3861: '_InterlockedExchangeAdd': identifier not found
    kmk: *** [E:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxGuest/VBoxGuest-win.obj] Error 2
    The failing command:
    @ E:/PROGRA~1/MICROS~1/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR- -EHs- -GF -Gz -W3 -GS- -wd4996 -Zc:wchar_t- -O2 -GS- -Oy- -IE:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/common/VBoxGuest -IE:/PROGRA~1/MICROS~3/Include -IE:/WINDDK/3790.1830/inc/ddk -IE:/WINDDK/3790.1830/inc/ddk/wnet -IE:/WINDDK/3790.1830/inc/wnet -IE:/WINDDK/3790.1830/inc/ddk/wdm/wnet -IE:/z_Build2/VirtualBox-4.1.14/include -IE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release -IE:/PROGRA~1/MICROS~1/VC/include -IE:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -D_X86_ -DIN_RING0 -DIN_RT_R0 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DIN_GUEST -DIN_GUEST_R0 -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DVBOX_REBOOT_ON_UNINSTALL -D_X86_ -FdE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxGuest/VBoxGuest-win-obj.pdb -FD -FoE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxGuest/VBoxGuest-win.obj E:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Additions\\common\\VBoxGuest\\VBoxGuest-win.cpp

  • Resolve-7-1
    Code: Select all   Expand viewCollapse view
    pushd E:\z_Build2\VirtualBox-4.1.14\src\VBox\Additions\common\VBoxGuest
    move VBoxGuest-win.cpp          VBoxGuest-win.cpp.original
    copy VBoxGuest-win.cpp.original VBoxGuest-win.cpp
    popd

  • Resolve-7-2
    Change
    E:\z_Build2\VirtualBox-4.1.14\src\VBox\Additions\common\VBoxGuest\VBoxGuest-win.cpp
    (diff)
    Code: Select all   Expand viewCollapse view
    *** E:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win.cpp.original   Fri Apr 27 01:56:54 2012
    --- E:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win.cpp   Thu May 10 23:39:05 2012
    ***************
    *** 17,23 ****
    --- 17,31 ----
      *   Header Files                                                               *
      *******************************************************************************/
      #define LOG_GROUP LOG_GROUP_SUP_DRV
    + #       define _InterlockedExchange             _InterlockedExchange_StupidDDKVsCompilerCrap
    + #       define _InterlockedExchangeAdd          _InterlockedExchangeAdd_StupidDDKVsCompilerCrap
    + #       define _InterlockedCompareExchange      _InterlockedCompareExchange_StupidDDKVsCompilerCrap
    + #       define _InterlockedAddLargeStatistic    _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap
      #include "VBoxGuest-win.h"
    + #       undef  _InterlockedExchange
    + #       undef  _InterlockedExchangeAdd
    + #       undef  _InterlockedCompareExchange
    + #       undef  _InterlockedAddLargeStatistic
      #include "VBoxGuestInternal.h"
     
      #include <iprt/asm.h>

  • Error-8
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxVideoWddm - E:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp
    VBoxMPWddm.cpp
    E:\PROGRA~1\MICROS~1\VC\include\intrin.h(232) : error C2373: '_InterlockedCompareExchange64' : redefinition; different type modifiers
            E:\WinDDK\6001.18002\inc\ddk\wdm.h(11146) : see declaration of '_InterlockedCompareExchange64'
    .
    .
    .
    kmk: *** [E:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxVideoWddm/wddm/VBoxMPWddm.obj] Error 2
    The failing command:
    @ E:/PROGRA~1/MICROS~1/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR- -EHs- -GF -Gz -W3 -GS- -wd4996 -Zc:wchar_t- -O2 -GS- -Oy- -IE:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/include -IE:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video -IE:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video/mp -IE:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/common/VBoxGuestLib -IE:/WinDDK/6001.18002/inc/api -IE:/WinDDK/6001.18002/inc/ddk -IE:/PROGRA~1/MICROS~3/Include -IE:/WINDDK/3790.1830/inc/ddk -IE:/WINDDK/3790.1830/inc/ddk/wnet -IE:/WINDDK/3790.1830/inc/wnet -IE:/WINDDK/3790.1830/inc/ddk/wdm/wnet -IE:/z_Build2/VirtualBox-4.1.14/include -IE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release -IE:/PROGRA~1/MICROS~1/VC/include -IE:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -DWIN32=100 -D_WIN32_WINNT=0x0600 -DWINVER=0x0600 -D_WIN32_IE=0x0700 -DNTDDI_VERSION=0x06000000 -DKMDF_MAJOR_VERSION=01 -DKMDF_MINOR_VERSION=005 -D_X86_=1 -Di386=1 -DSTD_CALL -D_X86_ -DIN_RING0 -DIN_RT_R0 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DIN_GUEST -DIN_GUEST_R0 -DVBOX_WITH_8BPP_MODES -DVBOX_WDDM_MINIPORT -DVBOX_WITH_WDDM -DVBOX_WITH_HGCM -DVBOX_WITH_VIDEOHWACCEL -DVBOXWDDM_WITH_VBVA -DVBOXWDDM_RENDER_FROM_SHADOW -DVBOX_WITH_VDMA -DVBOX_WITH_CRHGSMI -DLOG_TO_BACKDOOR -D_X86_ -FdE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxVideoWddm/wddm/VBoxMPWddm-obj.pdb -FD -FoE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxVideoWddm/wddm/VBoxMPWddm.obj E:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Additions\\WINNT\\Graphics\\Video\\mp\\wddm\\VBoxMPWddm.cpp

  • Resolve-8-1
    Code: Select all   Expand viewCollapse view
    pushd E:\z_Build2\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Graphics\Video\mp\wddm
    move VBoxMPWddm.h          VBoxMPWddm.h.original
    copy VBoxMPWddm.h.original VBoxMPWddm.h
    popd

  • Resolve-8-2
    Change
    E:\z_Build2\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Graphics\Video\mp\wddm\VBoxMPWddm.h
    (diff)
    Code: Select all   Expand viewCollapse view
    *** E:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.h.original   Fri Apr 27 01:56:30 2012
    --- E:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.h   Thu May 10 23:44:39 2012
    ***************
    *** 24,30 ****
    --- 24,32 ----
      # endif
      # define RT_NO_STRICT
      #endif
    + #       define _InterlockedCompareExchange64    _InterlockedCompareExchange64_StupidDDKVsCompilerCrap
      #include "common/VBoxMPUtils.h"
    + #       undef  _InterlockedCompareExchange64
      #include "common/VBoxMPDevExt.h"
      #include "../../common/VBoxVideoTools.h"


  • Error-9
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxVideoWddm - E:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPRegistry.cpp
    VBoxMPRegistry.cpp
    E:\PROGRA~1\MICROS~1\VC\include\intrin.h(232) : error C2373: '_InterlockedCompareExchange64' : redefinition; different type modifiers
            E:\WinDDK\6001.18002\inc\ddk\wdm.h(11146) : see declaration of '_InterlockedCompareExchange64'
    .
    .
    .
    kmk: *** [E:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxVideoWddm/wddm/VBoxMPRegistry.obj] Error 2
    The failing command:
    @ E:/PROGRA~1/MICROS~1/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR- -EHs- -GF -Gz -W3 -GS- -wd4996 -Zc:wchar_t- -O2 -GS- -Oy- -IE:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/include -IE:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video -IE:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video/mp -IE:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/common/VBoxGuestLib -IE:/WinDDK/6001.18002/inc/api -IE:/WinDDK/6001.18002/inc/ddk -IE:/PROGRA~1/MICROS~3/Include -IE:/WINDDK/3790.1830/inc/ddk -IE:/WINDDK/3790.1830/inc/ddk/wnet -IE:/WINDDK/3790.1830/inc/wnet -IE:/WINDDK/3790.1830/inc/ddk/wdm/wnet -IE:/z_Build2/VirtualBox-4.1.14/include -IE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release -IE:/PROGRA~1/MICROS~1/VC/include -IE:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -DWIN32=100 -D_WIN32_WINNT=0x0600 -DWINVER=0x0600 -D_WIN32_IE=0x0700 -DNTDDI_VERSION=0x06000000 -DKMDF_MAJOR_VERSION=01 -DKMDF_MINOR_VERSION=005 -D_X86_=1 -Di386=1 -DSTD_CALL -D_X86_ -DIN_RING0 -DIN_RT_R0 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DIN_GUEST -DIN_GUEST_R0 -DVBOX_WITH_8BPP_MODES -DVBOX_WDDM_MINIPORT -DVBOX_WITH_WDDM -DVBOX_WITH_HGCM -DVBOX_WITH_VIDEOHWACCEL -DVBOXWDDM_WITH_VBVA -DVBOXWDDM_RENDER_FROM_SHADOW -DVBOX_WITH_VDMA -DVBOX_WITH_CRHGSMI -DLOG_TO_BACKDOOR -D_X86_ -FdE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxVideoWddm/wddm/VBoxMPRegistry-obj.pdb -FD -FoE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxVideoWddm/wddm/VBoxMPRegistry.obj E:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Additions\\WINNT\\Graphics\\Video\\mp\\wddm\\VBoxMPRegistry.cpp

  • Resolve-9-1
    Code: Select all   Expand viewCollapse view
    pushd E:\z_Build2\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Graphics\Video\mp\common
    move VBoxMPDevExt.h          VBoxMPDevExt.h.original
    copy VBoxMPDevExt.h.original VBoxMPDevExt.h
    popd

  • Resolve-9-2
    Change
    E:\z_Build2\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Graphics\Video\mp\common\VBoxMPDevExt.h
    (diff)
    Code: Select all   Expand viewCollapse view
    *** E:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video/mp/common/VBoxMPDevExt.h.original   Fri Apr 27 01:56:29 2012
    --- E:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video/mp/common/VBoxMPDevExt.h   Fri May 11 04:13:41 2012
    ***************
    *** 19,25 ****
    --- 19,27 ----
      #ifndef VBOXMPDEVEXT_H
      #define VBOXMPDEVEXT_H
     
    + #       define _InterlockedCompareExchange64    _InterlockedCompareExchange64_StupidDDKVsCompilerCrap
      #include "VBoxMPUtils.h"
    + #       undef  _InterlockedCompareExchange64
      #include <VBox/VBoxVideoGuest.h>
     
      #ifdef VBOX_XPDM_MINIPORT

  • Error-10
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxVideoWddm - E:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp
    HGSMIBase.cpp
    E:\WinDDK\6001.18002\inc\ddk\wdm.h(11150) : error C2373: '_InterlockedCompareExchange64' : redefinition; different type modifiers
            E:\PROGRA~1\MICROS~1\VC\include\intrin.h(232) : see declaration of '_InterlockedCompareExchange64'
    .
    .
    .
    kmk: *** [E:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxVideoWddm/src/VBox/Additions/common/VBoxVideo/HGSMIBase.obj] Error 2
    The failing command:
    @ E:/PROGRA~1/MICROS~1/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR- -EHs- -GF -Gz -W3 -GS- -wd4996 -Zc:wchar_t- -O2 -GS- -Oy- -IE:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/include -IE:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video -IE:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video/mp -IE:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/common/VBoxGuestLib -IE:/WinDDK/6001.18002/inc/api -IE:/WinDDK/6001.18002/inc/ddk -IE:/PROGRA~1/MICROS~3/Include -IE:/WINDDK/3790.1830/inc/ddk -IE:/WINDDK/3790.1830/inc/ddk/wnet -IE:/WINDDK/3790.1830/inc/wnet -IE:/WINDDK/3790.1830/inc/ddk/wdm/wnet -IE:/z_Build2/VirtualBox-4.1.14/include -IE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release -IE:/PROGRA~1/MICROS~1/VC/include -IE:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -DWIN32=100 -D_WIN32_WINNT=0x0600 -DWINVER=0x0600 -D_WIN32_IE=0x0700 -DNTDDI_VERSION=0x06000000 -DKMDF_MAJOR_VERSION=01 -DKMDF_MINOR_VERSION=005 -D_X86_=1 -Di386=1 -DSTD_CALL -D_X86_ -DIN_RING0 -DIN_RT_R0 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DIN_GUEST -DIN_GUEST_R0 -DVBOX_WITH_8BPP_MODES -DVBOX_WDDM_MINIPORT -DVBOX_WITH_WDDM -DVBOX_WITH_HGCM -DVBOX_WITH_VIDEOHWACCEL -DVBOXWDDM_WITH_VBVA -DVBOXWDDM_RENDER_FROM_SHADOW -DVBOX_WITH_VDMA -DVBOX_WITH_CRHGSMI -DLOG_TO_BACKDOOR -D_X86_ -FdE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxVideoWddm/src/VBox/Additions/common/VBoxVideo/HGSMIBase-obj.pdb -FD -FoE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxVideoWddm/src/VBox/Additions/common/VBoxVideo/HGSMIBase.obj E:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Additions\\common\\VBoxVideo\\HGSMIBase.cpp

  • Resolve-10-1
    Code: Select all   Expand viewCollapse view
    pushd E:\z_Build2\VirtualBox-4.1.14\include\VBox
    move VBoxVideoGuest.h          VBoxVideoGuest.h.original
    copy VBoxVideoGuest.h.original VBoxVideoGuest.h
    popd

  • Resolve-10-2
    Change
    E:\z_Build2\VirtualBox-4.1.14\include\VBox\VBoxVideoGuest.h
    (diff)
    Code: Select all   Expand viewCollapse view
    *** E:/z_Build2/VirtualBox-4.1.14/include/VBox/VBoxVideoGuest.h.original   Fri Apr 27 01:56:23 2012
    --- E:/z_Build2/VirtualBox-4.1.14/include/VBox/VBoxVideoGuest.h   Fri May 11 04:25:57 2012
    ***************
    *** 43,49 ****
    --- 43,51 ----
      #endif
     
      #ifdef VBOX_WDDM_MINIPORT
    + #       define _InterlockedCompareExchange64    _InterlockedCompareExchange64_StupidDDKVsCompilerCrap
      # include "wddm/VBoxMPShgsmi.h"
    + #       undef  _InterlockedCompareExchange64
       typedef VBOXSHGSMI HGSMIGUESTCMDHEAP;
      # define HGSMIGUESTCMDHEAP_GET(_p) (&(_p)->Heap)
      #else

  • Error-11
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxMouseNT - E:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Mouse/NT4/VBoxPS2NT.cpp
    VBoxPS2NT.cpp
    E:\WINDDK\3790.1830\inc\ddk\wnet\ntddk.h(8676) : error C2373: '_InterlockedExchange' : redefinition; different type modifiers
            E:\PROGRA~1\MICROS~1\VC\include\intrin.h(198) : see declaration of '_InterlockedExchange'
    E:\WINDDK\3790.1830\inc\ddk\wnet\ntddk.h(8729) : error C2373: '_InterlockedExchangeAdd' : redefinition; different type modifiers
            E:\PROGRA~1\MICROS~1\VC\include\intrin.h(208) : see declaration of '_InterlockedExchangeAdd'
    E:\WINDDK\3790.1830\inc\ddk\wnet\ntddk.h(8759) : error C2373: '_InterlockedCompareExchange' : redefinition; different type modifiers
            E:\PROGRA~1\MICROS~1\VC\include\intrin.h(216) : see declaration of '_InterlockedCompareExchange'
    E:\WINDDK\3790.1830\inc\ddk\wnet\ntddk.h(14835) : error C2733: second C linkage of overloaded function '_InterlockedAddLargeStatistic' not allowed
            E:\WINDDK\3790.1830\inc\ddk\wnet\ntddk.h(14832) : see declaration of '_InterlockedAddLargeStatistic'
    E:\z_Build2\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Mouse\NT4\VBoxPS2NT.cpp(1103) : error C3861: '_InterlockedExchange': identifier not found
    kmk: *** [E:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxMouseNT/VBoxPS2NT.obj] Error 2
    The failing command:
    @ E:/PROGRA~1/MICROS~1/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR- -EHs- -GF -Gz -W3 -GS- -wd4996 -Zc:wchar_t- -O2 -GS- -Oy- -IE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxMouseNT -IE:/PROGRA~1/MICROS~3/Include -IE:/WINDDK/3790.1830/inc/ddk -IE:/WINDDK/3790.1830/inc/ddk/wnet -IE:/WINDDK/3790.1830/inc/wnet -IE:/WINDDK/3790.1830/inc/ddk/wdm/wnet -IE:/z_Build2/VirtualBox-4.1.14/include -IE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release -IE:/PROGRA~1/MICROS~1/VC/include -IE:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -D_X86_ -DIN_RING0 -DIN_RT_R0 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DIN_GUEST -DIN_GUEST_R0 -DLOG_TO_BACKDOOR -D_X86_ -FdE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxMouseNT/VBoxPS2NT-obj.pdb -FD -FoE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxMouseNT/VBoxPS2NT.obj E:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Additions\\WINNT\\Mouse\\NT4\\VBoxPS2NT.cpp

  • Resolve-11-1
    Code: Select all   Expand viewCollapse view
    pushd E:\z_Build2\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Mouse\NT4
    move VBoxPS2NT.cpp          VBoxPS2NT.cpp.original
    copy VBoxPS2NT.cpp.original VBoxPS2NT.cpp
    popd

  • Resolve-11-2
    Change
    E:\z_Build2\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Mouse\NT4\VBoxPS2NT.cpp
    (diff)
    Code: Select all   Expand viewCollapse view
    *** E:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Mouse/NT4/VBoxPS2NT.cpp.original   Fri Apr 27 01:56:52 2012
    --- E:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Mouse/NT4/VBoxPS2NT.cpp   Fri May 11 04:32:44 2012
    ***************
    *** 16,22 ****
    --- 16,30 ----
       */
     
      #define LOG_GROUP LOG_GROUP_DRV_MOUSE
    + #       define _InterlockedExchange    _InterlockedExchange_StupidDDKVsCompilerCrap
    + #       define _InterlockedExchangeAdd    _InterlockedExchangeAdd_StupidDDKVsCompilerCrap
    + #       define _InterlockedCompareExchange    _InterlockedCompareExchange_StupidDDKVsCompilerCrap
    + #       define _InterlockedAddLargeStatistic    _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap
      #include <iprt/asm.h>
    + #       undef  _InterlockedExchange
    + #       undef  _InterlockedExchangeAdd
    + #       undef  _InterlockedCompareExchange
    + #       undef  _InterlockedAddLargeStatistic
      #include <VBox/err.h>
      #include <VBox/log.h>
      #include <VBox/VBoxGuestLib.h>

  • Error-12
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxMouse - E:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Mouse/NT5/VBoxMFInternal.cpp
    cl : Command line warning D9025 : overriding '/O2' with '/Od'
    VBoxMFInternal.cpp
    E:\PROGRA~1\MICROS~1\VC\include\intrin.h(198) : error C2373: '_InterlockedExchange' : redefinition; different type modifiers
            E:\WINDDK\3790.1830\inc\ddk\wnet\ntddk.h(8673) : see declaration of '_InterlockedExchange'
    E:\PROGRA~1\MICROS~1\VC\include\intrin.h(208) : error C2373: '_InterlockedExchangeAdd' : redefinition; different type modifiers
            E:\WINDDK\3790.1830\inc\ddk\wnet\ntddk.h(8726) : see declaration of '_InterlockedExchangeAdd'
    E:\PROGRA~1\MICROS~1\VC\include\intrin.h(216) : error C2373: '_InterlockedCompareExchange' : redefinition; different type modifiers
            E:\WINDDK\3790.1830\inc\ddk\wnet\ntddk.h(8755) : see declaration of '_InterlockedCompareExchange'
    E:\PROGRA~1\MICROS~1\VC\include\intrin.h(278) : error C2733: second C linkage of overloaded function '_InterlockedAddLargeStatistic' not allowed
            E:\PROGRA~1\MICROS~1\VC\include\intrin.h(278) : see declaration of '_InterlockedAddLargeStatistic'
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(384) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG)' to 'uint32_t'
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(384) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG)' to 'uint32_t'
            There is no context in which this conversion is possible
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(384) : error C3861: '_InterlockedExchange': identifier not found
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(763) : error C2446: '==' : no conversion from 'uint32_t' to 'LONG (__cdecl *)(volatile LONG *,LONG,LONG)'
            Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(763) : error C2040: '==' : 'LONG (__cdecl *)(volatile LONG *,LONG,LONG)' differs in levels of indirection from 'uint32_t'
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(763) : error C3861: '_InterlockedCompareExchange': identifier not found
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(1053) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG,LONG)' to 'uint32_t'
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(1053) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG,LONG)' to 'uint32_t'
            There is no context in which this conversion is possible
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(1053) : error C3861: '_InterlockedCompareExchange': identifier not found
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(2466) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG)' to 'uint32_t'
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(2466) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG)' to 'uint32_t'
            There is no context in which this conversion is possible
    E:\z_Build2\VirtualBox-4.1.14\include\iprt/asm.h(2466) : error C3861: '_InterlockedExchangeAdd': identifier not found
    E:\z_Build2\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Mouse\NT5\VBoxMFInternal.cpp(306) : error C3861: '_InterlockedCompareExchange': identifier not found
    .
    .
    .
    kmk: *** [E:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxMouse/VBoxMFInternal.obj] Error 2
    The failing command:
    @ E:/PROGRA~1/MICROS~1/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR- -EHs- -GF -Gz -W3 -GS- -wd4996 -Zc:wchar_t- -O2 -GS- -Oy- -Od -IE:/PROGRA~1/MICROS~3/Include -IE:/WINDDK/3790.1830/inc/ddk -IE:/WINDDK/3790.1830/inc/ddk/wnet -IE:/WINDDK/3790.1830/inc/wnet -IE:/WINDDK/3790.1830/inc/ddk/wdm/wnet -IE:/z_Build2/VirtualBox-4.1.14/include -IE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release -IE:/PROGRA~1/MICROS~1/VC/include -IE:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -D_X86_ -DIN_RING0 -DIN_RT_R0 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DIN_GUEST -DIN_GUEST_R0 -DLOG_TO_BACKDOOR -D_X86_ -FdE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxMouse/VBoxMFInternal-obj.pdb -FD -FoE:/z_Build2/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxMouse/VBoxMFInternal.obj E:\\z_Build2\\VirtualBox-4.1.14\\src\\VBox\\Additions\\WINNT\\Mouse\\NT5\\VBoxMFInternal.cpp

  • Resolve-12-1
    Code: Select all   Expand viewCollapse view
    pushd E:\z_Build2\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Mouse\NT5
    move VBoxMFInternal.cpp          VBoxMFInternal.cpp.original
    copy VBoxMFInternal.cpp.original VBoxMFInternal.cpp
    popd

  • Resolve-12-2
    Change
    E:\z_Build2\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Mouse\NT5\VBoxMFInternal.cpp
    (diff)
    Code: Select all   Expand viewCollapse view
    *** E:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Mouse/NT5/VBoxMFInternal.cpp.original   Fri Apr 27 01:56:52 2012
    --- E:/z_Build2/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Mouse/NT5/VBoxMFInternal.cpp   Fri May 11 04:37:52 2012
    ***************
    *** 16,25 ****
    --- 16,33 ----
       * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
       */
     
    + #       define _InterlockedExchange    _InterlockedExchange_StupidDDKVsCompilerCrap
    + #       define _InterlockedExchangeAdd    _InterlockedExchangeAdd_StupidDDKVsCompilerCrap
    + #       define _InterlockedCompareExchange    _InterlockedCompareExchange_StupidDDKVsCompilerCrap
    + #       define _InterlockedAddLargeStatistic    _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap
      #include "VBoxMF.h"
      #include <VBox/VBoxGuestLib.h>
      #include <VBox/VBoxGuest.h>
      #include <iprt/assert.h>
    + #       undef  _InterlockedExchange
    + #       undef  _InterlockedExchangeAdd
    + #       undef  _InterlockedCompareExchange
    + #       undef  _InterlockedAddLargeStatistic
      #include <iprt/asm.h>
     
      typedef struct VBOXGDC


After build
  • Prepare for install
    Code: Select all   Expand viewCollapse view
    pushd E:\z_Build2\VirtualBox-4.1.14\out\win.x86\release\bin

    copy E:\z_Build2\qt-everywhere-opensource-src-4.8.1\lib\QtCore4.dll .
    copy E:\z_Build2\qt-everywhere-opensource-src-4.8.1\lib\QtGui4.dll .
    copy E:\z_Build2\qt-everywhere-opensource-src-4.8.1\lib\QtNetwork4.dll .
    copy E:\z_Build2\qt-everywhere-opensource-src-4.8.1\lib\QtOpenGL4.dll .

    copy E:\z_Build2\openssl\bin\libeay32.dll .
    copy E:\z_Build2\openssl\bin\ssleay32.dll .

    copy E:\z_Build2\libcurl\libcurl.dll .

    popd

  • Install
    Code: Select all   Expand viewCollapse view
    pushd E:\z_Build2\VirtualBox-4.1.14\out\win.x86\release\bin

    comregister.cmd

    NetAdpUninstall.exe
    NetFltUninstall.exe
    SUPUninstall.exe
    USBUninstall.exe

    NetAdpInstall.exe
    NetFltInstall.exe
    SUPInstall.exe
    USBInstall.exe

    rundll32 setupapi,InstallHinfSection DefaultInstall 132 E:\z_Build2\VirtualBox-4.1.14\out\win.x86\release\bin\VBoxDrv.inf

    popd

  • Install (for Windows Vista)
    My VirtualBox directory is "C:\yk_prog\VirtualBox_OSE".

    Open Command Prompt(Run as administrator)
    Code: Select all   Expand viewCollapse view
    cd C:\yk_prog\VirtualBox_OSE

    comregister.cmd

    NetAdpUninstall.exe
    NetFltUninstall.exe
    SUPUninstall.exe
    USBUninstall.exe

    NetAdpInstall.exe
    NetFltInstall.exe
    SUPInstall.exe
    USBInstall.exe

    InfDefaultInstall.exe C:\yk_prog\VirtualBox_OSE\VBoxDrv.inf

    REM Dummy
    VBoxSDL.exe

  • Install Log (for Windows Vista)
    Code: Select all   Expand viewCollapse view
    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>NetAdpUninstall.exe
    uninstalling all Host-Only interfaces..
    uninstalled successfully

    C:\yk_prog\VirtualBox_OSE>NetFltUninstall.exe
    NetFlt is installed currently, uninstalling ...
    uninstalled successfully

    C:\yk_prog\VirtualBox_OSE>SUPUninstall.exe
    uninstalled successfully

    C:\yk_prog\VirtualBox_OSE>USBUninstall.exe
    USB uninstallation
    USB uninstallation succeeded!

    C:\yk_prog\VirtualBox_OSE>
    C:\yk_prog\VirtualBox_OSE>NetAdpInstall.exe
    adding host-only interface..
    VBoxNetCfgWinEnableStaticIpConfig: ip=0x16ca8c0 mask=0xffffffnetIfWinFindAdapterClassById: IEnumWbemClassObject::Next -> hr=0x1 pclsObj=0012FF78 uReturn=0 42=42
    netIfWinFindAdapterClassById: 0x80004005 and 00000000
    VBoxNetCfgWinEnableStaticIpConfig: returns 0x80004005VBoxNetCfgWinEnableStaticIpConfig failed: hr = 0x80004005

    C:\yk_prog\VirtualBox_OSE>NetFltInstall.exe
    NetFlt is not installed currently
    NetFlt will be installed ...
    Installing 2 INF files ...
    Installing INF file "C:\yk_prog\VirtualBox_OSE\VBoxNetFlt.inf" ...
    Installing INF file "C:\yk_prog\VirtualBox_OSE\VBoxNetFltM.inf" ...
    installed successfully

    C:\yk_prog\VirtualBox_OSE>SUPInstall.exe
    installed successfully

    C:\yk_prog\VirtualBox_OSE>USBInstall.exe
    USB installation
    Creating USB monitor driver service with path C:\yk_prog\VirtualBox_OSE\VBoxUSBMon.sys ...
    Installation successful.

    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
    Oracle VM VirtualBox SDL GUI version 4.1.14_OSE
    (C) 2005-2012 Oracle Corporation
    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
      --vrdp <ports>           Listen for VRDP connections on one of specified ports (default if not specified)
      --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

    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>
Last edited by yk700101 on 13. May 2012, 05:56, edited 3 times in total.
yk700101
 
Posts: 43
Joined: 7. Feb 2009, 00:17
Location: Japan
Primary OS: MS Windows Vista
VBox Version: OSE self-compiled
Guest OSses: Debian

Building VirtualBox OSE 4.1.14 on Windows(VS2005 Express Ed)

Postby yk700101 » 13. May 2012, 01:56

The build maybe succeeded.

This is for reference.

(I used libraries built by VS2005 before. I think the Express Edition would build these libraries without problem.)

Prerequisites
Code: Select all   Expand viewCollapse view
Windows Server 2003 Standard Edition SP2

Visual C++ 2005 Express Edition

Windows Platform SDK (Microsoft Windows SDK)
  Windows Server 2003 R2 Platform SDK
  Windows Vista Update & .NET 3.0 SDK

Windows Driver Development Kit (Windows Driver Kit)
  Windows Server 2003 SP1 DDK
  WDK for Windows Server 2008
 
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
    mingw-runtime-3.8.tar.gz

  MinGW API for MS-Windows
    w32api-3.5.tar.gz

  GNU Binutils
    binutils-2.13.90-20021006-2.tar.gz

SDL
  SDL-devel-1.2.15-VC.zip

QT
  qt-everywhere-opensource-src-4.8.1.zip

OpenSSL
  openssl-0.9.8w.tar.gz

cURL
  curl-7.25.0.tar.lzma

python
  python-2.7.3.msi

gSOAP
  gsoap_2.8.8.zip


Prerequisites(for building libraries)
Code: Select all   Expand viewCollapse view
Perl
  ActivePerl-5.14.2.1402-MSWin32-x86-295342.msi

NASM
  nasm-2.10-installer.exe


Directory tree
Code: Select all   Expand viewCollapse view
  C:\Perl
  C:\Program Files\Microsoft DirectX SDK (November 2008)
  C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2
  C:\Program Files\Microsoft SDKs\Windows\v6.0
  C:\Program Files\Microsoft Visual Studio 8\VC
  C:\Program Files\nasm
  C:\Python27
  C:\WINDDK\3790.1830
  C:\WinDDK\6001.18002

  C:\z_Build
  ├ curl-7.25.0
  ├ gsoap-2.8
  ├ mingw
  ├ openssl-0.9.8w
  ├ qt-everywhere-opensource-src-4.8.1
  ├ SDL-1.2.15
  └ VirtualBox-4.1.14


Command Prompt for build
Code: Select all   Expand viewCollapse view
Start -> Programs -> Visual C++ 2005 Express Edition -> Visual Studio Tools -> Visual Studio 2005 Command Prompt


Building Qt4
  • Command
    Code: Select all   Expand viewCollapse view
    "C:\Program Files\Microsoft DirectX SDK (November 2007)\Utilities\Bin\dx_setenv.cmd"

    set PATH=%PATH%;C:\z_Build\qt-everywhere-opensource-src-4.8.1\bin;C:\Perl\bin;

    cd C:\z_Build\qt-everywhere-opensource-src-4.8.1

    configure ^
      -release -opensource -shared -no-ltcg -no-fast ^
      -exceptions -accessibility -stl -no-sql-sqlite ^
      -no-qt3support -no-openvg -graphicssystem raster ^
      -qt-zlib -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 -no-declarative-debug ^
      -no-directwrite ^
      -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 -no-mp


    Code: Select all   Expand viewCollapse view
    nmake > C:\z_Build\qt-everywhere-opensource-src-4.8.1.build.log 2>&1

Building OpenSSL
  • Command
    Code: Select all   Expand viewCollapse view
    set PATH=%PATH%;C:\Perl\bin;C:\Program Files\nasm

    cd C:\z_Build\openssl-0.9.8w

    perl Configure VC-WIN32 --prefix=C:/z_Build/openssl ^
      > C:\z_Build\openssl-0.9.8w.configure.log 2>&1

    ms\do_nasm ^
      > C:\z_Build\openssl-0.9.8w.assembly_language.log 2>&1


    Code: Select all   Expand viewCollapse view
    nmake -f ms\ntdll.mak ^
      > C:\z_Build\openssl-0.9.8w.build.log 2>&1

    nmake -f ms\ntdll.mak test ^
      > C:\z_Build\openssl-0.9.8w.test.log 2>&1

    nmake -f ms\ntdll.mak install ^
      > C:\z_Build\openssl-0.9.8w.install.log 2>&1


Building cURL
  • Command
    Code: Select all   Expand viewCollapse view
    cd C:\z_Build\curl-7.25.0

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


    Code: Select all   Expand viewCollapse view
    xcopy /E /I ^
      C:\z_Build\curl-7.25.0\include ^
      C:\z_Build\libcurl\include

    pushd C:\z_Build\curl-7.25.0\lib\release-dll
    copy libcurl.dll     C:\z_Build\libcurl
    copy libcurl_imp.lib C:\z_Build\libcurl\libcurl.lib
    popd

Modify SDL

Building VirtualBox(configure)
  • Command
    Code: Select all   Expand viewCollapse view
    cd C:\z_Build\VirtualBox-4.1.14

    cscript configure.vbs ^
      --with-DDK="C:\WINDDK\3790.1830" ^
      --with-DXSDK="C:\Program Files\Microsoft DirectX SDK (November 2008)" ^
      --with-libSDL=C:\z_Build\SDL-1.2.15 ^
      --with-MinGW=C:\z_Build\mingw ^
      --with-Qt4=C:\z_Build\qt-everywhere-opensource-src-4.8.1 ^
      --with-SDK="C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2" ^
      --with-VC="C:\Program Files\Microsoft Visual Studio 8\VC" ^
      --with-python=C:\Python27 ^
      --with-openssl=C:\z_Build\openssl ^
      --with-libcurl=C:\z_Build\libcurl ^
      --with-VC-Express-Edition ^
      > C:\z_Build\VirtualBox-4.1.14.configure.log 2>&1


Building VirtualBox(make)
  • Prepare
    Edit C:\z_Build\VirtualBox-4.1.14\AutoConfig.kmk
    Add to the bottom
    Code: Select all   Expand viewCollapse view
    VBOX_GSOAP_INSTALLED = 1
    VBOX_PATH_GSOAP := C:/z_Build/gsoap-2.8/gsoap
    VBOX_PATH_GSOAP_BIN   := $(VBOX_PATH_GSOAP)/bin/win32
    PATH_SDK_WINDDK := C:/WinDDK/6001.18002

  • Command
    Code: Select all   Expand viewCollapse view
    cd C:\z_Build\VirtualBox-4.1.14

    env.bat

    set PATH=%PATH%;C:\z_Build\mingw\bin;

    set PATH=%PATH%;C:\z_Build\qt-everywhere-opensource-src-4.8.1\bin;

    kmk > C:\z_Build\VirtualBox-4.1.14.build.log 2>&1

  • Error-1
    Code: Select all   Expand viewCollapse view
    C:/z_Build/VirtualBox-4.1.14/src/VBox/Installer/win/Makefile.kmk:343: *** recipe commences before first target.  Stop.

  • Resolve-1-1
    Code: Select all   Expand viewCollapse view
    pushd C:\z_Build\VirtualBox-4.1.14\src\VBox\Installer\win
    move Makefile.kmk          Makefile.kmk.original
    copy Makefile.kmk.original Makefile.kmk
    popd

  • Resolve-1-2
    Change
    C:\z_Build\VirtualBox-4.1.14\src\VBox\Installer\win\Makefile.kmk
    (diff)
    Code: Select all   Expand viewCollapse view
    *** C:/z_Build/VirtualBox-4.1.14/src/VBox/Installer/win/Makefile.kmk.original   Fri Apr 27 01:59:03 2012
    --- C:/z_Build/VirtualBox-4.1.14/src/VBox/Installer/win/Makefile.kmk   Sat May 12 09:56:15 2012
    ***************
    *** 340,345 ****
    --- 340,346 ----
      endif
      # TODO: Add filtering out more dependencies here!
      ifndef VBOX_WITH_QTGUI
    +  VBOX_MSI_DEPENDENCIES := $(filer-out $ \
         $(PATH_OUT)/bin/VirtualBox.exe \
         $(PATH_OUT)/bin/VBoxTestOGL.exe \
         $(PATH_OUT)/bin/QtCoreVBox4.dll \

  • Error-2
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxCredProv - C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/VBoxCredProv/VBoxCredentialProvider.cpp
    VBoxCredentialProvider.cpp
    c:\z_build\virtualbox-4.1.14\src\vbox\additions\winnt\vboxcredprov\VBoxCredentialProvider.h(22) : fatal error C1083: Cannot open include file: 'credentialprovider.h': No such file or directory
    kmk: *** [C:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxCredProv/VBoxCredentialProvider.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 -W3 -wd4065 -wd4244 -wd4996 -Zc:wchar_t- -O2 -GS- -Oy- -MT -IC:/z_Build/VirtualBox-4.1.14/tools/win.x86/sdk/x200702//Include -IC:/PROGRA~1/MICROS~3/Include -IC:/WinDDK/6001.18002/inc/api -IC:/WinDDK/6001.18002/inc/ddk -IC:/z_Build/VirtualBox-4.1.14/include -IC:/z_Build/VirtualBox-4.1.14/out/win.x86/release -IC:/PROGRA~1/MICROS~1/VC/include -IC:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -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 -DIN_GUEST -DIN_GUEST_R3 -DIN_RT_R3 -DGC_ARCH_BITS=64 -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DUNICODE -FdC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxCredProv/VBoxCredentialProvider-obj.pdb -FD -FoC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxCredProv/VBoxCredentialProvider.obj C:\\z_Build\\VirtualBox-4.1.14\\src\\VBox\\Additions\\WINNT\\VBoxCredProv\\VBoxCredentialProvider.cpp

  • Resolve-2-1
    Get the short name of "C:\Program Files\Microsoft SDKs\Windows\v6.0".
    Code: Select all   Expand viewCollapse view
    dir /X "C:\" | find "Program Files" && ^
    dir /X "C:\Program Files" | find "Microsoft SDKs"


    (result)
    Code: Select all   Expand viewCollapse view
    05/12/2012  01:54 PM    <DIR>          PROGRA~1     Program Files
    05/12/2012  01:48 PM    <DIR>          MI2578~1     Microsoft SDKs

  • Resolve-2-2
    Code: Select all   Expand viewCollapse view
    pushd C:\z_Build\VirtualBox-4.1.14\src\VBox\Additions\WINNT\VBoxCredProv
    move Makefile.kmk          Makefile.kmk.original
    copy Makefile.kmk.original Makefile.kmk
    popd

  • Resolve-2-3
    Change
    C:\z_Build\VirtualBox-4.1.14\src\VBox\Additions\WINNT\VBoxCredProv\Makefile.kmk
    (diff)
    Code: Select all   Expand viewCollapse view
    *** C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/VBoxCredProv/Makefile.kmk.original   Fri Apr 27 01:56:52 2012
    --- C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/VBoxCredProv/Makefile.kmk   Sat May 12 14:00:04 2012
    ***************
    *** 36,42 ****
      # Since this is not the default SDK we have to navigate manually to it.
      #
      VBOX_PATH_PSDK_200702    := \
    !    $(PATH_DEVTOOLS)/win.x86/sdk/x200702/
     
      VBoxCredProv_INCS        := \
         $(VBOX_PATH_PSDK_200702)/Include
    --- 36,42 ----
      # Since this is not the default SDK we have to navigate manually to it.
      #
      VBOX_PATH_PSDK_200702    := \
    !    C:/PROGRA~1/MI2578~1/Windows/v6.0
     
      VBoxCredProv_INCS        := \
         $(VBOX_PATH_PSDK_200702)/Include

  • Error-3
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxRes - C:/z_Build/VirtualBox-4.1.14/src/VBox/Installer/win/Resources/dummy.cpp
    dummy.cpp
    kmk_builtin_rm -f C:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc
    kmk_builtin_append C:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_VIRTUALBOX            ICON DISCARDABLE "C:\\z_Build\\VirtualBox-4.1.14\\src\\VBox\\Frontends\\VirtualBox\\images\\OSE\\VirtualBox_win.ico"'
    kmk_builtin_append C:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX         ICON DISCARDABLE "C:\\z_Build\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\OSE\\virtualbox-vbox.ico"'
    kmk_builtin_append C:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX_EXTPACK ICON DISCARDABLE "C:\\z_Build\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\OSE\\virtualbox-vbox-extpack.ico"'
    kmk_builtin_append C:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX_OVA     ICON DISCARDABLE "C:\\z_Build\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\OSE\\virtualbox-ova.ico"'
    kmk_builtin_append C:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX_OVF     ICON DISCARDABLE "C:\\z_Build\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\OSE\\virtualbox-ovf.ico"'
    kmk_builtin_append C:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX_VDI     ICON DISCARDABLE "C:\\z_Build\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\virtualbox-vdi.ico"'
    kmk_builtin_append C:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX_VMDK    ICON DISCARDABLE "C:\\z_Build\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\virtualbox-vmdk.ico"'
    kmk_builtin_append C:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX_VHD     ICON DISCARDABLE "C:\\z_Build\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\virtualbox-vhd.ico"'
    kmk_builtin_append C:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes-icons.rc 'IDI_FILETYPE_VBOX_HDD     ICON DISCARDABLE "C:\\z_Build\\VirtualBox-4.1.14\\src\\VBox\\Resources\\win\\virtualbox-hdd.ico"'
    kBuild: Compiling VBoxRes - C:/z_Build/VirtualBox-4.1.14/src/VBox/Installer/win/Resources/VBoxRes.rc
    C:\z_Build\VirtualBox-4.1.14\out\win.x86\release\obj\VBoxRes/VBoxRes-icons.rc(6) : error RC2176 : old DIB in C:\z_Build\VirtualBox-4.1.14\src\VBox\Resources\win\virtualbox-vdi.ico; pass it through SDKPAINT

    kmk: *** [C:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes.res] Error 1
    The failing command:
    @ C:/PROGRA~1/MICROS~1/VC/bin/rc.exe  /iC:\\z_Build\\VirtualBox-4.1.14\\out\\win.x86\\release\\obj\\VBoxRes /iC:\\PROGRA~1\\MICROS~3\\Include /iC:\\z_Build\\VirtualBox-4.1.14\\include /iC:\\z_Build\\VirtualBox-4.1.14\\out\\win.x86\\release /iC:\\PROGRA~1\\MICROS~1\\VC\\include /iC:\\PROGRA~1\\MICROS~1\\VC\\atlmfc\\include /dVBOX /dVBOX_WITH_DEBUGGER /dVBOX_OSE /dVBOX_WITH_64_BITS_GUESTS /dRT_OS_WINDOWS /d__WIN__ /dRT_ARCH_X86 /d__X86__ /d__WIN32__ /dIN_RING3 /dHC_ARCH_BITS=32 /dGC_ARCH_BITS=64 /dVBOX_VERSION_MAJOR=\"4\" /dVBOX_VERSION_MINOR=\"1\" /dVBOX_VERSION_BUILD=\"14\" /dVBOX_SVN_REV=\"77440\" /dVBOX_VERSION_MAJOR_NR=4 /dVBOX_VERSION_MINOR_NR=1 /dVBOX_VERSION_BUILD_NR=14 /dVBOX_SVN_REV_NR=77440 /foC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxRes/VBoxRes.res C:\\z_Build\\VirtualBox-4.1.14\\src\\VBox\\Installer\\win\\Resources\\VBoxRes.rc

  • Resolve-3-1
    Code: Select all   Expand viewCollapse view
    pushd C:\z_Build\VirtualBox-4.1.14\src\VBox\Installer\win\Resources
    move Makefile.kmk          Makefile.kmk.original
    copy Makefile.kmk.original Makefile.kmk
    popd

  • Resolve-3-2
    (Maybe some icon files are missing.)
    Change
    C:\z_Build\VirtualBox-4.1.14\src\VBox\Installer\win\Resources\Makefile.kmk
    (diff)
    Code: Select all   Expand viewCollapse view
    *** C:/z_Build/VirtualBox-4.1.14/src/VBox/Installer/win/Resources/Makefile.kmk.original   Fri Apr 27 01:59:03 2012
    --- C:/z_Build/VirtualBox-4.1.14/src/VBox/Installer/win/Resources/Makefile.kmk   Sat May 12 14:14:44 2012
    ***************
    *** 42,51 ****
        VBOX_WINDOWS_ICON_EXT_EXTPACK := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox-extpack.ico
        VBOX_WINDOWS_ICON_EXT_OVA     := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-ova.ico
        VBOX_WINDOWS_ICON_EXT_OVF     := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-ovf.ico
    !   VBOX_WINDOWS_ICON_EXT_VDI     := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vdi.ico
    !   VBOX_WINDOWS_ICON_EXT_VMDK    := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vmdk.ico
    !   VBOX_WINDOWS_ICON_EXT_VHD     := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vhd.ico
    !   VBOX_WINDOWS_ICON_EXT_HDD     := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-hdd.ico
      else
        VBOX_WINDOWS_ICON_EXT_VBOX    := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vbox.ico
        VBOX_WINDOWS_ICON_EXT_EXTPACK := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vbox-extpack.ico
    --- 42,51 ----
        VBOX_WINDOWS_ICON_EXT_EXTPACK := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox-extpack.ico
        VBOX_WINDOWS_ICON_EXT_OVA     := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-ova.ico
        VBOX_WINDOWS_ICON_EXT_OVF     := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-ovf.ico
    !   VBOX_WINDOWS_ICON_EXT_VDI     := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox.ico
    !   VBOX_WINDOWS_ICON_EXT_VMDK    := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox.ico
    !   VBOX_WINDOWS_ICON_EXT_VHD     := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox.ico
    !   VBOX_WINDOWS_ICON_EXT_HDD     := $(VBOX_RESOURCES_PATH_WIN)/OSE/virtualbox-vbox.ico
      else
        VBOX_WINDOWS_ICON_EXT_VBOX    := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vbox.ico
        VBOX_WINDOWS_ICON_EXT_EXTPACK := $(VBOX_RESOURCES_PATH_WIN)/virtualbox-vbox-extpack.ico


  • Error-4
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxNetFltNobj - C:/z_Build/VirtualBox-4.1.14/src/VBox/HostDrivers/VBoxNetFlt/win/nobj/VBoxNetFltNobj.cpp
    VBoxNetFltNobj.cpp
    c:\z_build\virtualbox-4.1.14\src\vbox\hostdrivers\vboxnetflt\win\nobj\VBoxNetFltNobj.h(22) : fatal error C1083: Cannot open include file: 'atlbase.h': No such file or directory
    kmk: *** [C:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxNetFltNobj/win/nobj/VBoxNetFltNobj.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 -W3 -wd4065 -wd4244 -wd4996 -Zc:wchar_t- -O2 -GS- -Oy- -MT -IC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxNetFltNobj -IC:/PROGRA~1/MICROS~3/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:/PROGRA~1/MICROS~3/Include -IC:/z_Build/VirtualBox-4.1.14/include -IC:/z_Build/VirtualBox-4.1.14/out/win.x86/release -IC:/PROGRA~1/MICROS~1/VC/include -IC:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -D_X86_ -DIN_RING3 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -D_WIN32_WINNT=0x0500 -DWIN32 -D_ATL_STATIC_REGISTRY -FdC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxNetFltNobj/win/nobj/VBoxNetFltNobj-obj.pdb -FD -FoC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxNetFltNobj/win/nobj/VBoxNetFltNobj.obj C:\\z_Build\\VirtualBox-4.1.14\\src\\VBox\\HostDrivers\\VBoxNetFlt\\win\\nobj\\VBoxNetFltNobj.cpp

  • Reference-4
    atlbase.h - MDN
    https://developer.mozilla.org/en/atlbase.h
  • Resolve-4-1
    Code: Select all   Expand viewCollapse view
    pushd C:\z_Build\VirtualBox-4.1.14\src\VBox\HostDrivers\VBoxNetFlt
    move Makefile.kmk          Makefile.kmk.original
    copy Makefile.kmk.original Makefile.kmk
    popd

  • Resolve-4-2
    Change
    C:\z_Build\VirtualBox-4.1.14\src\VBox\HostDrivers\VBoxNetFlt\Makefile.kmk
    (diff)
    Code: Select all   Expand viewCollapse view
    *** C:/z_Build/VirtualBox-4.1.14/src/VBox/HostDrivers/VBoxNetFlt/Makefile.kmk.original   Fri Apr 27 01:58:57 2012
    --- C:/z_Build/VirtualBox-4.1.14/src/VBox/HostDrivers/VBoxNetFlt/Makefile.kmk   Sat May 12 23:11:57 2012
    ***************
    *** 213,225 ****
       VBoxNetFltNobj_SDKS       = WINPSDK W2K3DDK VBOX_NTDLL
       VBoxNetFltNobj_DEFS       = _WIN32_WINNT=0x0500 WIN32 _ATL_STATIC_REGISTRY
       VBoxNetFltNobj_INCS       = \
    !     $(VBoxNetFltNobj_0_OUTDIR)
       VBoxNetFltNobj_SOURCES    = \
          win/nobj/VBoxNetFltNobj.cpp \
          win/nobj/VBoxNetFltNobj.def \
          win/nobj/VBoxNetFltNobj.rc
       VBoxNetFltNobj_LIBS       = \
    !     $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls$(VBOX_VCC_CRT_TYPE).lib
       #VBoxNetFltNobj_INTERMEDIATES =
       VBoxNetFltNobj_DEPS       = \
          $(VBoxNetFltNobj_0_OUTDIR)/VBoxNetFltNobjT_i.c \
    --- 213,226 ----
       VBoxNetFltNobj_SDKS       = WINPSDK W2K3DDK VBOX_NTDLL
       VBoxNetFltNobj_DEFS       = _WIN32_WINNT=0x0500 WIN32 _ATL_STATIC_REGISTRY
       VBoxNetFltNobj_INCS       = \
    !     $(VBoxNetFltNobj_0_OUTDIR) \
    !     $(PATH_SDK_W2K3DDK)/inc/atl30
       VBoxNetFltNobj_SOURCES    = \
          win/nobj/VBoxNetFltNobj.cpp \
          win/nobj/VBoxNetFltNobj.def \
          win/nobj/VBoxNetFltNobj.rc
       VBoxNetFltNobj_LIBS       = \
    !     $(PATH_SDK_W2K3DDK)/lib/atl/i386/atls$(VBOX_VCC_CRT_TYPE).lib
       #VBoxNetFltNobj_INTERMEDIATES =
       VBoxNetFltNobj_DEPS       = \
          $(VBoxNetFltNobj_0_OUTDIR)/VBoxNetFltNobjT_i.c \

  • Error-5
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxGuestInstallHelper - C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Installer/InstallHelper/VBoxGuestInstallHelper.cpp
    VBoxGuestInstallHelper.cpp
    C:\z_Build\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Installer\InstallHelper\VBoxGuestInstallHelper.cpp(22) : fatal error C1083: Cannot open include file: 'atlconv.h': No such file or directory
    kmk: *** [C:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxGuestInstallHelper/VBoxGuestInstallHelper.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 -W3 -wd4065 -wd4244 -wd4996 -Zc:wchar_t- -O2 -GS- -Oy- -MT -IC:/PROGRA~1/MICROS~3/Include -IC:/z_Build/VirtualBox-4.1.14/include -IC:/z_Build/VirtualBox-4.1.14/out/win.x86/release -IC:/PROGRA~1/MICROS~1/VC/include -IC:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -DIN_RING3 -DIN_GUEST -DIN_GUEST_R3 -DIN_RT_R3 -DGC_ARCH_BITS=64 -D_WIN32_WINNT=0x0400 -DWIN32_LEAN_AND_MEAN=1 -FdC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxGuestInstallHelper/VBoxGuestInstallHelper-obj.pdb -FD -FoC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxGuestInstallHelper/VBoxGuestInstallHelper.obj C:\\z_Build\\VirtualBox-4.1.14\\src\\VBox\\Additions\\WINNT\\Installer\\InstallHelper\\VBoxGuestInstallHelper.cpp

  • Resolve-5-1
    Code: Select all   Expand viewCollapse view
    pushd C:\z_Build\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Installer\InstallHelper
    move Makefile.kmk          Makefile.kmk.original
    copy Makefile.kmk.original Makefile.kmk
    popd

  • Resolve-5-2
    Change
    C:\z_Build\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Installer\InstallHelper\Makefile.kmk
    (diff)
    Code: Select all   Expand viewCollapse view
    *** C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Installer/InstallHelper/Makefile.kmk.original   Fri Apr 27 01:56:52 2012
    --- C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Installer/InstallHelper/Makefile.kmk   Sat May 12 23:31:37 2012
    ***************
    *** 32,37 ****
    --- 32,41 ----
      VBoxGuestInstallHelper_SOURCES  = \
         VBoxGuestInstallHelper.cpp \
         VBoxGuestInstallHelper.rc
    + VBoxGuestInstallHelper_INCS       = \
    +     $(PATH_SDK_W2K3DDK)/inc/atl30
    + VBoxGuestInstallHelper_LIBS       = \
    +     $(PATH_SDK_W2K3DDK)/lib/atl/i386/atls$(VBOX_VCC_CRT_TYPE).lib
     
      include $(KBUILD_PATH)/subfooter.kmk


  • Error-6
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxGuestInstallHelper - C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Installer/InstallHelper/VBoxGuestInstallHelper.cpp
    VBoxGuestInstallHelper.cpp
    C:\WINDDK\3790.1830\inc\atl30\atlconv.h(321) : error C3861: '_ASSERTE': identifier not found
    .
    .
    .
    C:\WINDDK\3790.1830\inc\atl30\atlconv.h(682) : fatal error C1003: error count exceeds 100; stopping compilation
    kmk: *** [C:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxGuestInstallHelper/VBoxGuestInstallHelper.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 -W3 -wd4065 -wd4244 -wd4996 -Zc:wchar_t- -O2 -GS- -Oy- -MT -IC:/WINDDK/3790.1830/inc/atl30 -IC:/PROGRA~1/MICROS~3/Include -IC:/z_Build/VirtualBox-4.1.14/include -IC:/z_Build/VirtualBox-4.1.14/out/win.x86/release -IC:/PROGRA~1/MICROS~1/VC/include -IC:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -DIN_RING3 -DIN_GUEST -DIN_GUEST_R3 -DIN_RT_R3 -DGC_ARCH_BITS=64 -D_WIN32_WINNT=0x0400 -DWIN32_LEAN_AND_MEAN=1 -FdC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxGuestInstallHelper/VBoxGuestInstallHelper-obj.pdb -FD -FoC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxGuestInstallHelper/VBoxGuestInstallHelper.obj C:\\z_Build\\VirtualBox-4.1.14\\src\\VBox\\Additions\\WINNT\\Installer\\InstallHelper\\VBoxGuestInstallHelper.cpp

  • Resolve-6-1
    Code: Select all   Expand viewCollapse view
    pushd C:\z_Build\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Installer\InstallHelper
    move VBoxGuestInstallHelper.cpp          VBoxGuestInstallHelper.cpp.original
    copy VBoxGuestInstallHelper.cpp.original VBoxGuestInstallHelper.cpp
    popd

  • Resolve-6-2
    Change
    C:\z_Build\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Installer\InstallHelper\VBoxGuestInstallHelper.cpp
    (diff)
    Code: Select all   Expand viewCollapse view
    *** C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Installer/InstallHelper/VBoxGuestInstallHelper.cpp.original   Fri Apr 27 01:56:52 2012
    --- C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Installer/InstallHelper/VBoxGuestInstallHelper.cpp   Sat May 12 23:52:41 2012
    ***************
    *** 19,24 ****
    --- 19,25 ----
      *   Header Files                                                               *
      *******************************************************************************/
      #include <windows.h>
    + #include <atlbase.h>
      #include <atlconv.h>
      #include <stdlib.h>
      #include <Strsafe.h>

  • Error-7
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxNetFlt - C:/z_Build/VirtualBox-4.1.14/src/VBox/HostDrivers/VBoxNetFlt/win/drv/VBoxNetFltP-win.cpp
    VBoxNetFltP-win.cpp
    C:\WinDDK\6001.18002\inc\ddk\wdm.h(11150) : error C2373: '_InterlockedCompareExchange64' : redefinition; different type modifiers
            C:\PROGRA~1\MICROS~1\VC\include\intrin.h(232) : see declaration of '_InterlockedCompareExchange64'
    .
    .
    .
    kmk: *** [C:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxNetFlt/win/drv/VBoxNetFltP-win.obj] Error 2
    The failing command:
    @ C:/PROGRA~1/MICROS~1/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR- -EHs- -GF -Gz -W3 -GS- -wd4996 -Zc:wchar_t- -O2 -GS- -Oy- -IC:/z_Build/VirtualBox-4.1.14/src/VBox/HostDrivers/VBoxNetFlt -IC:/WinDDK/6001.18002/inc/api -IC:/WinDDK/6001.18002/inc/ddk -IC:/PROGRA~1/MICROS~3/Include -IC:/z_Build/VirtualBox-4.1.14/include -IC:/z_Build/VirtualBox-4.1.14/out/win.x86/release -IC:/PROGRA~1/MICROS~1/VC/include -IC:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -DWIN32=100 -D_WIN32_WINNT=0x0600 -DWINVER=0x0600 -D_WIN32_IE=0x0700 -DNTDDI_VERSION=0x06000000 -DKMDF_MAJOR_VERSION=01 -DKMDF_MINOR_VERSION=005 -D_X86_=1 -Di386=1 -DSTD_CALL -DIN_RING0 -DIN_RT_R0 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DIN_RT_R0 -DIN_SUP_STATIC -DWIN9X_COMPAT_SPINLOCK=1 -DVBOXNETFLT_STATIC_CONFIG -DVBOXNETFLT_NO_PACKET_QUEUE -DNDIS_MINIPORT_DRIVER -DNDIS_WDM=1 -DBINARY_COMPATIBLE=0 -DNDIS50_MINIPORT=1 -DNDIS50=1 -D_X86_ -FdC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxNetFlt/win/drv/VBoxNetFltP-win-obj.pdb -FD -FoC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxNetFlt/win/drv/VBoxNetFltP-win.obj C:\\z_Build\\VirtualBox-4.1.14\\src\\VBox\\HostDrivers\\VBoxNetFlt\\win\\drv\\VBoxNetFltP-win.cpp

  • Resolve-7-1
    Code: Select all   Expand viewCollapse view
    pushd C:\z_Build\VirtualBox-4.1.14\src\VBox\HostDrivers\VBoxNetFlt\win\drv
    move VBoxNetFltCmn-win.h          VBoxNetFltCmn-win.h.original
    copy VBoxNetFltCmn-win.h.original VBoxNetFltCmn-win.h
    popd

  • Resolve-7-2
    Change
    C:\z_Build\VirtualBox-4.1.14\src\VBox\HostDrivers\VBoxNetFlt\win\drv\VBoxNetFltCmn-win.h
    (diff)
    Code: Select all   Expand viewCollapse view
    *** C:/z_Build/VirtualBox-4.1.14/src/VBox/HostDrivers/VBoxNetFlt/win/drv/VBoxNetFltCmn-win.h.original   Fri Apr 27 01:58:57 2012
    --- C:/z_Build/VirtualBox-4.1.14/src/VBox/HostDrivers/VBoxNetFlt/win/drv/VBoxNetFltCmn-win.h   Sun May 13 00:41:45 2012
    ***************
    *** 62,67 ****
    --- 62,68 ----
      #  define _InterlockedExchange           _InterlockedExchange_StupidDDKVsCompilerCrap
      #  define _InterlockedExchangeAdd        _InterlockedExchangeAdd_StupidDDKVsCompilerCrap
      #  define _InterlockedCompareExchange    _InterlockedCompareExchange_StupidDDKVsCompilerCrap
    + #  define _InterlockedCompareExchange64  _InterlockedCompareExchange64_StupidDDKVsCompilerCrap
      #  define _InterlockedAddLargeStatistic  _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap
      #  define _interlockedbittestandset      _interlockedbittestandset_StupidDDKVsCompilerCrap
      #  define _interlockedbittestandreset    _interlockedbittestandreset_StupidDDKVsCompilerCrap
    ***************
    *** 80,85 ****
    --- 81,87 ----
      #  undef  _InterlockedExchange
      #  undef  _InterlockedExchangeAdd
      #  undef  _InterlockedCompareExchange
    + #  undef  _InterlockedCompareExchange64
      #  undef  _InterlockedAddLargeStatistic
      #  undef  _interlockedbittestandset
      #  undef  _interlockedbittestandreset

  • Error-8
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxGuest - C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win.cpp
    VBoxGuest-win.cpp
    C:\PROGRA~1\MICROS~1\VC\include\intrin.h(198) : error C2373: '_InterlockedExchange' : redefinition; different type modifiers
            C:\WINDDK\3790.1830\inc\ddk\wnet\ntddk.h(8673) : see declaration of '_InterlockedExchange'
    C:\PROGRA~1\MICROS~1\VC\include\intrin.h(208) : error C2373: '_InterlockedExchangeAdd' : redefinition; different type modifiers
            C:\WINDDK\3790.1830\inc\ddk\wnet\ntddk.h(8726) : see declaration of '_InterlockedExchangeAdd'
    C:\PROGRA~1\MICROS~1\VC\include\intrin.h(216) : error C2373: '_InterlockedCompareExchange' : redefinition; different type modifiers
            C:\WINDDK\3790.1830\inc\ddk\wnet\ntddk.h(8755) : see declaration of '_InterlockedCompareExchange'
    C:\PROGRA~1\MICROS~1\VC\include\intrin.h(278) : error C2733: second C linkage of overloaded function '_InterlockedAddLargeStatistic' not allowed
            C:\PROGRA~1\MICROS~1\VC\include\intrin.h(278) : see declaration of '_InterlockedAddLargeStatistic'
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(384) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG)' to 'uint32_t'
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(384) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG)' to 'uint32_t'
            There is no context in which this conversion is possible
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(384) : error C3861: '_InterlockedExchange': identifier not found
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(763) : error C2446: '==' : no conversion from 'uint32_t' to 'LONG (__cdecl *)(volatile LONG *,LONG,LONG)'
            Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(763) : error C2040: '==' : 'LONG (__cdecl *)(volatile LONG *,LONG,LONG)' differs in levels of indirection from 'uint32_t'
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(763) : error C3861: '_InterlockedCompareExchange': identifier not found
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(1053) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG,LONG)' to 'uint32_t'
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(1053) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG,LONG)' to 'uint32_t'
            There is no context in which this conversion is possible
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(1053) : error C3861: '_InterlockedCompareExchange': identifier not found
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(2466) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG)' to 'uint32_t'
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(2466) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG)' to 'uint32_t'
            There is no context in which this conversion is possible
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(2466) : error C3861: '_InterlockedExchangeAdd': identifier not found
    kmk: *** [C:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxGuest/VBoxGuest-win.obj] Error 2
    The failing command:
    @ C:/PROGRA~1/MICROS~1/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR- -EHs- -GF -Gz -W3 -GS- -wd4996 -Zc:wchar_t- -O2 -GS- -Oy- -IC:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/common/VBoxGuest -IC:/PROGRA~1/MICROS~3/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_Build/VirtualBox-4.1.14/include -IC:/z_Build/VirtualBox-4.1.14/out/win.x86/release -IC:/PROGRA~1/MICROS~1/VC/include -IC:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -D_X86_ -DIN_RING0 -DIN_RT_R0 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DIN_GUEST -DIN_GUEST_R0 -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DVBOX_REBOOT_ON_UNINSTALL -D_X86_ -FdC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxGuest/VBoxGuest-win-obj.pdb -FD -FoC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxGuest/VBoxGuest-win.obj C:\\z_Build\\VirtualBox-4.1.14\\src\\VBox\\Additions\\common\\VBoxGuest\\VBoxGuest-win.cpp

  • Resolve-8-1
    Code: Select all   Expand viewCollapse view
    pushd C:\z_Build\VirtualBox-4.1.14\src\VBox\Additions\common\VBoxGuest
    move VBoxGuest-win.cpp          VBoxGuest-win.cpp.original
    copy VBoxGuest-win.cpp.original VBoxGuest-win.cpp
    popd

  • Resolve-8-2
    Change
    C:\z_Build\VirtualBox-4.1.14\src\VBox\Additions\common\VBoxGuest\VBoxGuest-win.cpp
    (diff)
    Code: Select all   Expand viewCollapse view
    *** C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win.cpp.original   Fri Apr 27 01:56:54 2012
    --- C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win.cpp   Sun May 13 00:47:23 2012
    ***************
    *** 17,23 ****
    --- 17,31 ----
      *   Header Files                                                               *
      *******************************************************************************/
      #define LOG_GROUP LOG_GROUP_SUP_DRV
    + #       define _InterlockedExchange             _InterlockedExchange_StupidDDKVsCompilerCrap
    + #       define _InterlockedExchangeAdd          _InterlockedExchangeAdd_StupidDDKVsCompilerCrap
    + #       define _InterlockedCompareExchange      _InterlockedCompareExchange_StupidDDKVsCompilerCrap
    + #       define _InterlockedAddLargeStatistic    _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap
      #include "VBoxGuest-win.h"
    + #       undef  _InterlockedExchange
    + #       undef  _InterlockedExchangeAdd
    + #       undef  _InterlockedCompareExchange
    + #       undef  _InterlockedAddLargeStatistic
      #include "VBoxGuestInternal.h"
     
      #include <iprt/asm.h>

  • Error-9
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxVideoWddm - C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp
    VBoxMPWddm.cpp
    C:\PROGRA~1\MICROS~1\VC\include\intrin.h(232) : error C2373: '_InterlockedCompareExchange64' : redefinition; different type modifiers
            C:\WinDDK\6001.18002\inc\ddk\wdm.h(11146) : see declaration of '_InterlockedCompareExchange64'
    .
    .
    .
    kmk: *** [C:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxVideoWddm/wddm/VBoxMPWddm.obj] Error 2
    The failing command:
    @ C:/PROGRA~1/MICROS~1/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR- -EHs- -GF -Gz -W3 -GS- -wd4996 -Zc:wchar_t- -O2 -GS- -Oy- -IC:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/include -IC:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video -IC:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video/mp -IC:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/common/VBoxGuestLib -IC:/WinDDK/6001.18002/inc/api -IC:/WinDDK/6001.18002/inc/ddk -IC:/PROGRA~1/MICROS~3/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_Build/VirtualBox-4.1.14/include -IC:/z_Build/VirtualBox-4.1.14/out/win.x86/release -IC:/PROGRA~1/MICROS~1/VC/include -IC:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -DWIN32=100 -D_WIN32_WINNT=0x0600 -DWINVER=0x0600 -D_WIN32_IE=0x0700 -DNTDDI_VERSION=0x06000000 -DKMDF_MAJOR_VERSION=01 -DKMDF_MINOR_VERSION=005 -D_X86_=1 -Di386=1 -DSTD_CALL -D_X86_ -DIN_RING0 -DIN_RT_R0 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DIN_GUEST -DIN_GUEST_R0 -DVBOX_WITH_8BPP_MODES -DVBOX_WDDM_MINIPORT -DVBOX_WITH_WDDM -DVBOX_WITH_HGCM -DVBOX_WITH_VIDEOHWACCEL -DVBOXWDDM_WITH_VBVA -DVBOXWDDM_RENDER_FROM_SHADOW -DVBOX_WITH_VDMA -DVBOX_WITH_CRHGSMI -DLOG_TO_BACKDOOR -D_X86_ -FdC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxVideoWddm/wddm/VBoxMPWddm-obj.pdb -FD -FoC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxVideoWddm/wddm/VBoxMPWddm.obj C:\\z_Build\\VirtualBox-4.1.14\\src\\VBox\\Additions\\WINNT\\Graphics\\Video\\mp\\wddm\\VBoxMPWddm.cpp

  • Resolve-9-1
    Code: Select all   Expand viewCollapse view
    pushd C:\z_Build\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Graphics\Video\mp\wddm
    move VBoxMPWddm.h          VBoxMPWddm.h.original
    copy VBoxMPWddm.h.original VBoxMPWddm.h
    popd

  • Resolve-9-2
    Change
    C:\z_Build\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Graphics\Video\mp\wddm\VBoxMPWddm.h
    (diff)
    Code: Select all   Expand viewCollapse view
    *** C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.h.original   Fri Apr 27 01:56:30 2012
    --- C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.h   Sun May 13 00:55:02 2012
    ***************
    *** 24,30 ****
    --- 24,32 ----
      # endif
      # define RT_NO_STRICT
      #endif
    + #       define _InterlockedCompareExchange64    _InterlockedCompareExchange64_StupidDDKVsCompilerCrap
      #include "common/VBoxMPUtils.h"
    + #       undef  _InterlockedCompareExchange64
      #include "common/VBoxMPDevExt.h"
      #include "../../common/VBoxVideoTools.h"


  • Error-10
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxVideoWddm - C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPRegistry.cpp
    VBoxMPRegistry.cpp
    C:\PROGRA~1\MICROS~1\VC\include\intrin.h(232) : error C2373: '_InterlockedCompareExchange64' : redefinition; different type modifiers
            C:\WinDDK\6001.18002\inc\ddk\wdm.h(11146) : see declaration of '_InterlockedCompareExchange64'
    .
    .
    .
    kmk: *** [C:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxVideoWddm/wddm/VBoxMPRegistry.obj] Error 2
    The failing command:
    @ C:/PROGRA~1/MICROS~1/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR- -EHs- -GF -Gz -W3 -GS- -wd4996 -Zc:wchar_t- -O2 -GS- -Oy- -IC:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/include -IC:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video -IC:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video/mp -IC:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/common/VBoxGuestLib -IC:/WinDDK/6001.18002/inc/api -IC:/WinDDK/6001.18002/inc/ddk -IC:/PROGRA~1/MICROS~3/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_Build/VirtualBox-4.1.14/include -IC:/z_Build/VirtualBox-4.1.14/out/win.x86/release -IC:/PROGRA~1/MICROS~1/VC/include -IC:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -DWIN32=100 -D_WIN32_WINNT=0x0600 -DWINVER=0x0600 -D_WIN32_IE=0x0700 -DNTDDI_VERSION=0x06000000 -DKMDF_MAJOR_VERSION=01 -DKMDF_MINOR_VERSION=005 -D_X86_=1 -Di386=1 -DSTD_CALL -D_X86_ -DIN_RING0 -DIN_RT_R0 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DIN_GUEST -DIN_GUEST_R0 -DVBOX_WITH_8BPP_MODES -DVBOX_WDDM_MINIPORT -DVBOX_WITH_WDDM -DVBOX_WITH_HGCM -DVBOX_WITH_VIDEOHWACCEL -DVBOXWDDM_WITH_VBVA -DVBOXWDDM_RENDER_FROM_SHADOW -DVBOX_WITH_VDMA -DVBOX_WITH_CRHGSMI -DLOG_TO_BACKDOOR -D_X86_ -FdC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxVideoWddm/wddm/VBoxMPRegistry-obj.pdb -FD -FoC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxVideoWddm/wddm/VBoxMPRegistry.obj C:\\z_Build\\VirtualBox-4.1.14\\src\\VBox\\Additions\\WINNT\\Graphics\\Video\\mp\\wddm\\VBoxMPRegistry.cpp

  • Resolve-10-1
    Code: Select all   Expand viewCollapse view
    pushd C:\z_Build\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Graphics\Video\mp\common
    move VBoxMPDevExt.h          VBoxMPDevExt.h.original
    copy VBoxMPDevExt.h.original VBoxMPDevExt.h
    popd

  • Resolve-10-2
    Change
    C:\z_Build\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Graphics\Video\mp\common\VBoxMPDevExt.h
    (diff)
    Code: Select all   Expand viewCollapse view
    *** C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video/mp/common/VBoxMPDevExt.h.original   Fri Apr 27 01:56:29 2012
    --- C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video/mp/common/VBoxMPDevExt.h   Sun May 13 01:00:20 2012
    ***************
    *** 19,25 ****
    --- 19,27 ----
      #ifndef VBOXMPDEVEXT_H
      #define VBOXMPDEVEXT_H
     
    + #       define _InterlockedCompareExchange64    _InterlockedCompareExchange64_StupidDDKVsCompilerCrap
      #include "VBoxMPUtils.h"
    + #       undef  _InterlockedCompareExchange64
      #include <VBox/VBoxVideoGuest.h>
     
      #ifdef VBOX_XPDM_MINIPORT

  • Error-11
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxVideoWddm - C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp
    HGSMIBase.cpp
    C:\WinDDK\6001.18002\inc\ddk\wdm.h(11150) : error C2373: '_InterlockedCompareExchange64' : redefinition; different type modifiers
            C:\PROGRA~1\MICROS~1\VC\include\intrin.h(232) : see declaration of '_InterlockedCompareExchange64'
    .
    .
    .
    kmk: *** [C:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxVideoWddm/src/VBox/Additions/common/VBoxVideo/HGSMIBase.obj] Error 2
    The failing command:
    @ C:/PROGRA~1/MICROS~1/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR- -EHs- -GF -Gz -W3 -GS- -wd4996 -Zc:wchar_t- -O2 -GS- -Oy- -IC:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/include -IC:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video -IC:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Graphics/Video/mp -IC:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/common/VBoxGuestLib -IC:/WinDDK/6001.18002/inc/api -IC:/WinDDK/6001.18002/inc/ddk -IC:/PROGRA~1/MICROS~3/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_Build/VirtualBox-4.1.14/include -IC:/z_Build/VirtualBox-4.1.14/out/win.x86/release -IC:/PROGRA~1/MICROS~1/VC/include -IC:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -DWIN32=100 -D_WIN32_WINNT=0x0600 -DWINVER=0x0600 -D_WIN32_IE=0x0700 -DNTDDI_VERSION=0x06000000 -DKMDF_MAJOR_VERSION=01 -DKMDF_MINOR_VERSION=005 -D_X86_=1 -Di386=1 -DSTD_CALL -D_X86_ -DIN_RING0 -DIN_RT_R0 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DIN_GUEST -DIN_GUEST_R0 -DVBOX_WITH_8BPP_MODES -DVBOX_WDDM_MINIPORT -DVBOX_WITH_WDDM -DVBOX_WITH_HGCM -DVBOX_WITH_VIDEOHWACCEL -DVBOXWDDM_WITH_VBVA -DVBOXWDDM_RENDER_FROM_SHADOW -DVBOX_WITH_VDMA -DVBOX_WITH_CRHGSMI -DLOG_TO_BACKDOOR -D_X86_ -FdC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxVideoWddm/src/VBox/Additions/common/VBoxVideo/HGSMIBase-obj.pdb -FD -FoC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxVideoWddm/src/VBox/Additions/common/VBoxVideo/HGSMIBase.obj C:\\z_Build\\VirtualBox-4.1.14\\src\\VBox\\Additions\\common\\VBoxVideo\\HGSMIBase.cpp

  • Resolve-11-1
    Code: Select all   Expand viewCollapse view
    pushd C:\z_Build\VirtualBox-4.1.14\include\VBox
    move VBoxVideoGuest.h          VBoxVideoGuest.h.original
    copy VBoxVideoGuest.h.original VBoxVideoGuest.h
    popd

  • Resolve-11-2
    Change
    C:\z_Build\VirtualBox-4.1.14\include\VBox\VBoxVideoGuest.h
    (diff)
    Code: Select all   Expand viewCollapse view
    *** C:/z_Build/VirtualBox-4.1.14/include/VBox/VBoxVideoGuest.h.original   Fri Apr 27 01:56:23 2012
    --- C:/z_Build/VirtualBox-4.1.14/include/VBox/VBoxVideoGuest.h   Sun May 13 01:05:17 2012
    ***************
    *** 43,49 ****
    --- 43,51 ----
      #endif
     
      #ifdef VBOX_WDDM_MINIPORT
    + #       define _InterlockedCompareExchange64    _InterlockedCompareExchange64_StupidDDKVsCompilerCrap
      # include "wddm/VBoxMPShgsmi.h"
    + #       undef  _InterlockedCompareExchange64
       typedef VBOXSHGSMI HGSMIGUESTCMDHEAP;
      # define HGSMIGUESTCMDHEAP_GET(_p) (&(_p)->Heap)
      #else

  • Error-12
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxMouseNT - C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Mouse/NT4/VBoxPS2NT.cpp
    VBoxPS2NT.cpp
    C:\WINDDK\3790.1830\inc\ddk\wnet\ntddk.h(8676) : error C2373: '_InterlockedExchange' : redefinition; different type modifiers
            C:\PROGRA~1\MICROS~1\VC\include\intrin.h(198) : see declaration of '_InterlockedExchange'
    C:\WINDDK\3790.1830\inc\ddk\wnet\ntddk.h(8729) : error C2373: '_InterlockedExchangeAdd' : redefinition; different type modifiers
            C:\PROGRA~1\MICROS~1\VC\include\intrin.h(208) : see declaration of '_InterlockedExchangeAdd'
    C:\WINDDK\3790.1830\inc\ddk\wnet\ntddk.h(8759) : error C2373: '_InterlockedCompareExchange' : redefinition; different type modifiers
            C:\PROGRA~1\MICROS~1\VC\include\intrin.h(216) : see declaration of '_InterlockedCompareExchange'
    C:\WINDDK\3790.1830\inc\ddk\wnet\ntddk.h(14835) : error C2733: second C linkage of overloaded function '_InterlockedAddLargeStatistic' not allowed
            C:\WINDDK\3790.1830\inc\ddk\wnet\ntddk.h(14832) : see declaration of '_InterlockedAddLargeStatistic'
    C:\z_Build\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Mouse\NT4\VBoxPS2NT.cpp(1103) : error C3861: '_InterlockedExchange': identifier not found
    kmk: *** [C:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxMouseNT/VBoxPS2NT.obj] Error 2
    The failing command:
    @ C:/PROGRA~1/MICROS~1/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR- -EHs- -GF -Gz -W3 -GS- -wd4996 -Zc:wchar_t- -O2 -GS- -Oy- -IC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxMouseNT -IC:/PROGRA~1/MICROS~3/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_Build/VirtualBox-4.1.14/include -IC:/z_Build/VirtualBox-4.1.14/out/win.x86/release -IC:/PROGRA~1/MICROS~1/VC/include -IC:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -D_X86_ -DIN_RING0 -DIN_RT_R0 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DIN_GUEST -DIN_GUEST_R0 -DLOG_TO_BACKDOOR -D_X86_ -FdC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxMouseNT/VBoxPS2NT-obj.pdb -FD -FoC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxMouseNT/VBoxPS2NT.obj C:\\z_Build\\VirtualBox-4.1.14\\src\\VBox\\Additions\\WINNT\\Mouse\\NT4\\VBoxPS2NT.cpp

  • Resolve-12-1
    Code: Select all   Expand viewCollapse view
    pushd C:\z_Build\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Mouse\NT4
    move VBoxPS2NT.cpp          VBoxPS2NT.cpp.original
    copy VBoxPS2NT.cpp.original VBoxPS2NT.cpp
    popd

  • Resolve-12-2
    Change
    C:\z_Build\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Mouse\NT4\VBoxPS2NT.cpp
    (diff)
    Code: Select all   Expand viewCollapse view
    *** C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Mouse/NT4/VBoxPS2NT.cpp.original   Fri Apr 27 01:56:52 2012
    --- C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Mouse/NT4/VBoxPS2NT.cpp   Sun May 13 01:13:56 2012
    ***************
    *** 16,22 ****
    --- 16,30 ----
       */
     
      #define LOG_GROUP LOG_GROUP_DRV_MOUSE
    + #       define _InterlockedExchange    _InterlockedExchange_StupidDDKVsCompilerCrap
    + #       define _InterlockedExchangeAdd    _InterlockedExchangeAdd_StupidDDKVsCompilerCrap
    + #       define _InterlockedCompareExchange    _InterlockedCompareExchange_StupidDDKVsCompilerCrap
    + #       define _InterlockedAddLargeStatistic    _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap
      #include <iprt/asm.h>
    + #       undef  _InterlockedExchange
    + #       undef  _InterlockedExchangeAdd
    + #       undef  _InterlockedCompareExchange
    + #       undef  _InterlockedAddLargeStatistic
      #include <VBox/err.h>
      #include <VBox/log.h>
      #include <VBox/VBoxGuestLib.h>

  • Error-13
    Code: Select all   Expand viewCollapse view
    kBuild: Compiling VBoxMouse - C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Mouse/NT5/VBoxMFInternal.cpp
    cl : Command line warning D9025 : overriding '/O2' with '/Od'
    VBoxMFInternal.cpp
    C:\PROGRA~1\MICROS~1\VC\include\intrin.h(198) : error C2373: '_InterlockedExchange' : redefinition; different type modifiers
            C:\WINDDK\3790.1830\inc\ddk\wnet\ntddk.h(8673) : see declaration of '_InterlockedExchange'
    C:\PROGRA~1\MICROS~1\VC\include\intrin.h(208) : error C2373: '_InterlockedExchangeAdd' : redefinition; different type modifiers
            C:\WINDDK\3790.1830\inc\ddk\wnet\ntddk.h(8726) : see declaration of '_InterlockedExchangeAdd'
    C:\PROGRA~1\MICROS~1\VC\include\intrin.h(216) : error C2373: '_InterlockedCompareExchange' : redefinition; different type modifiers
            C:\WINDDK\3790.1830\inc\ddk\wnet\ntddk.h(8755) : see declaration of '_InterlockedCompareExchange'
    C:\PROGRA~1\MICROS~1\VC\include\intrin.h(278) : error C2733: second C linkage of overloaded function '_InterlockedAddLargeStatistic' not allowed
            C:\PROGRA~1\MICROS~1\VC\include\intrin.h(278) : see declaration of '_InterlockedAddLargeStatistic'
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(384) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG)' to 'uint32_t'
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(384) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG)' to 'uint32_t'
            There is no context in which this conversion is possible
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(384) : error C3861: '_InterlockedExchange': identifier not found
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(763) : error C2446: '==' : no conversion from 'uint32_t' to 'LONG (__cdecl *)(volatile LONG *,LONG,LONG)'
            Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(763) : error C2040: '==' : 'LONG (__cdecl *)(volatile LONG *,LONG,LONG)' differs in levels of indirection from 'uint32_t'
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(763) : error C3861: '_InterlockedCompareExchange': identifier not found
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(1053) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG,LONG)' to 'uint32_t'
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(1053) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG,LONG)' to 'uint32_t'
            There is no context in which this conversion is possible
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(1053) : error C3861: '_InterlockedCompareExchange': identifier not found
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(2466) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG)' to 'uint32_t'
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(2466) : error C2440: '=' : cannot convert from 'LONG (__cdecl *)(volatile LONG *,LONG)' to 'uint32_t'
            There is no context in which this conversion is possible
    C:\z_Build\VirtualBox-4.1.14\include\iprt/asm.h(2466) : error C3861: '_InterlockedExchangeAdd': identifier not found
    C:\z_Build\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Mouse\NT5\VBoxMFInternal.cpp(306) : error C3861: '_InterlockedCompareExchange': identifier not found
    .
    .
    .
    kmk: *** [C:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxMouse/VBoxMFInternal.obj] Error 2
    The failing command:
    @ C:/PROGRA~1/MICROS~1/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR- -EHs- -GF -Gz -W3 -GS- -wd4996 -Zc:wchar_t- -O2 -GS- -Oy- -Od -IC:/PROGRA~1/MICROS~3/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_Build/VirtualBox-4.1.14/include -IC:/z_Build/VirtualBox-4.1.14/out/win.x86/release -IC:/PROGRA~1/MICROS~1/VC/include -IC:/PROGRA~1/MICROS~1/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -D_X86_ -DIN_RING0 -DIN_RT_R0 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DIN_GUEST -DIN_GUEST_R0 -DLOG_TO_BACKDOOR -D_X86_ -FdC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxMouse/VBoxMFInternal-obj.pdb -FD -FoC:/z_Build/VirtualBox-4.1.14/out/win.x86/release/obj/VBoxMouse/VBoxMFInternal.obj C:\\z_Build\\VirtualBox-4.1.14\\src\\VBox\\Additions\\WINNT\\Mouse\\NT5\\VBoxMFInternal.cpp

  • Resolve-13-1
    Code: Select all   Expand viewCollapse view
    pushd C:\z_Build\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Mouse\NT5
    move VBoxMFInternal.cpp          VBoxMFInternal.cpp.original
    copy VBoxMFInternal.cpp.original VBoxMFInternal.cpp
    popd

  • Resolve-13-2
    Change
    C:\z_Build\VirtualBox-4.1.14\src\VBox\Additions\WINNT\Mouse\NT5\VBoxMFInternal.cpp
    (diff)
    Code: Select all   Expand viewCollapse view
    *** C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Mouse/NT5/VBoxMFInternal.cpp.original   Fri Apr 27 01:56:52 2012
    --- C:/z_Build/VirtualBox-4.1.14/src/VBox/Additions/WINNT/Mouse/NT5/VBoxMFInternal.cpp   Sun May 13 01:19:06 2012
    ***************
    *** 16,25 ****
    --- 16,33 ----
       * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
       */
     
    + #       define _InterlockedExchange    _InterlockedExchange_StupidDDKVsCompilerCrap
    + #       define _InterlockedExchangeAdd    _InterlockedExchangeAdd_StupidDDKVsCompilerCrap
    + #       define _InterlockedCompareExchange    _InterlockedCompareExchange_StupidDDKVsCompilerCrap
    + #       define _InterlockedAddLargeStatistic    _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap
      #include "VBoxMF.h"
      #include <VBox/VBoxGuestLib.h>
      #include <VBox/VBoxGuest.h>
      #include <iprt/assert.h>
    + #       undef  _InterlockedExchange
    + #       undef  _InterlockedExchangeAdd
    + #       undef  _InterlockedCompareExchange
    + #       undef  _InterlockedAddLargeStatistic
      #include <iprt/asm.h>
     
      typedef struct VBOXGDC


After build
  • Prepare for install
    Code: Select all   Expand viewCollapse view
    pushd C:\z_Build\VirtualBox-4.1.14\out\win.x86\release\bin

    copy C:\z_Build\qt-everywhere-opensource-src-4.8.1\lib\QtCore4.dll .
    copy C:\z_Build\qt-everywhere-opensource-src-4.8.1\lib\QtGui4.dll .
    copy C:\z_Build\qt-everywhere-opensource-src-4.8.1\lib\QtNetwork4.dll .
    copy C:\z_Build\qt-everywhere-opensource-src-4.8.1\lib\QtOpenGL4.dll .

    copy C:\z_Build\openssl\bin\libeay32.dll .
    copy C:\z_Build\openssl\bin\ssleay32.dll .

    copy C:\z_Build\libcurl\libcurl.dll .

    popd

  • Install
    Code: Select all   Expand viewCollapse view
    pushd C:\z_Build\VirtualBox-4.1.14\out\win.x86\release\bin

    REM VBOX_WITHOUT_COM=1
    REM comregister.cmd

    NetAdpUninstall.exe
    NetFltUninstall.exe
    SUPUninstall.exe
    USBUninstall.exe

    NetAdpInstall.exe
    NetFltInstall.exe
    SUPInstall.exe
    USBInstall.exe

    rundll32 setupapi,InstallHinfSection DefaultInstall 132  C:\z_Build\VirtualBox-4.1.14\out\win.x86\release\bin\VBoxDrv.inf

    REM Check
    VBoxBFE.exe

    popd
yk700101
 
Posts: 43
Joined: 7. Feb 2009, 00:17
Location: Japan
Primary OS: MS Windows Vista
VBox Version: OSE self-compiled
Guest OSses: Debian


Return to VirtualBox OSE

Who is online

Users browsing this forum: No registered users and 1 guest