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

From The DarkMod Wiki
Jump to navigationJump to search
(New page: 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. Once you have VC++ installed, there is a pre...)
 
Line 15: Line 15:
== See also / Links ==
== See also / Links ==
* [[DarkRadiant - Compilation Guide]]
* [[DarkRadiant - Compilation Guide]]
* [http://www.microsoft.com/express/Downloads/#2010-All MS VC++ 2010 Express Edition] (choose Offline Install to get an ISO)
* [http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express-iso MS VC++ 2010 Express Edition]


{{coding}}
{{coding}}
{{darkradiant|sort=Compilation}}
{{darkradiant|sort=Compilation}}

Revision as of 12:01, 12 October 2011

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.

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.

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.

See the Compilation Guide for how to checkout the sources plus dependencies.

svn co https://darkradiant.svn.sourceforge.net/svnroot/darkradiant/trunk/darkradiant/

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.

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.

See also / Links