Building VirtualBox OSE 2.1.2 on Windows

Discussions related to using the OSE version of VirtualBox.

Building VirtualBox OSE 2.1.2 on Windows

Postby yk700101 » 7. Feb 2009, 06:38

The build succeeded.
But there may be mistakes.
(I built this project for the first time.)
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
  Windows Server 2003 R2 Platform SDK

Windows Driver Development Kit
  Windows Server 2003 SP1 DDK

DirectX SDK
  October 2006 DirectX SDK

MingW
  gcc-core-3.3.1-20030804-1.tar.gz
  gcc-g++-3.3.1-20030804-1.tar.gz
  mingw-runtime-3.8.tar.gz
  w32api-3.5.tar.gz
  binutils-2.13.90-20021006-2.tar.gz

SDL
  SDL-devel-1.2.13-VC8.zip

libxml2 and libxslt1 libraries
  libxml2-2.7.2+.win32.zip
  libxslt-1.1.24.win32.zip

QT
  qt-3.3.x-p8.tar.bz2


Directory tree
Code: Select all   Expand viewCollapse view
  C:\z_Build2
  ??libxml2-2.7.2.win32
  ??libxslt-1.1.24.win32
  ??mingw
  ??qt-3.3.x-p8
  ??SDL-1.2.13
  ??VirtualBox-2.1.2_OSE


Building VirtualBox(configure)
  • Command
    Code: Select all   Expand viewCollapse view
    cscript configure.vbs --with-MinGW=C:\z_Build2\mingw --with-libSDL=C:\z_Build2\SDL-1.2.13  --with-libxml2=C:\z_Build2\libxml2-2.7.2.win32 --with-libxslt=C:\z_Build2\libxslt-1.1.24.win32 --with-qt=C:\z_Build2\qt-3.3.x-p8

  • Error-1
    Code: Select all   Expand viewCollapse view
    configure.vbs(1676, 10) Microsoft VBScript runtime error: Type mismatch: '[string: "libxml2.lib"]'

  • Resolve-1
    Code: Select all   Expand viewCollapse view
    Edit C:\z_Build2\VirtualBox-2.1.2_OSE\configure.vbs
    Change
      if LogFindFile(strPathXml2, "lib/libxml2.lib") then
    to
      if LogFindFile(strPathXml2, "lib/libxml2.lib") <> "" then

  • Error-2
    Code: Select all   Expand viewCollapse view
    error: Can't locate libxslt. Please consult the configure.log and the build requirements.

  • Resolve-2
    Code: Select all   Expand viewCollapse view
    copy C:\z_Build2\libxml2-2.7.2.win32\bin\libxml2.dll C:\z_Build2\libxml2-2.7.2.win32\lib\libxml2.dll

  • Error-3
    Code: Select all   Expand viewCollapse view
    error: Can't locate libxslt. Please consult the configure.log and the build requirements.

  • Resolve-3
    Code: Select all   Expand viewCollapse view
    copy C:\z_Build2\libxslt-1.1.24.win32\bin\libxslt.dll C:\z_Build2\libxslt-1.1.24.win32\lib\libxslt.dll

