HOW-TO: Build DftD with Visual C++
This is a how-to build Danger From The Deep source using Visual C++ 2005 Express Edition for Windows
Requirements
- Install Visual C++ 2005 Express Edition ( available here )
- Install Microsoft Platform SDK ( available here )
- Configure Visual C++ to use the PSDK ( available here )
- Download & install SDL for VC++ ( available here )
- Download & install SDL_Image ( available here )
- Download & install SDL_Mixer ( available here )
- Download & install SDL_Net ( available here )
- Download & install FFTW3 ( available here )
Building
- Download latest source of Danger From The Deep from CVS repository ( instructions are available here )
- Unzip vc2005.zip and extract the VC++ solution files & projects ( zip is available here or from the CVS tree )
- Copy the unzipped vc2005 folder along side the danger deep src directory, if the source is in "c:\games\dangerdeep-0.2.0\src" then the vc2005 directory containing the solution and projects should be copied to "c:\games\dangerdeep-0.2.0\vc2005"
- Create two new user environment variables named DDINCLUDE and DDLIB (Control Panel -> System -> Env Variables).
For DDINCLUDE set the value as:
"drive:\path\to\SDL\include";"drive:\path\to\SDL_Image\include";"drive:\path\to\SDL_Mixer\include";"drive:\path\to\SDL_Net\include";"drive:\path\to\FFTW3\include";"drive:\path\to\gl\include";
For example:
"c:\ddbuild\SDL\include";"c:\ddbuild\SDL_Image\include";"c:\ddbuild\SDL_Mixer\include";"c:\ddbuild\SDL_Net\include";"c:\ddbuild\FFTW3";"C:\Program Files\Microsoft Platform SDK\Include\gl";
For DDLIB set the value as:
"drive:\path\to\SDL\lib";"drive:\path\to\SDL_Image\lib";"drive:\path\to\SDL_Mixer\lib";"drive:\path\to\SDL_Net\lib";"drive:\path\to\FFTW3\lib";
For example:
"c:\ddbuild\SDL\lib";"c:\ddbuild\SDL_Image\lib";"c:\ddbuild\SDL_Mixer\lib";"c:\ddbuild\SDL_Net\lib";"c:\ddbuild\FFTW3";
- Launch DDVC2005.sln and build the game executable's in release or debug mode
- Post build the executable's will be in vc2005\debug or vc2005\release folder.
- Copy the exes to the dangerdeep install dir and run the game :-)
* Configuration of VC++ Solution & Projects for building DangerDeep (Based on version 0.2.0)
____________________________________________________________________________________________
- VC++ Solution File Name = DDVC2005.sln (path = csvroot/dangerdeep-0.2.0/vc2005/)
- Project 1 = tinyxml.vcproj (output = Win32 static library, path = vc2005/tinyxml/)
- Project 2 = oglext.vcproj (output = Win32 static library, path = vc2005/olgext/)
- Project 3 = dftdmedia.vcproj (output = Win32 static library, path = vc2005/dftdmedia/)
- Project 4 = bsplinetest.vcproj (output = Win32 console exe, path = vc2005/bsplinetest/)
- Project 5 = crosssection.vcproj (output = Win32 windows exe, path = vc2005/crosssection/)
- Project 6 = damagemodel.vcproj (output = Win32 windows exe, path = vc2005/damagemodel/)
- Project 7 = dangerdeep.vcproj (output = Win32 windows exe, path = vc2005/dangerdeep/)
- Project 8 = oceantest.vcproj (output = Win32 console exe, path = vc2005/oceantest/)
- Project 9 = portal.vcproj (output = Win32 windows exe, path = vc2005/portal/)
- Project 10 = viewmodel.vcproj (output = Win32 windows exe, path = vc2005/viewmodel/)