- Windows XP SP3 (host OS)
Visual Studio 2010 Ultimate trial (Visual C++) +SP1
Windows DDK 7.1 (build environments and tools)
DirectX SDK Feb 2010 (utilities, libraries and headers)
CollabNet Subversion client 1.6.17
Active Perl5.12.3.1204-MSWin32-x86-294330
Active Python 2.7.1.4-win32-x86
MingW 4.5 & stuff, I've used the following packages (see this howto):- binutils
gcc-core (bin+dll)
gcc-g++ (bin+dll)
gmp (dev+both dlls, libgmp and libgmpxx)
mingw-runtime (mingwrt dev+dll)
mpc (dev+dll)
mpfr (dev+dll)
w32api
intl (dll)
iconv (dev+dll)
- binutils
- Qt 4.7.3 sources
cURL 7.21.7
OpenSSL 0.9.8r
SDL 1.2.14
- Notepad++
Total Commander
7zip
- c:\curl-7.21.7\
c:\mingw\
c:\openssl-0.9.8r\
c:\Perl\
c:\Python27\
c:\Qt\4.7.3\
c:\SDL-1.2.14\
c:\vbox_svn
c:\WinDDK\7600.16385.1\
c:\Program Files\Microsoft DirectX SDK (February 2010)\
c:\Program Files\Microsoft SDKs\Windows\v7.0A\
c:\Program Files\Microsoft Visual Studio 10.0\VC\
Open Command Prompt and type:
Code: Select all
cd \
svn co -r REVNUMBER http://www.virtualbox.org/svn/vbox/trunk vbox_svn
Create a new file, named vbox_svn\config.bat, edit&save it:
Code: Select all
cscript configure.vbs --with-dxsdk="c:\PROGRA~1\Microsoft DirectX SDK (February 2010)" --with-mingw="c:\mingw" --with-libsdl="c:\SDL-1.2.14" --with-openssl="c:\openssl-0.9.8r" --with-libcurl="c:\curl-7.21.7" --with-python="c:\Python27" --with-qt4="c:\Qt\4.7.3"
Small changes for a few DDK/VS2010 files are required:
[change #1] \Microsoft Visual Studio 10.0\VC\include\intrin.h ----- see the attached file
[change #2] Overwrite (backup first) \WinDDK\7600.16385.1\inc\api\sal.h with \Microsoft Visual Studio 10.0\VC\include\sal.h
Building SDL
Extract the SDL-1.2.14\VisualC.zip file, open&convert the SDL.sln file.
From the toolbar, change the Solution Configuration from Debug to Release.
Go to SDL project property pages, Linker -> General and select Additional Library Directories, add C:\Program Files\Microsoft DirectX SDK (February 2010)\Lib\x86
Build the solution
Create a SDL-1.2.14\lib folder. Copy the SDL.dll SDL.lib and SDLmain.lib files to the SDL-1.2.14\lib folder
Launch the Visual Studio Command Prompt and don't close it. It is required for the next steps.
Building Qt
Get the latest sources from here:
ftp://ftp.qt.nokia.com/qt/source/
Use Jom to speed the things up on multi core systems:
ftp://ftp.qt.nokia.com/jom/
Code: Select all
cd \Qt\4.7.3
configure -debug-and-release -opensource -no-accessibility -no-qt3support -rtti -no-openssl -no-dbus -no-phonon -no-multimedia -no-audio-backend -no-webkit -no-script -no-scripttools -no-declarative -no-native-gestures -nomake demos -nomake examples
@echo type jom or nmake, to start building Qt
Building OpenSSL
At the Visual Studio Command Prompt, execute:
Code: Select all
cd \openssl-0.9.8r
perl Configure VC-WIN32 --prefix=c:\openssl-0.9.8r
ms\do_masm
nmake -f ms\ntdll.mak
nmake -f ms\ntdll.mak install
At the Visual Studio Command Prompt, execute:
Code: Select all
cd \curl-7.21.7
nmake vc VC=vc10
nmake vc-dll VC=vc10
Building VirtualBox
Get and apply the latest patch for VirtualBox sources, from this thread (see the attached file), before building it.
At the Visual Studio Command Prompt, execute:
Code: Select all
set PATH=%PATH%;C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin
set PATH=%PATH%;C:\mingw\bin
config
env
kmk
It may seem unsafe to put all in the root folder, but it was easier for me, with all the searching and error fixing.
I have only tested VirtualBox using the GUI component and the bridge networking feature. I have never tested any other OSE features, like the Guest Additions or the NAT component.
With SVN 38122, bridge networking is not functional on my system. I can install the driver, but the feature is not working (VERR_SUPDRV_COMPONENT_NOT_FOUND).