[vbox-dev] Type conversion error while building VBox OSE on Windows

Huihong Luo huisinro at yahoo.com
Thu Jul 17 18:43:42 GMT 2008


Exactly same errors occured to me, and I had to comment these 2 lines off in 
USBControllerImpl.cpp
 
BEGIN_COM_MAP(USBDeviceFilter)
//COM_INTERFACE_ENTRY(ISupportErrorInfo)
//COM_INTERFACE_ENTRY(IUSBDeviceFilter)
END_COM_MAP()
 
There will be a few more errors along the way, in my case, I had to modify WIN32_MC inside the mouse additions in order to build.

--- On Thu, 7/17/08, jsbiff at weldingengineering.com <jsbiff at weldingengineering.com> wrote:

From: jsbiff at weldingengineering.com <jsbiff at weldingengineering.com>
Subject: [vbox-dev] Type conversion error while building VBox OSE on Windows
To: vbox-dev at virtualbox.org
Date: Thursday, July 17, 2008, 11:28 AM

Hello,

  I have tried to carefully follow the build instructions located at:

http://www.virtualbox.org/wiki/Windows%20build%20instructions

I have Visual C++, the Platform SDK, the DDK installed to the default
locations; MingW, SDL, qtwin, xerces, xalan, and zlib installed on the e:
partition of my hard drive.

E:\dev>dir
 Volume in drive E has no label.
 Volume Serial Number is 5E33-9415

 Directory of E:\dev

07/09/2008  03:47 PM    <DIR>          .
07/09/2008  03:47 PM    <DIR>          ..
07/09/2008  03:18 PM    <DIR>          mingw
07/09/2008  03:50 PM    <DIR>          qt3.3
07/09/2008  03:15 PM    <DIR>          SDL-1.2.13
07/17/2008  01:05 PM    <DIR>          VirtualBox-1.6.2
07/09/2008  03:12 PM    <DIR>          Xalan-C_1_10_0-win32-msvc_60
07/09/2008  03:12 PM    <DIR>          xerces-c_2_8_0-x86-windows-vc_8_0
07/09/2008  03:15 PM    <DIR>          zlib123
               0 File(s)              0 bytes
               9 Dir(s)  17,653,959,680 bytes free


I opened the Visual Studio Command Prompt, changed directory to
e:\dev\VirtualBox-1.6.2, and ran:

cscript confibure.vbs

This failed, initially, saying it couldn't find mingw, and to use the
--with-mingw=<path>, so I resolved that, then resolved similar problems
for the other library dependencies; curiously, the configure script never
asked me for zlib, but I think that may be because the VirtualBox OSE
source tree includes zlib right in the source tree.

Anyhow, the configure script finally appeared to finish successfully. I
ran env.bat, then kmk -j3.

It ran for awhile, then eventually failed. Below is a paste of the console
output starting a line or two before the error to hopefully give you the
context you need to understand the errors (sorry if this comes out kind of
ugly):

kBuild: Compiling VBoxSVC -
E:/dev/VirtualBox-1.6.2/src/VBox/Main/USBControllerI
mpl.cpp
kBuild: Compiling VBoxSVC -
E:/dev/VirtualBox-1.6.2/src/VBox/Main/SATAController
Impl.cpp
USBControllerImpl.ctpspt
API.cpp
SATAControllerImpl.cpp
kBuild: Compiling VBoxSVC -
E:/dev/VirtualBox-1.6.2/src/VBox/Main/AudioAdapterIm
pl.cpp
E:\dev\VirtualBox-1.6.2\src\VBox\Main\USBControllerImpl.cpp(326)
: error
C2440:
'static_cast' : cannot convert from 'USBDeviceFilter::_ComMapClass
*' to
'ISuppo
rtErrorInfo *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-
style cast or function-style cast
E:\dev\VirtualBox-1.6.2\src\VBox\Main\USBControllerImpl.cpp(326)
: error
C2440:
'initializing' : cannot convert from 'ATL::_ATL_CREATORARGFUNC
(__stdcall
*)' to
 'DWORD_PTR'
        There is no context in which this conversion is possible
kmk.exe[3]: ***
[E:/dev/VirtualBox-1.6.2/out/win.x86/release/obj/src/VBox/Main/V
BoxSVC/USBControllerImpl.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 -Zc:wchar_t- -O2 -GS- -Oy-
-IE:/dev/VirtualBox
-1.6.2/out/win.x86/release/obj/src/VBox/Main/VBoxCOM
-IE:/dev/VirtualBox-1.6.2/s
rc/VBox/Main/include
-IE:/dev/VirtualBox-1.6.2/out/win.x86/release/obj/src/VBox/
Main/VBoxSVC -IE:/dev/VirtualBox-1.6.2/src/VBox/Main
-IE:/dev/VirtualBox-1.6.2/o
ut/win.x86/release/obj/src/VBox/Main
-IE:/dev/VirtualBox-1.6.2/out/win.x86/relea
se/bin/sdk/include -IC:/PROGRA~1/MID05A~1/VC/atlmfc/include
-IC:/PROGRA~1/MI9547
~1/Include -IC:/WINDDK/3790~1.183/inc/ddk
-IC:/WINDDK/3790~1.183/inc/ddk/wnet -I
C:/WINDDK/3790~1.183/inc/wnet -IC:/WINDDK/3790~1.183/inc/ddk/wdm/wnet
-IE:/dev/V
irtualBox-1.6.2/include -IE:/dev/VirtualBox-1.6.2/out/win.x86/release
-IC:/PROGR
A~1/MID05A~1/VC/include -IC:/PROGRA~1/MID05A~1/VC/atlmfc/include -DVBOX
-DVBOX_O
SE -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -D_X86_
-DIN_RI
NG3 -DUNICODE -DNDEBUG=1 -DVBOX_MAIN_SETTINGS_ADDONS -DVBOX_HGCM
-DVBOX_WITH_ALS
A -DVBOX_WITH_PULSE -D_UNICODE -DVBOX_COM_OUTOFPROC_MODULE
-D_WIN32_WINNT=0x0500

-FdE:/dev/VirtualBox-1.6.2/out/win.x86/release/obj/src/VBox/Main/VBoxSVC/USBCon
trollerImpl-obj.pdb -FD
-FoE:/dev/VirtualBox-1.6.2/out/win.x86/release/obj/src/V
Box/Main/VBoxSVC/USBControllerImpl.obj
E:\\dev\\VirtualBox-1.6.2\\src\\VBox\\Mai
n\\USBControllerImpl.cpp
kmk.exe[3]: *** Waiting for unfinished jobs....
AudioAdapterImpl.cpp
kmk.exe[3]: Leaving directory `E:/dev/VirtualBox-1.6.2/src/VBox/Main'
kmk.exe[2]: *** [pass_binaries_before] Error 2
kmk.exe[2]: Leaving directory `E:/dev/VirtualBox-1.6.2/src/VBox'
kmk.exe[1]: *** [pass_binaries_before] Error 2
kmk.exe[1]: Leaving directory `E:/dev/VirtualBox-1.6.2/src'
kmk: *** [pass_binaries_before] Error 2



_______________________________________________
vbox-dev mailing list
vbox-dev at virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20080717/ad47d83c/attachment.html>


More information about the vbox-dev mailing list