Building VirtualBox(make)
  • Command
    Code: Select all   Expand viewCollapse view
    kmk

  • Error-1
    Code: Select all   Expand viewCollapse view
    kmk: *** No rule to make target `C:/z_Build2/VirtualBox-2.1.2_OSE/src/VBox/Additions/WINNT/Installer/Makefile.kmk'.  Stop.

  • Resolve-1
    Code: Select all   Expand viewCollapse view
    echo. > C:\z_Build2\VirtualBox-2.1.2_OSE\src\VBox\Additions\WINNT\Installer\Makefile.kmk

  • Error-2
    Code: Select all   Expand viewCollapse view
    g++.exe: installation problem, cannot exec `as': No such file or directory

  • Resolve-2
    Code: Select all   Expand viewCollapse view
    set PATH=%PATH%;C:\z_Build2\mingw\bin;

  • Error-3
    Code: Select all   Expand viewCollapse view
    C:/z_Build2\libxml2-2.7.2.win32\include\libxml\encoding.h(28) : fatal error C1083: Cannot open include file: 'iconv.h': No such file or directory

  • Resolve-3
    Code: Select all   Expand viewCollapse view
    Get
      iconv(iconv-1.9.2.win32.zip)

    Directory tree
      C:\z_Build2
      ??iconv-1.9.2.win32

    Command
      set INCLUDE=%INCLUDE%;C:\z_Build2\iconv-1.9.2.win32\include;

  • Error-4
    Code: Select all   Expand viewCollapse view
    C:/z_Build2/VirtualBox-2.1.2_OSE/out/win.x86/release/obj/VBoxSettings/VBoxSettings.dll : fatal error LNK1120:

  • Error-4a(Execute the failing command)
    Code: Select all   Expand viewCollapse view
    error LNK2001: unresolved external symbol _xmlFree
    error LNK2001: unresolved external symbol _xsltGenericErrorContext
    error LNK2001: unresolved external symbol _xsltGenericError

  • Resolve-4
    Code: Select all   Expand viewCollapse view
    Edit C:\z_Build2\VirtualBox-2.1.2_OSE\AutoConfig.kmk
    Add to the bottom
      SDK_VBOX_LIBXML2_LIBS  := C:/z_Build2/libxml2-2.7.2.win32/lib/libxml2_a.lib
      SDK_VBOX_LIBXML2_LIBS  += C:/z_Build2/iconv-1.9.2.win32/lib/iconv.lib
      SDK_VBOX_LIBXSLT_LIBS   := C:/z_Build2/libxslt-1.1.24.win32/lib/libxslt_a.lib

  • Error-5
    Code: Select all   Expand viewCollapse view
    kmk.exe[2]: *** No rule to make target `C:/z_Build2/VirtualBox-2.1.2_OSE/tools/win.x86/qt/not-found/lib/VBoxqt-mt.lib', needed by `C:/z_Build2/VirtualBox-2.1.2_OSE/out/win.x86/release/obj/VirtualBox/VirtualBox3.exe'.  Stop.

  • Resolve-5
    Code: Select all   Expand viewCollapse view
    Edit C:\z_Build2\VirtualBox-2.1.2_OSE\AutoConfig.kmk
    Add to the bottom
      PATH_SDK_QT3 := C:/z_Build2/qt-3.3.x-p8
      PATH_TOOL_QT3_BIN := C:/z_Build2/qt-3.3.x-p8/bin

  • Error-6
    Code: Select all   Expand viewCollapse view
    kmk.exe[2]: *** No rule to make target `C:/z_Build2/qt-3.3.x-p8/lib/VBoxqt-mt.lib', needed by `C:/z_Build2/VirtualBox-2.1.2_OSE/out/win.x86/release/obj/VirtualBox/VirtualBox3.exe'.  Stop.

  • Resolve-6
    Code: Select all   Expand viewCollapse view
    Edit C:\z_Build2\VirtualBox-2.1.2_OSE\kBuild\units\qt3.kmk
    Change-6-1
      local qt_prefix := $(firstword \
          $($(target)_QT_PREFIX.$(bld_trg)) \
          $($(target)_QT_PREFIX.$(bld_trg_arch)) \
          $($(target)_QT_PREFIX.$(bld_trg).$(bld_trg_arch)) \
          $($(target)_QT_PREFIX.$(bld_trg_cpu)) \
          $($(target)_QT_PREFIX.$(bld_type)) \
          $($(target)_QT_PREFIX))
    to
      local qt_prefix

    Change-6-2
      local qt_lib := $(firstword $(wildcard \
          $(PATH_SDK_QT3_LIB)/dynamic/$(qt_prefix)qt-mt3*$(SUFF_LIB) \
          $(PATH_SDK_QT3_LIB)/$(qt_prefix)qt-mt3*$(SUFF_LIB) \
          $(PATH_SDK_QT3_LIB)/dynamic/$(qt_prefix)qt-mt$(SUFF_LIB) \
          $(PATH_SDK_QT3_LIB)/$(qt_prefix)qt-mt$(SUFF_LIB) \
          $(PATH_SDK_QT3_LIB)/dynamic/$(qt_prefix)Qt3*$(SUFF_LIB) \
          $(PATH_SDK_QT3_LIB)/$(qt_prefix)Qt3*$(SUFF_LIB) \
          $(PATH_SDK_QT3_LIB)/dynamic/$(qt_prefix)Qt*$(SUFF_LIB) \
          $(PATH_SDK_QT3_LIB)/$(qt_prefix)Qt*$(SUFF_LIB) \
          ) $(PATH_SDK_QT3_LIB)/$(qt_prefix)qt-mt$(SUFF_LIB) )
    to
      local qt_lib := C:/z_Build2/qt-3.3.x-p8/lib/qt-mt3.lib

    Change-6-3
      local qt_main_lib := $(firstword $(wildcard \
          $(PATH_SDK_QT3_LIB)/$(qt_prefix)qtmain$(SUFF_LIB) \
          $(PATH_SDK_QT3_LIB)/qtmain$(SUFF_LIB) \
          ) $(PATH_SDK_QT3_LIB)/$(qt_prefix)qtmain$(SUFF_LIB) )
          $(eval $(target)_LIBS   += $(qt_main_lib) )

    to
      local qt_main_lib := C:/z_Build2/qt-3.3.x-p8/lib/qt-mt3.lib


  • Error-7
    Code: Select all   Expand viewCollapse view
    kmk.exe[2]: *** No rule to make target `C:/z_Build2/VirtualBox-2.1.2_OSE/tools/win.x86/qt/not-found/lib/QtCore4.lib', needed by `C:/z_Build2/VirtualBox-2.1.2_OSE/out/win.x86/release/obj/VirtualBox4/VirtualBox.exe'.  Stop.

  • Resolve-7
    Code: Select all   Expand viewCollapse view
    Edit C:\z_Build2\VirtualBox-2.1.2_OSE\AutoConfig.kmk
    Add to the bottom
      VBOX_WITH_QT4GUI :=

