Difference between revisions of "Old Method of Compiling on Windows"

From VDrift
Jump to: navigation, search
Line 3: Line 3:
 
* Get the VDrift source code and data [[Getting the development version#Windows|development version]]. You can download certain vdrift revisions from gihub/sourceforge web interfaces. For source select a tag and click download https://github.com/VDrift/vdrift and https://github.com/VDrift/vdrift-win. Place vdrift-win into vdrift directory. For data select a tag and download the tarball http://vdrift.svn.sourceforge.net/viewvc/vdrift/tags/. Place data into vdrift directory.
 
* Get the VDrift source code and data [[Getting the development version#Windows|development version]]. You can download certain vdrift revisions from gihub/sourceforge web interfaces. For source select a tag and click download https://github.com/VDrift/vdrift and https://github.com/VDrift/vdrift-win. Place vdrift-win into vdrift directory. For data select a tag and download the tarball http://vdrift.svn.sourceforge.net/viewvc/vdrift/tags/. Place data into vdrift directory.
  
==Building with Code::Blocks==
+
==Building with Code::Blocks/MinGW==
* Download [http://sourceforge.net/projects/mingw/files/ latest MinGW]. When asked to select components for install, you only need the base system and the g++ compiler. Your PATH Environment Variable should contain the MinGW bin path(e.g. C:\MinGW\bin;).
+
* Download [http://sourceforge.net/projects/mingw/files/ latest MinGW]. When asked to select components for install, you only need the base system and the g++ compiler.
 +
* Your PATH Environment Variable should contain the MinGW bin path(e.g. C:\MinGW\bin;).
 
* Download [http://forums.codeblocks.org/index.php/board,20.0.html Code::Blocks nightly]
 
* Download [http://forums.codeblocks.org/index.php/board,20.0.html Code::Blocks nightly]
 
* Run "vdrift-win\premake4 codeblocks" command line from vdrift directory to generate the solution.
 
* Run "vdrift-win\premake4 codeblocks" command line from vdrift directory to generate the solution.

Revision as of 14:02, 1 September 2011

Prerequisites

VDrift

Building with Code::Blocks/MinGW

  • Download latest MinGW. When asked to select components for install, you only need the base system and the g++ compiler.
  • Your PATH Environment Variable should contain the MinGW bin path(e.g. C:\MinGW\bin;).
  • Download Code::Blocks nightly
  • Run "vdrift-win\premake4 codeblocks" command line from vdrift directory to generate the solution.

Building with MSVC

  • Run "vdrift-win\premake4 vs2008" or "vdrift-win\premake4 vs2010" command line from vdrift directory to generate the appropriate solution.

Building with Scons(broken)

Note: SCons will prefer the MSVC tools over the MinGW. So if you have Microsoft Visual Studio installed, you might have problems building VDrift with Scons.
  • Download latest MinGW. When asked to select components for install, you only need the base system and the g++ compiler.
  • Your PATH Environment Variable should contain the MinGW bin path(e.g. C:\MinGW\bin;).
  • Download Python 2.6.4
  • Run the installer and accept all the defaults.
  • Download SCons 1.20
  • Run the installer. It should find your Python installation, accept all defaults.
  • Your PATH Environment Variable should contain the Python and Python scripts paths(e.g. C:\Python26;C:\Python26\Scripts;).
  • Open a new CMD prompt by choosing START, RUN, cmd, OK.
  • Change directories to the spot where you checked VDrift out.
  • Now, to build VDrift, run the command:
tools/win/bin/build_vdrift.bat

Run VDrift

  • Move or copy the VDrift data to a directory named data within the root VDrift directory. This can be done in a few different ways, depending on how you obtained the VDrift data. You could check it out directly here, or you could check it out in another place and use TortoiseSVN to export it to this location. If you downloaded a VDrift data archive you can extract it here, or extract it elsewhere and then move or copy the necessary files to runtime. In the end, just make sure you have a directory structure with paths like VDrift/data/cars/, VDrift/data/tracks/, etc.
  • Now, to run VDrift, you just need to double-click on the file vdrift.exe within the root VDrift directory.