Compile for Windows

From UFO:AI
(Difference between revisions)
Jump to: navigation, search
m (Reverted edits by Mattn (talk) to last revision by Mutonufoai)
Line 1: Line 1:
== Build environment setup ==
 
Download the following tools:
 
* {{http|tdm-gcc.tdragon.net/download|TDM-GCC On-demand-installer}}
 
* {{http|www.codeblocks.com|Code::Blocks}}
 
 
Start the TDM-GCC on-demand-installer and select mingw64. After you did that, install Code::Blocks - it should find the TDM-GCC installation automatically. Now it's time to download some needed libs:
 
 
* {{http|www.gtk.org/download/win32.php|Gettext-Dev Package}}
 
Extract that package into the Mingw folder of your TDM-GCC installation.
 
 
 
== Building UFO:AI ==
 
== Building UFO:AI ==
Start codeblocks and open the ufo.workspace file from your ufoai [[git]] clone. Now you should be able to compile ufoai.
+
You must first compile the source code. We recommend using Code::Blocks for this. There is also an (experimental) compile guide using Eclipse CDT with MSYS/MinGW. More instructions can be found here:
 
+
* [[MinGW Win32]]
== More detailed information ==
+
... if you need them (they might be outdated but might still contain some useful hints):
+
 
* [[MinGW Win32 (guided with GUI)]]
 
* [[MinGW Win32 (guided with GUI)]]
 
* [[Code::Blocks]]
 
* [[Code::Blocks]]
Line 30: Line 18:
  
 
==Links==
 
==Links==
* {{http|www.microsoft.com/downloads/details.aspx?FamilyID=bd02c19c-1250-433c-8c1b-2619bd93b3a2&DisplayLang=en|Application Verfication Tool}}
+
* [http://www.microsoft.com/downloads/details.aspx?FamilyID=bd02c19c-1250-433c-8c1b-2619bd93b3a2&DisplayLang=en Application Verfication Tool]
  
 
[[Category:Coding]]
 
[[Category:Coding]]

Revision as of 12:19, 14 June 2014

Building UFO:AI

You must first compile the source code. We recommend using Code::Blocks for this. There is also an (experimental) compile guide using Eclipse CDT with MSYS/MinGW. More instructions can be found here:

Building installer

NOTE: These instructions are only for people who want to build a distributable installer package. If you just want to compile the game for yourself, you do not need to do this.

We use a nsis installerscript. You can find it in contrib/installer/.

Linux
run make wininstaller
Windows
Install nsis and right click the contrib/installer/ufoai.nsi file to compile the installer.
Also run the compile_maps.bat file to generate the pk3 archives.
MacOSX
ADDME

Links

Personal tools