I am trying to build VB OSE 64 bit version. I haven't found anything about this and the 32 bit buld instructions does not work for 64 bit. So i write this thread for two things.
1: I need help. My compiling skills are relativly low.
2: I would write an how to about this.
Most of the description i have from "yk70010". I hope it is ok to use it here
My build environment:
Code: Select all
OS Windows Vista Business x64
Visual Studio 2005 Professional Edition with service pack 2 (Version: 2.0.50727)
Windows Platform SDK -- Windows Vista Update & .NET 3.0 SDK (Feb-07)(6.1.6000.16384.10)
Windows Driver Develpment Kit -- GRMWDK_EN_7600_1.ISO
Microsoft DirectX SDK (February 2010)
MingW
GCC Version 3
gcc-core-3.3.3-20040217-1.tar.gz
gcc-g++-3.3.3-20040217-1.tar.gz
MinGW Runtime
mingwrt-3.18-mingw32-dev.tar.gz
MinGW API for MS-Windows
w32api-3.14-mingw32-dev.tar.gz
GNU Binutils
binutils-2.20.1-2-mingw32-bin.tar.gz
SDL
SDL-devel-1.2.14-VC8.zip
QT
qt-everywhere-opensource-src-4.6.2.zip
OpenSSL
openssl-0.9.8n.tar.gz
cURL
curl-7.20.1.tar.bz2
python
python-2.6.5.msi
gSOAP
gsoap_2.7.16.zip
Perl
ActivePerl-5.10.1.1007-MSWin32-x64-291969.msi
What i have done until now:
Directory Tree
Code: Select all
C:\Perl
C:\Program Files (x86)\Microsoft DirectX SDK (November 2008)
C:\Program Files\Microsoft SDKs\Windows\v6.0
C:\Program Files\Microsoft Visual Studio 8\VC
C:\Python26
C:\WINDDK\7600.16385.1
C:\z_Build2
? curl-7.20.1
? gsoap-2.7
? mingw
? openssl-0.9.8n
? qt-everywhere-opensource-src-4.6.2
? SDL-1.2.14
? VirtualBox-3.1.6_OSE
Code: Select all
Start -> Programs -> Microsoft Visual Studio 2005 -> Visual Studio Tools -> Visual Studio 2005 x64 Win64- Command Prompt
Code: Select all
"C:\Program Files\Microsoft DirectX SDK (November 2008)\Utilities\Bin\dx_setenv.cmd"
set PATH=%PATH%;C:\z_Build2\qt-everywhere-opensource-src-4.6.2\bin;
cd C:\z_Build2\qt-everywhere-opensource-src-4.6.2
configure ^
-release -opensource -shared -no-ltcg -no-fast ^
-exceptions -accessibility -stl -no-sql-sqlite ^
-no-qt3support -no-openvg -graphicssystem raster ^
-qt-zlib -qt-gif -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 ^
-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
nmake
Code: Select all
set PATH=%PATH%;C:\Perl\bin;
cd C:\z_Build2\openssl-0.9.8n
perl Configure VC-WIN64A --prefix=C:/z_Build2/openssl
ms\do_win64a
nmake -f ms\ntdll.mak
nmake -f ms\ntdll.mak test
nmake -f ms\ntdll.mak install
Code: Select all
Edit -> C:\z_Build2\curl-7.20.1\lib\Makefile.vc8
Change:
!IFNDEF MACHINE
MACHINE = X86
!ENDIF
to
!IFNDEF MACHINE
MACHINE = X64
!ENDIF
Code: Select all
cd C:\z_Build2\curl-7.20.1
pushd lib
nmake /f Makefile.vc8 cfg=release-dll ^
> C:\z_Build2\curl-7.20.0.build-dll.log 2>&1
popd
xcopy /E /I ^
C:\z_Build2\curl-7.20.1\include ^
C:\z_Build2\libcurl\include
pushd C:\z_Build2\curl-7.20.0\lib\release-dll
copy libcurl.dll C:\z_Build2\libcurl
copy libcurl_imp.lib C:\z_Build2\libcurl\libcurl.lib
popd
Code: Select all
C:\z_Build2\VirtualBox-3.1.6_OSE>cscript configure.vbs --with-DDK="C:\WINDDK\7600.16385.1" --with-DXSDK="C:\Program Files (x86)\Microsoft DirectX SDK (February 2010)" --with-libSDL=C:\z_Build2\SDL-1.2.14 --with-MinGW=C:\z_Build2\mingw --with-Qt4=C:\z_Build2\qt-everywhere-opensource-src-4.6.2 --with-SDK="C:\Program Files\Microsoft SDKs\Windows\v6.0" --with-python=C:\Python26 --with-openssl=C:\z_Build2\openssl --with-libcurl=C:\z_Build2\libcurl
By the way VB compilation ends after 5 secs with an error so my hacks are useless
I hope this will give everybody a start position. Now it is important to get the rest done.
If someone know whitch parts must be changed in the configure script, this would be very helpfull. I will test some changes in the next days.
If someone see failures in my current way (how i have compiled ,openssl, curl, ...), please correct me (and maybe say why this would not work).
keros