After build
Code: Select all   Expand viewCollapse view
copy C:\z_Build2\iconv-1.9.2.win32\bin\iconv.dll C:\z_Build2\VirtualBox-2.1.2_OSE\out\win.x86\release\bin

cd C:\z_Build2\VirtualBox-2.1.2_OSE\out\win.x86\release\bin

comregister.cmd
SUPUninstall.exe
SUPInstall.exe
Last edited by yk700101 on 14. Feb 2009, 01:00, 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

Postby Shm » 11. Feb 2009, 18:03

Hi,

I tried to follow your instructions, but I can not make it to work.
My setup looks like yours except that i am using Visual Sudio 2005 SP1.
I am also on a Vista computer.


configuring it looks like this:

Code: Select all   Expand viewCollapse view
Shell inheritance test: OK
Source path: OK
Checking for kBuild...
 Found kBuild: C:/z_Build2/VIRTUA~1.2_O/kBuild
 Found kBuild binaries: C:/z_Build2/VIRTUA~1.2_O/kBuild/bin/win.x86
Checking for Visual C++...
 Found Visual C++ v8 (or later): C:/PROGRA~1/MICROS~4/VC
Checking for Windows Platform SDK (recent)...
 Found Windows Platform SDK: C:/PROGRA~1/MI9547~1
Checking for Windows 2003 DDK, build 3790 or later...
 Found Windows 2003 DDK: C:/WINDDK/3790~1.183
Checking for Midl.exe...
 Found Midl.exe: C:/PROGRA~1/MI9547~1/bin/Midl.exe
Checking for Direct X SDK...
 Found Direct X SDK: C:/PROGRA~1/MI22C6~1
Checking for MinGW GCC v3.3.x + Binutils + Runtime + W32API...
 Found MinGW (GCC v3.3.1): C:/z_Build2/mingw
 Found W32API: C:\z_Build2\mingw
Checking for libSDL...
 Found libSDL: C:/z_Build2/SDL-1.2.13
Checking for libxml2...
 Found libxml2: C:/z_Build2/libxml2-2.7.2.win32
Checking for libxslt...
 Found libxslt: C:/z_Build2/libxslt-1.1.24.win32
Checking for Qt...
 Found Qt (v3, QtWin/Free): C:/qtt



The errors I am getting are among other things

Code: Select all   Expand viewCollapse view
c:\z_Build2\VIRTUA~1.2_O>kmk
C:/z_Build2/VIRTUA~1.2_O/src/VBox/Main/webservice/Makefile.kmk:82: VBOX_PATH_GS
AP not found...
C:/z_Build2/VIRTUA~1.2_O/kBuild/units/qt3.kmk:186: kBuild: Couldn't find the Qt
 headers and libaries...
C:/z_Build2/VIRTUA~1.2_O/kBuild/units/qt4.kmk:170: kBuild: Couldn't find the Qt
 headers and libaries...
C:/z_Build2/VIRTUA~1.2_O/kBuild/units/qt3.kmk:763: invalid `local' directive
C:/z_Build2/VIRTUA~1.2_O/kBuild/footer.kmk:3118: kBuild: Install target 'bin' h
s a bad source specifier: C:/qtt/bin/qt-mt3.dll=>
kBuild: Generating C:/z_Build2/VIRTUA~1.2_O/out/win.x86/rel
kmk_builtin_append 'C:/z_Build2/VIRTUA~1.2_O/out/win.x86/release/GCCConfig.kmk'
'VBOX_GCC_VERSION_CC            ?= 30303'
.
.
.
.
.
.
.
kBuild: Compiling VBoxCOM - C:/z_Build2/VIRTUA~1.2_O/src/VBox/Main/glue/initterm
.cpp
kBuild: Compiling VBoxCOM - C:/z_Build2/VIRTUA~1.2_O/src/VBox/Main/glue/ErrorInf
o.cpp
initterm.cpp
ErrorInfo.cpp
C:\z_Build2\VIRTUA~1.2_O\include\iprt/asm.h(71) : warning C4163: '__readdr' : no
t available as an intrinsic function
C:\z_Build2\VIRTUA~1.2_O\include\iprt/asm.h(72) : warning C4163: '__writedr' : n
ot available as an intrinsic function
C:\z_Build2\VIRTUA~1.2_O\include\iprt/asm.h(1632) : error C3861: '__readdr': ide
ntifier not found
C:\z_Build2\VIRTUA~1.2_O\include\iprt/asm.h(1668) : error C3861: '__readdr': ide
Shm
 
Posts: 5
Joined: 11. Feb 2009, 17:47

__readdr': identifier not found

Postby yk700101 » 12. Feb 2009, 03:38

Hi,

I think the error is caused by intrin.h.
But I don't have build environment on Windows Vista, and I don't have Visual Sudio 2005 SP1.

Location of __readdr:
C:\z_Build2\VirtualBox-2.1.2_OSE\include\iprt\asm.h(71):# pragma intrinsic(__readdr)
C:\z_Build2\VirtualBox-2.1.2_OSE\include\iprt\asm.h(1632): uDR0 = __readdr(0);
C:\z_Build2\VirtualBox-2.1.2_OSE\include\iprt\asm.h(1668): uDR1 = __readdr(1);
C:\z_Build2\VirtualBox-2.1.2_OSE\include\iprt\asm.h(1704): uDR2 = __readdr(2);
C:\z_Build2\VirtualBox-2.1.2_OSE\include\iprt\asm.h(1740): uDR3 = __readdr(3);
C:\z_Build2\VirtualBox-2.1.2_OSE\include\iprt\asm.h(1776): uDR6 = __readdr(6);
C:\z_Build2\VirtualBox-2.1.2_OSE\include\iprt\asm.h(1812): uDR6 = __readdr(6);
C:\z_Build2\VirtualBox-2.1.2_OSE\include\iprt\asm.h(1861): uDR7 = __readdr(7);


asm.h(36-71) :
Code: Select all   Expand viewCollapse view
/** @todo #include <iprt/param.h> for PAGE_SIZE. */
/** @def RT_INLINE_ASM_USES_INTRIN
 * Defined as 1 if we're using a _MSC_VER 1400.
 * Otherwise defined as 0.
 */

#ifdef _MSC_VER
# if _MSC_VER >= 1400
#  define RT_INLINE_ASM_USES_INTRIN 1
#  include <intrin.h>
   /* Emit the intrinsics at all optimization levels. */
#  pragma intrinsic(_ReadWriteBarrier)
.
.
.
#  pragma intrinsic(__readdr)



My _MSC_VER is 1310.
C:\z_Build2>cl /?
Microsoft(R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
.
.
.
yk700101
 
Posts: 43
Joined: 7. Feb 2009, 00:17
Location: Japan
Primary OS: MS Windows Vista
VBox Version: OSE self-compiled
Guest OSses: Debian

Postby Shm » 12. Feb 2009, 11:08

Thanks for the reply!

/edit I managed to get rid of the qt3 problem. I had the binary version installed and not the source files. Is it safe to ignore the qt4 messages? I thought qt4 is not supported in the windows version?

I am using version 1400

Code: Select all   Expand viewCollapse view
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.


Would it possible for you send me the binary you created?
Shm
 
Posts: 5
Joined: 11. Feb 2009, 17:47

binary

Postby yk700101 » 12. Feb 2009, 16:28

Here is all C:\z_Build2
http://www.transferbigfiles.com/Get.aspx?id=2361aba2-956f-450b-aca8-b6944ca46643
(link expires February 14 @ 03:05 AM MST)
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 2.1.2 on Windows (use Qt4)

Postby yk700101 » 14. Feb 2009, 01:03

The build (use Qt4) succeeded.
But there may be mistakes.
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
  Windows Server 2003 R2 Platform SDK

Windows Driver Development Kit
  Windows Server 2003 SP1 DDK

DirectX SDK
  Microsoft DirectX SDK (November 2007)

MingW
  gcc-core-3.3.1-20030804-1.tar.gz
  gcc-g++-3.3.1-20030804-1.tar.gz
  mingw-runtime-3.8.tar.gz
  w32api-3.5.tar.gz
  binutils-2.13.90-20021006-2.tar.gz

SDL
  SDL-devel-1.2.13-VC8.zip

libxml2 and libxslt1 libraries
  libxml2-2.7.2+.win32.zip
  libxslt-1.1.24.win32.zip

QT
  qt-win-opensource-src-4.4.3.zip

iconv
  iconv-1.9.2.win32.zip



Directory tree
Code: Select all   Expand viewCollapse view
  C:\z_Build2
  ??iconv-1.9.2.win32
  ??libxml2-2.7.2.win32
  ??libxslt-1.1.24.win32
  ??mingw
  ??qt-win-opensource-src-4.4.3
  ??SDL-1.2.13
  ??VirtualBox-2.1.2_OSE



('October 2006 DirectX SDK' cannot build qt-win-opensource-src-4.4.3 by error below.)
Code: Select all   Expand viewCollapse view
error C2065: 'D3DXSHADER_OPTIMIZATION_LEVEL3' : undeclared identifier


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

    "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\SetEnv.Cmd" /SRV32 /RETAIL

    set PATH=%PATH%;C:\z_Build2\qt-win-opensource-src-4.4.3\bin;

    cd C:\z_Build2\qt-win-opensource-src-4.4.3

    configure

    nmake > C:\z_Build2\build.qt4.log 2>&1

Building VirtualBox(configure)
  • Prepare
    Code: Select all   Expand viewCollapse view
    Edit C:\z_Build2\VirtualBox-2.1.2_OSE\configure.vbs (1676)
    Change
      if LogFindFile(strPathXml2, "lib/libxml2.lib") then
    to
      if LogFindFile(strPathXml2, "lib/libxml2.lib") <> "" then

  • Command
    Code: Select all   Expand viewCollapse view
    copy C:\z_Build2\libxml2-2.7.2.win32\bin\libxml2.dll C:\z_Build2\libxml2-2.7.2.win32\lib\libxml2.dll
    copy C:\z_Build2\libxslt-1.1.24.win32\bin\libxslt.dll C:\z_Build2\libxslt-1.1.24.win32\lib\libxslt.dll

    cd C:\z_Build2\VirtualBox-2.1.2_OSE

    cscript configure.vbs --with-MinGW=C:\z_Build2\mingw --with-libSDL=C:\z_Build2\SDL-1.2.13 --with-libxml2=C:\z_Build2\libxml2-2.7.2.win32 --with-libxslt=C:\z_Build2\libxslt-1.1.24.win32 --with-qt=C:\z_Build2\qt-win-opensource-src-4.4.3

  • Error-1
    Code: Select all   Expand viewCollapse view
    Found Qt: not found

  • Resolve-1
    Code: Select all   Expand viewCollapse view
    Edit C:\z_Build2\VirtualBox-2.1.2_OSE\configure.vbs (line 1794)
    Change
             if CheckForQtWinFreeSub(strOptQt) then
                strPathQt = strOptQt
                blnQtWinFree = True
             end if
    to
    '         if CheckForQtWinFreeSub(strOptQt) then
                strPathQt = strOptQt
                blnQtWinFree = True
    '         end if

Building VirtualBox(make)
  • Prepare
    Code: Select all   Expand viewCollapse view
    Edit C:\z_Build2\VirtualBox-2.1.2_OSE\AutoConfig.kmk
    Add to the bottom
      SDK_VBOX_LIBXML2_LIBS  := C:/z_Build2/libxml2-2.7.2.win32/lib/libxml2_a.lib
      SDK_VBOX_LIBXML2_LIBS  += C:/z_Build2/iconv-1.9.2.win32/lib/iconv.lib
      SDK_VBOX_LIBXSLT_LIBS   := C:/z_Build2/libxslt-1.1.24.win32/lib/libxslt_a.lib


    Code: Select all   Expand viewCollapse view
    echo. > C:\z_Build2\VirtualBox-2.1.2_OSE\src\VBox\Additions\WINNT\Installer\Makefile.kmk

  • Command
    Code: Select all   Expand viewCollapse view
    env.bat

    set PATH=%PATH%;C:\z_Build2\mingw\bin;
    set PATH=%PATH%;C:\z_Build2\qt-win-opensource-src-4.4.3\bin;
    set INCLUDE=%INCLUDE%;C:\z_Build2\iconv-1.9.2.win32\include;

    kmk > C:\z_Build2\build.vbox.log 2>&1

  • Error-1
    Code: Select all   Expand viewCollapse view
    kmk.exe[2]: *** No rule to make target `C:/z_Build2/VirtualBox-2.1.2_OSE/tools/win.x86/qt/not-found/lib/VBoxqt-mt.lib', needed by `C:/z_Build2/VirtualBox-2.1.2_OSE/out/win.x86/release/obj/VirtualBox/VirtualBox3.exe'.  Stop.

  • Resolve-1
    Code: Select all   Expand viewCollapse view
    Edit C:\z_Build2\VirtualBox-2.1.2_OSE\AutoConfig.kmk
    Add to the bottom
      VBOX_WITH_QTGUI :=

  • Error-2
    Code: Select all   Expand viewCollapse view
    kmk.exe[2]: *** No rule to make target `C:/z_Build2/VirtualBox-2.1.2_OSE/tools/win.x86/qt/not-found/lib/QtCore4.lib', needed by `C:/z_Build2/VirtualBox-2.1.2_OSE/out/win.x86/release/obj/VirtualBox4/VirtualBox.exe'.  Stop.

  • Resolve-2
    Code: Select all   Expand viewCollapse view
    Edit C:\z_Build2\VirtualBox-2.1.2_OSE\AutoConfig.kmk
    Add to the bottom
      PATH_SDK_QT4 := C:/z_Build2/qt-win-opensource-src-4.4.3

