Difference between revisions of "Compile In Windows"

From FreeOrionWiki
Jump to: navigation, search
(Getting Visual Studio)
(Redirected page to Compile)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==Prerequisites==
+
#REDIRECT [[Compile]]
 
+
===Compiler===
+
 
+
FreeOrion can be compiled on Windows with Visual Studio 2013.  Premade Visual Studio project files are available in the source code repository, and the SDK provides precompiled dependencies for the compiler.  Project files may also be generated using CMake.
+
 
+
====Getting Visual Studio====
+
 
+
Visual Studio Community and Express can be [https://www.visualstudio.com/downloads/download-visual-studio-vs#DownloadFamilies_2 downloaded from Microsoft here].  If you're not sure which edition to pick, take the latest one for Windows Desktop.  You will need a Microsoft account to proceed, if you don't have one, you will have to register one.
+
 
+
===Version Control System===
+
 
+
The FreeOrion project uses [[wikipedia:Git_(software)|Git]] for version control. To be able to use the SDK, you need to install the git command line client (the most recent release for Windows can be downloaded [http://git-scm.com/download/win here]). '''Important:''' When installing the git command line client, be sure to select the option that will include the git executable in your command path, otherwise the batch script which sets up the SDK will fail.
+
 
+
==Compilation Instructions==
+
 
+
===Step by Step===
+
 
+
# First, get the [http://sourceforge.net/projects/freeorion/files/FreeOrion%20SDK FreeOrion SDK] for Windows from SourceForge. (~30MB)
+
# Unpack the SDK to a directory of your choice.
+
# Run the ''bootstrap.bat'' file located in the root folder of the unpacked SDK. This will (among other things) download and check out the source code from GitHub ([https://github.com/freeorion/freeorion freeorion/freeorion] repository, checked out branch will be "master").
+
# Depending on which version of Visual Studio you're using, open FreeOrion\msvc2013\FreeOrion.sln
+
# Use Build->Build Solution to build all projects' release targets.
+
 
+
Compilation may take some time: ~1 hour on Core i3 370M with 6GB RAM, ~20 min on Core i7 4710HQ with 8 GB RAM.
+
 
+
===Software Dependencies===
+
 
+
The majority of FreeOrion dependencies can be found precompiled and packaged in the FreeOrion Windows SDK, from the [http://sourceforge.net/projects/freeorion/files/FreeOrion%20SDK/ SourceForge FreeOrion SDK page].
+
 
+
The SDK includes compiled libraries, headers and DLLs for: zlib, Python, Boost, FreeType, GLEW, libpng, libjpeg, OpenAL, ALUT, libvorbis, and libogg, SDL2.
+
 
+
==Runtime Errors==
+
 
+
Please report runtime errors in the [http://www.freeorion.org/forum/viewtopic.php?f=9&t=1787 forums].
+

Latest revision as of 14:41, 22 April 2020

Redirect to: