<div dir="ltr"><font face="trebuchet ms, sans-serif">Hi all,</font><div><font face="trebuchet ms, sans-serif"><br></font></div><div><font face="trebuchet ms, sans-serif">I followed the instructions (<a href="https://www.virtualbox.org/wiki/Windows%20build%20instructions">https://www.virtualbox.org/wiki/Windows%20build%20instructions</a>, <a href="http://www.cnblogs.com/cxun/archive/2013/03/12/2956175.html">http://www.cnblogs.com/cxun/archive/2013/03/12/2956175.html</a>) to build VirtualBox 4.2.16 for Win32 in Windows 7 64bit environment. However, I got the error messages when starting the VM and settings. I tried <i>comregister.cmd</i> and <i>loadall.cmd</i> many times and it still doesn't work. Please refer to the steps below and help me. Thanks. </font></div>
<div><font face="trebuchet ms, sans-serif"><br></font></div><div><font face="trebuchet ms, sans-serif"><b>Prerequisites:</b> <br></font></div><div><font face="trebuchet ms, sans-serif">1. Install VS2010 with SP1</font></div>
<div><font face="trebuchet ms, sans-serif">2. Install WDDK v7.1</font></div><div><font face="trebuchet ms, sans-serif">3. Install MinGW v20120426 (from <a href="http://sourceforge.net/projects/mingw/files/latest/download?source=files">http://sourceforge.net/projects/mingw/files/latest/download?source=files</a>)</font></div>
<div><font face="trebuchet ms, sans-serif">  3.1 Download GCC 3.3.3 from <a class="" href="http://prdownloads.sf.net/mingw/gcc-core-3.3.3-20040217-1.tar.gz?download" style="font-size:13px;text-decoration:none;color:rgb(0,0,192);border-bottom-style:none">http://prdownloads.sf.net/mingw/gcc-core-3.3.3-20040217-1.tar.gz?download</a> and <a class="" href="http://prdownloads.sf.net/mingw/gcc-g++-3.3.3-20040217-1.tar.gz?download" style="font-size:13px;text-decoration:none;color:rgb(0,0,192);border-bottom-style:none">http://prdownloads.sf.net/mingw/gcc-g++-3.3.3-20040217-1.tar.gz?download</a><span style="font-size:13px;color:rgb(0,0,0)"> </span></font></div>
<div><span style="color:rgb(0,0,0);font-size:13px"><font face="trebuchet ms, sans-serif">  3.2 Unpack and copy all items to the path of MinGW (C:\MinGW)</font></span></div><div><font face="trebuchet ms, sans-serif"><span style="color:rgb(0,0,0);font-size:13px">4. Install QT4.8.5 (from </span><a href="http://download.qt-project.org/official_releases/qt/4.8/4.8.5/qt-win-opensource-4.8.5-vs2010.exe">http://download.qt-project.org/official_releases/qt/4.8/4.8.5/qt-win-opensource-4.8.5-vs2010.exe</a>)</font></div>
<div><font face="trebuchet ms, sans-serif">5. Download SDL v1.2.15 from <a href="http://www.libsdl.org/release/SDL-devel-1.2.15-VC.zip">http://www.libsdl.org/release/SDL-devel-1.2.15-VC.zip</a></font></div><div><font face="trebuchet ms, sans-serif">6. Download zlib v1.2.8 from <a href="http://zlib.net/zlib128-dll.zip">http://zlib.net/zlib128-dll.zip</a></font></div>
<div><font face="trebuchet ms, sans-serif">7. Download cURL devel version w/o SSL support (from <a href="http://curl.cs.pu.edu.tw/download/libcurl-7.18.0-win32-msvc.zip">http://curl.cs.pu.edu.tw/download/libcurl-7.18.0-win32-msvc.zip</a>)</font></div>
<div><font face="trebuchet ms, sans-serif">8. Download openssl 0.9.8y source code from <a href="http://www.openssl.org/source/openssl-0.9.8y.tar.gz">http://www.openssl.org/source/openssl-0.9.8y.tar.gz</a></font></div><div>
<font face="trebuchet ms, sans-serif">  8.1 Download and install ActivePerl to build openssl</font></div><div><font face="trebuchet ms, sans-serif">  8.2 Open Visual Studio Command Prompt (2010) and enter the root directory of source code</font></div>
<div><font face="trebuchet ms, sans-serif">  8.3 Execute <i><b>perl Configure VC-WIN32</b></i></font></div><div><font face="trebuchet ms, sans-serif">  8.4 Execute <i><b>ms\do_ms</b></i></font></div><div><font face="trebuchet ms, sans-serif">  8.5 Execute<i> <b>nmake -f ms\ntdll.mak</b></i></font></div>
<div><font face="trebuchet ms, sans-serif">  8.6 Rename the folders (include to old_include and inc32 to include)</font></div><div><font face="trebuchet ms, sans-serif">  8.7 Create a lib folder and copy all .lib file in out32dll folder to it.</font></div>
<div><font face="trebuchet ms, sans-serif">  8.8 Create a bin folder and copy all .exe and .dll file in out32dll folder to it.</font></div><div><font face="trebuchet ms, sans-serif">9. Install Python 2.7.3 (from <a href="http://www.python.org/ftp/python/2.7.3/python-2.7.3.msi">http://www.python.org/ftp/python/2.7.3/python-2.7.3.msi</a>)</font></div>
<div><font face="trebuchet ms, sans-serif"><br></font></div><div><b><font face="trebuchet ms, sans-serif">Building VirtualBox:</font></b></div><div><font face="trebuchet ms, sans-serif">1. Open Visual Studio Command Prompt (2010) -> execute<i> <b>vcvarsall.bat x86</b></i> -> close</font></div>
<div><font face="trebuchet ms, sans-serif">2. Open Visual Studio Command Prompt (2010) with Administrator</font></div><div><font face="trebuchet ms, sans-serif">3. Change to the kbuild directory in VirtualBox 4.2.16 -> execute <i><b>envwin --win32</b></i></font></div>
<div><div><font face="trebuchet ms, sans-serif">4. Change to the root directoy -> execute <b><i>cscript configure.vbs --with-MinGW32=<path> --with-libSDL=<path> --with-openssl=<path> --with-libcurl=<path> --with-Qt4=<path></i></b></font></div>
<div><font face="trebuchet ms, sans-serif">5. execute env.bat</font></div><div><font face="trebuchet ms, sans-serif">6. execute kmk</font></div><div><font face="trebuchet ms, sans-serif"><br></font></div><div><b><font face="trebuchet ms, sans-serif">Running VirtualBox:</font></b></div>
<div><font face="trebuchet ms, sans-serif">1. Change to .\out\win.x86\release\bin</font></div><div><font face="trebuchet ms, sans-serif">2. Execute <i><b>comregister.cmd</b></i></font></div><div><font face="trebuchet ms, sans-serif">3. Execute <b><i>loadall.cmd</i></b></font></div>
<div><font face="trebuchet ms, sans-serif">4. Execute <b><i>VirtaulBox.exe</i></b></font></div><div><b><i><font face="trebuchet ms, sans-serif"><br></font></i></b></div><div><b><font face="trebuchet ms, sans-serif">Error Messages:</font></b></div>
<div><font face="trebuchet ms, sans-serif">1. When pressing the Start button, I got the message "Cannot access the kernel driver! Make sure the kernel module has been loaded successfully", and the next message is "Failed to open a session for the virtual machine" and the Result Code is E_FAIL (0x80004005).</font></div>
<div><span style="font-family:'trebuchet ms',sans-serif">2. When pressing the Settings button, I got the message "Failed to access the USB subsystem. Could not load the Host USB Proxy Service (VERR_FILE_NOT_FOUND). The service might not be installed on the host computer." and the Result Code is E_FAIL (0x00004005)</span><br>
</div><div><font face="trebuchet ms, sans-serif"><br></font></div><div><font face="trebuchet ms, sans-serif"><b>Questions:</b></font></div><div><font face="trebuchet ms, sans-serif">1. Can I build VirtualBox ose x86 and x64 in Windows 7/8 64bit environment? if so, what's wrong in my building step? Is there any document or SOP can be referenced for building x64 version.</font></div>
<div><font face="trebuchet ms, sans-serif">2. There is a parameter called build_target in the env.sh file. Is it possible that build </font><span style="font-family:'trebuchet ms',sans-serif">VirtualBox ose for Windows Host in Linux environment such as Ubuntu v13.04? If possible, what document or SOP can be referenced? </span></div>
<div><font face="trebuchet ms, sans-serif"><br></font></div>-- <br><div style="text-align:left"><i><span style="font-size:large"><font face="'comic sans ms', sans-serif">Best Regards</font></span></i></div><div style="text-align:left">
<i><span style="font-size:large"><font face="'comic sans ms', sans-serif">Hank</font></span></i></div>
</div></div>