DarkRadiant - Compiling in Visual C++ 2010: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
(we're using git for the main code)
No edit summary
Line 1: Line 1:
You'll need a working VC++ build environment to open and compile the DarkRadiant solution file. See below for a link to the Microsoft website.
This article describes the specifics of how to compile DarkRadiant in Visual Studio from source. To learn how and where to acquire and set up the sources, please refer to the main article: [[DarkRadiant - Compilation Guide]]


Once you have VC++ installed, there is a prefabricated solution file (.sln) ready for you in the '''tools/msvc2010''' folder. Hit Ctrl-Shift-B in VC++ to start building the sources.
You can use the free Express edition to compile DarkRadiant. See below for a link to the Microsoft website.


The project output files are setup so that the binaries get automatically installed in the install/, modules/ and plugins/ folders. Also, all dependencies from the w32deps/ folder (see previous section) are automatically copied into the install/ folder during the post-build event.
Once you have VC++ installed open the DarkRadiant solution file (.sln) which is ready for you in the '''tools/msvc2010''' folder. Hit Ctrl-Shift-B in VC++ to start building the sources.


See the [[DarkRadiant - Compilation Guide|Compilation Guide]] for how to checkout the sources plus dependencies.
The project output files are set up such that the binaries get automatically installed in the install/, modules/ and plugins/ folders. Also, all dependencies from the w32deps/ folder (see previous section) are automatically copied into the install/ folder during the post-build event.
git clone git://github.com/orbweaver/DarkRadiant.git
 
If you cloned the sources to C:\Games\DarkRadiant, the application binary will be placed in C:\Games\DarkRadiant\install\DarkRadiant.exe.


== Compiling for Windows x64 ==
== Compiling for Windows x64 ==
To build a package for the x64 target, make sure to select the ''x64'' platform from the configuration manager's dropdown box. Choose a ''release'' build and hit ''Build solution'', the rest should be automatic. This process requires the w64deps folder to be checked out below the main DarkRadiant checkout folder, see the main [[DarkRadiant - Compilation Guide]] article for details.
To build a package for the x64 target, make sure to select the ''x64'' platform from the configuration manager's dropdown box (located in Visual Studio's toolbar). Choose a ''release'' build and hit ''Build solution'', the rest should be automatic. Just like the 32 Bit build expects the w32deps folder to be locatede along the sources, the x64 build process requires the w64deps folder to be present, see the main [[DarkRadiant - Compilation Guide]] article for details.


You need to have a working Visual Studio 2010 build environment supporting x64 compilation. If you're missing that platform option, make sure to modify the existing VC++ 2010 installation using the setup application and check the x64 compilers option.
You need to have a working Visual Studio 2010 build environment supporting x64 compilation. If you're missing that platform option, make sure to modify the existing VC++ 2010 installation using the setup application and check the x64 compilers option, it might not be activated by default.


== See also / Links ==
== See also / Links ==

Revision as of 17:34, 22 August 2012

This article describes the specifics of how to compile DarkRadiant in Visual Studio from source. To learn how and where to acquire and set up the sources, please refer to the main article: DarkRadiant - Compilation Guide

You can use the free Express edition to compile DarkRadiant. See below for a link to the Microsoft website.

Once you have VC++ installed open the DarkRadiant solution file (.sln) which is ready for you in the tools/msvc2010 folder. Hit Ctrl-Shift-B in VC++ to start building the sources.

The project output files are set up such that the binaries get automatically installed in the install/, modules/ and plugins/ folders. Also, all dependencies from the w32deps/ folder (see previous section) are automatically copied into the install/ folder during the post-build event.

If you cloned the sources to C:\Games\DarkRadiant, the application binary will be placed in C:\Games\DarkRadiant\install\DarkRadiant.exe.

Compiling for Windows x64

To build a package for the x64 target, make sure to select the x64 platform from the configuration manager's dropdown box (located in Visual Studio's toolbar). Choose a release build and hit Build solution, the rest should be automatic. Just like the 32 Bit build expects the w32deps folder to be locatede along the sources, the x64 build process requires the w64deps folder to be present, see the main DarkRadiant - Compilation Guide article for details.

You need to have a working Visual Studio 2010 build environment supporting x64 compilation. If you're missing that platform option, make sure to modify the existing VC++ 2010 installation using the setup application and check the x64 compilers option, it might not be activated by default.

See also / Links