After build
Code: Select all   Expand viewCollapse view
copy C:\z_Build2\qt-win-opensource-src-4.4.3\bin\QtCore4.dll C:\z_Build2\VirtualBox-2.1.2_OSE\out\win.x86\release\bin
copy C:\z_Build2\qt-win-opensource-src-4.4.3\bin\QtGui4.dll C:\z_Build2\VirtualBox-2.1.2_OSE\out\win.x86\release\bin
copy C:\z_Build2\qt-win-opensource-src-4.4.3\bin\QtNetwork4.dll C:\z_Build2\VirtualBox-2.1.2_OSE\out\win.x86\release\bin
copy C:\z_Build2\iconv-1.9.2.win32\bin\iconv.dll C:\z_Build2\VirtualBox-2.1.2_OSE\out\win.x86\release\bin

cd C:\z_Build2\VirtualBox-2.1.2_OSE\out\win.x86\release\bin

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

Re: Building VirtualBox OSE 2.1.2 on Windows

Postby rryk » 6. Mar 2009, 11:59

Greetings,

I tried to build VirtualBox taken from SVN head (http://www.virtualbox.org/svn/vbox/trunk), but process failed during kmk run. It cannot find intrinsic functions __readdr() and __writedr() declaration. These functions are not declared in MS Visual C++ 2005 SP1 header files, but appear only in VS 2008. Strange thing is that MSDN tells they should be available with 2005 SP1 (http://msdn.microsoft.com/en-us/library/aa983359.aspx), whereas I didn't find them in <intrin.h>. I have tried to reinstall VS 2005 SP1, but that didn't help. I work on Windows XP SP2, but this problem is common for Vista too:
Shm wrote:My setup looks like yours except that i am using Visual Sudio 2005 SP1.
I am also on a Vista computer.

.
.
.

The errors I am getting are among other things

Code: Select all   Expand viewCollapse view
c:\z_Build2\VIRTUA~1.2_O>kmk
C:/z_Build2/VIRTUA~1.2_O/src/VBox/Main/webservice/Makefile.kmk:82: VBOX_PATH_GS
AP not found...
C:/z_Build2/VIRTUA~1.2_O/kBuild/units/qt3.kmk:186: kBuild: Couldn't find the Qt
 headers and libaries...
C:/z_Build2/VIRTUA~1.2_O/kBuild/units/qt4.kmk:170: kBuild: Couldn't find the Qt
 headers and libaries...
C:/z_Build2/VIRTUA~1.2_O/kBuild/units/qt3.kmk:763: invalid `local' directive
C:/z_Build2/VIRTUA~1.2_O/kBuild/footer.kmk:3118: kBuild: Install target 'bin' h
s a bad source specifier: C:/qtt/bin/qt-mt3.dll=>
kBuild: Generating C:/z_Build2/VIRTUA~1.2_O/out/win.x86/rel
kmk_builtin_append 'C:/z_Build2/VIRTUA~1.2_O/out/win.x86/release/GCCConfig.kmk'
'VBOX_GCC_VERSION_CC            ?= 30303'
.
.
.
.
.
.
.
kBuild: Compiling VBoxCOM - C:/z_Build2/VIRTUA~1.2_O/src/VBox/Main/glue/initterm
.cpp
kBuild: Compiling VBoxCOM - C:/z_Build2/VIRTUA~1.2_O/src/VBox/Main/glue/ErrorInf
o.cpp
initterm.cpp
ErrorInfo.cpp
C:\z_Build2\VIRTUA~1.2_O\include\iprt/asm.h(71) : warning C4163: '__readdr' : no
t available as an intrinsic function
C:\z_Build2\VIRTUA~1.2_O\include\iprt/asm.h(72) : warning C4163: '__writedr' : n
ot available as an intrinsic function
C:\z_Build2\VIRTUA~1.2_O\include\iprt/asm.h(1632) : error C3861: '__readdr': ide
ntifier not found
C:\z_Build2\VIRTUA~1.2_O\include\iprt/asm.h(1668) : error C3861: '__readdr': ide



Any help would be appreciated. Here is partial output of my build-process with error:

Code: Select all   Expand viewCollapse view
kBuild: Compiling VBoxCOM - D:/Sergey/++Projects/vbox/src/VBox/Main/glue/string.
cpp
initterm.cpp
string.cpp
D:\Sergey\++Projects\vbox\include\iprt/asm.h(71) : warning C4164: '__readdr' : intrinsic function not declared
D:\Sergey\++Projects\vbox\include\iprt/asm.h(72) : warning C4164: '__writedr' : intrinsic function not declared
D:\Sergey\++Projects\vbox\include\iprt/asm.h(1632) : error C3861: '__readdr': identifier not found
D:\SerkBuild: Compiling VBoxCOM - D:/Sergey/++Projects/vbox/src/VBox/Main/glue/EventQueue.cppg
ey\++Projects\vbox\include\iprt/asm.h(1668) : error C3861: '__readdr': identifier not found
D:\Sergey\++Projects\vbox\include\iprt/asm.h(1704) : error C3861: '__readdr': identifier not found
D:\Sergey\++Projects\vbox\include\iprt/asm.h(1740) : error C3861: '__readdr': identifier not found
D:\Sergey\++Projects\vbox\include\iprt/asm.h(1776) : error C3861: '__readdr': identifier not found
D:\Sergey\++Projects\vbox\include\iprt/asm.h(1812) : error C3861: '__readdr': identifier not found
D:\Sergey\++Projects\vbox\include\iprt/asm.h(1813) : error C3861: '__writedr': identifier not found
D:\Sergey\++Projects\vbox\include\iprt/asm.h(1861) : error C3861: '__readdr': identifier not found
D:\Sergey\++Projects\vbox\include\iprt/asm.h(1896) : error C3861: '__writedr': identifier not found
D:\Sergey\++Projects\vbox\include\iprt/asm.h(1930) : error C3861: '__writedr': identifier not found
D:\Sergey\++Projects\vbox\include\iprt/asm.h(1964) : error C3861: '__writedr': identifier not found
D:\Sergey\++Projects\vbox\include\iprt/asm.h(1998) : error C3861: '__writedr': identifier not found
D:\Sergey\++Projects\vbox\include\iprt/asm.h(2032) : error C3861: '__writedr': identifier not found
D:\Sergey\++Projects\vbox\include\iprt/asm.h(2066) : error C3861: '__writedr': identifier not found
EventQueue.cpp
kmk.exe[2]: *** [D:/Sergey/++Projects/vbox/out/win.x86/release/obj/VBoxCOM/glue/initterm.obj] Error 2
The failing command:
@ C:/PROGRA~1/MID05A~1/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR -GF- -MD -EHsc -W3 -wd4065 -wd4996 -wd4250 -Zc:wchar_t- -O2 -GS- -Oy- -IC:/PROGRA~1/MID05A~1/VC/atlmfc/include -ID:/Sergey/++Projects/vbox/out/win.x86/release/bin/sdk/bindings/mscom/include -IC:/PROGRA~1/MI9547~1/Include -IC:/WINDDK/3790~1.183/inc/ddk -IC:/WINDDK/3790~1.183/inc/ddk/wnet -IC:/WINDDK/3790~1.183/inc/wnet -IC:/WINDDK/3790~1.183/inc/ddk/wdm/wnet -ID:/Sergey/++Projects/vbox/include -ID:/Sergey/++Projects/vbox/out/win.x86/release -IC:/PROGRA~1/MID05A~1/VC/include -IC:/PROGRA~1/MID05A~1/VC/atlmfc/include -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -D_X86_ -DIN_RING3 -DUNICODE -DNDEBUG=1 -D_UNICODE -D_WIN32_WINNT=0x0500 -FdD:/Sergey/++Projects/vbox/out/win.x86/release/obj/VBoxCOM/glue/initterm-obj.pdb -FD -FoD:/Sergey/++Projects/vbox/out/win.x86/release/obj/VBoxCOM/glue/initterm.obj D:\\Sergey\\++Projects\\vbox\\src\\VBox\\Main\\glue\\initterm.cpp
kmk.exe[2]: *** [D:/Sergey/++Projects/vbox/out/win.x86/release/obj/VBoxCOM/glue/initterm.obj] Deleting file `D:/Sergey/++Projects/vbox/out/win.x86/release/obj/VBoxCOM/glue/initterm-obj.idb'
kmk.exe[2]: *** Waiting for unfinished jobs....
kmk.exe[2]: Leaving directory `D:/Sergey/++Projects/vbox'
kmk.exe[2]: Entering directory `D:/Sergey/++Projects/vbox'
kmk.exe[2]: *** Exiting with status 2
kmk.exe[1]: *** [pass_libraries_this] Error 2
kmk.exe[1]: Leaving directory `D:/Sergey/++Projects/vbox'
kmk: *** [pass_libraries_order] Error 2
rryk
 
Posts: 8
Joined: 6. Mar 2009, 02:50

Re: Building VirtualBox OSE 2.1.2 on Windows

Postby yk700101 » 6. Mar 2009, 18:36

I selected quick fix.

Please see below.
(Building VirtualBox(make) -> Error-2, Resolve-2-1, Resolve-2-2)

[Building VirtualBox OSE 2.1.4 on Windows (use VS2005, Qt4)]
http://forums.virtualbox.org/viewtopic.php?f=10&t=14555
yk700101
 
Posts: 43
Joined: 7. Feb 2009, 00:17
Location: Japan
Primary OS: MS Windows Vista
VBox Version: OSE self-compiled
Guest OSses: Debian

Re: Building VirtualBox OSE 2.1.2 on Windows

Postby rryk » 8. Mar 2009, 02:16

Thanks. I actually found another "correct" distribution of Visual Studio which included __readdr.
rryk
 
Posts: 8
Joined: 6. Mar 2009, 02:50


Return to VirtualBox OSE

Who is online

Users browsing this forum: sash__ and 2 guests