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

From VDrift
Jump to: navigation, search
(Duplicated by Compiling)
 
(37 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Windows==
+
#REDIRECT [[Compiling]]
In order to build VDrift for Windows, you must set up the tools to build the software, build VDrift, and then install VDrift into a runtime folder.
 
 
 
===Source and Data===
 
====VDrift====
 
Get the VDrift source code and data, either from the latest source release on the [http://sourceforge.net/project/showfiles.php?group_id=137283 VDrift downloads page], or the [[Getting the development version#Windows|development version]].
 
{{note|From this point on the directory in which you checked out VDrift will be referred to as the root VDrift directory. The development environment setup script puts this in an environment variable $VDRIFT_DIR.}}
 
 
 
====Boost====
 
Download a Boost distribution from this link:
 
 
 
http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=8041&release_id=679861
 
 
 
Uncompress Boost, and move the boost_1_39_0/boost folder to VDrift/tools/win/include
 
 
 
====ASIO====
 
Download the ASIO distribution from this link:
 
 
 
http://sourceforge.net/project/showfiles.php?group_id=122478&package_id=134200&release_id=665620
 
 
 
Uncompress ASIO, and move asio-1.4.1/include/* to VDrift/tools/win/include
 
 
 
====cURL====
 
* Download cURL source(curl-7.21.4.zip) from this link: http://curl.haxx.se/download.html
 
* Import lib/vc6libcurl.dsp into codeblocks.
 
* In Build options/Linker Settings delete "DLL-Debug/libcurld_imp and --implib DLL-Debug/libcurld_imp.lib
 
* Build Win32 DLL Release
 
* Copy lib/DLL-Release/libcurl.dll to vdrift/tools/win/dll
 
* Copy include/curl to vdrift/tools/win/include
 
 
 
===Install and Configure Build Tools===
 
{{note|The versions listed for these tools were the ones used at time of this writing (current stable versions of all packages), there may be new versions. This is a known working configuration.}}
 
 
 
====MinGW====
 
 
 
*  Download [http://sourceforge.net/projects/mingw/files/ latest MinGW] or [http://www.tdragon.net/recentgcc/ TDM's GCC/mingw32]
 
* Run the installer.
 
* When asked to select components for install, you only need the base system and the g++ compiler.
 
* Choose the default install location.
 
* Your PATH Environment Variable should contain the MinGW bin path(e.g. C:\MinGW\bin;).
 
 
 
====Building with Code::Blocks====
 
 
 
* [http://forums.codeblocks.org/index.php/board,20.0.html Download Code::Blocks nightly]
 
* Open the project file in tools\win\vdrift.cbp and build vdrift.
 
 
 
====Building with Scons====
 
{{note|SCons will prefer the MSVC tools over the MinGW tools. So if you have Microsoft Visual Studio installed, you might have problems building VDrift with Scons.}}
 
* [http://www.python.org/ftp/python/2.6.4/python-2.6.4.msi Download Python 2.6.4]
 
* Run the installer and accept all the defaults.
 
 
 
* [http://www.scons.org/ 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;).
 
 
 
=====Building with batch script=====
 
* 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
 
 
 
=====Building with MSYS=====
 
 
 
* [http://downloads.sourceforge.net/mingw/MSYS-1.0.10.exe?modtime=1079444447&big_mirror=1 Download MSYS 1.0.10]
 
* Run the installer.
 
* Choose the default install location.
 
* When presented with a terminal asking if you want to continue with the post-install, type '''y''', then press enter.
 
* When asked if MinGW is installed, enter '''C:/MinGW''', then press enter.
 
* The MSYS post install script should find your MinGW installation now and configure itself.
 
 
 
* [http://downloads.sourceforge.net/mingw/msysDTK-1.0.1.exe?modtime=1041430674&big_mirror=1 Download MSYS-DTK 1.01]
 
* Run the installer and accept all the defaults.
 
 
 
* To build VDrift you must use the MSYS terminal to run the build script.
 
* Launch MSYS by clicking '''Start''' -> '''Programs''' -> '''MinGW''' -> '''MSYS''' -> '''msys'''.
 
* Change directories to the spot where you checked VDrift out. If your username is '''Administrator''' and you put it on your Desktop in a directory named '''VDrift''', you would enter this command:
 
cd /c/Documents\ and\ Settings/Administrator/Desktop/VDrift
 
* Now, to build VDrift, run the command:
 
sh tools/win/bin/build_vdrift.sh
 
 
 
===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.
 
 
 
[[Category:Development]]
 
[[Category:Review]]
 
[[Category:Operating Systems:Windows]]
 

Latest revision as of 07:26, 27 August 2012

Redirect to: