<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://temp.ufopaedia.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Xrabohrok</id>
	<title>UFOpaedia - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://temp.ufopaedia.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Xrabohrok"/>
	<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/Special:Contributions/Xrabohrok"/>
	<updated>2026-05-01T10:05:08Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=Compiling_with_Microsoft_Visual_C%2B%2B_(OpenXcom)&amp;diff=46330</id>
		<title>Compiling with Microsoft Visual C++ (OpenXcom)</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=Compiling_with_Microsoft_Visual_C%2B%2B_(OpenXcom)&amp;diff=46330"/>
		<updated>2013-05-08T21:42:58Z</updated>

		<summary type="html">&lt;p&gt;Xrabohrok: /* Installing dependencies */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting the source ==&lt;br /&gt;
&lt;br /&gt;
You will need a Windows Git client to grab the latest source code.&lt;br /&gt;
&lt;br /&gt;
=== TortoiseGit ===&lt;br /&gt;
&lt;br /&gt;
# Install [http://code.google.com/p/msysgit Git for Windows]. When asked, select &#039;&#039;&#039;Use Git Bash only&#039;&#039;&#039;, &#039;&#039;&#039;Use OpenSSH&#039;&#039;&#039; and &#039;&#039;&#039;Checkout Windows-style, commit Unix-style line endings&#039;&#039;&#039;.&lt;br /&gt;
# Install [http://code.google.com/p/tortoisegit/ TortoiseGit]. Restart the computer if asked.&lt;br /&gt;
# Configure TortoiseGit by right-clicking any folder and selecting &#039;&#039;&#039;TortoiseGit &amp;gt; Settings&#039;&#039;&#039;. Select &#039;&#039;&#039;Git &amp;gt; Config&#039;&#039;&#039;, fill out your &#039;&#039;&#039;Username&#039;&#039;&#039; and &#039;&#039;&#039;E-mail&#039;&#039;&#039; as will be displayed in your commits, and make sure &#039;&#039;&#039;AutoCrlf&#039;&#039;&#039; and &#039;&#039;&#039;SafeCrlf&#039;&#039;&#039; are checked.&lt;br /&gt;
# Go to the folder where you wanna put the code, right-click on it and select &#039;&#039;&#039;Git Clone&#039;&#039;&#039;.&lt;br /&gt;
# Fill out the &#039;&#039;&#039;Url&#039;&#039;&#039; to the repository (the official one or your own fork), check the &#039;&#039;&#039;Directory&#039;&#039;&#039; is correct and press &#039;&#039;&#039;OK&#039;&#039;&#039;. Better get a drink, it&#039;s gonna be a while.&lt;br /&gt;
# In the future, you can stay up to date by right-clicking your folder and selecting &#039;&#039;&#039;Git Sync&#039;&#039;&#039; to &#039;&#039;&#039;Pull&#039;&#039;&#039; the latest code.&lt;br /&gt;
&lt;br /&gt;
=== Git Extensions ===&lt;br /&gt;
&lt;br /&gt;
# Install [http://code.google.com/p/gitextensions/ Git Extensions] for your system.&lt;br /&gt;
# TODO&lt;br /&gt;
&lt;br /&gt;
== Installing dependencies ==&lt;br /&gt;
&lt;br /&gt;
Put the required library files in a &#039;&#039;&#039;deps&#039;&#039;&#039; folder inside the codebase folder(above the src folder) with the following structure:&lt;br /&gt;
* &#039;&#039;&#039;deps\include\SDL&#039;&#039;&#039; - SDL headers&lt;br /&gt;
* &#039;&#039;&#039;deps\include\yaml-cpp&#039;&#039;&#039; - yaml-cpp headers&lt;br /&gt;
* &#039;&#039;&#039;deps\lib\Win32&#039;&#039;&#039; - library x86 DLL and LIB files&lt;br /&gt;
* &#039;&#039;&#039;deps\lib\x64&#039;&#039;&#039; - library x64 DLL and LIB files&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can grab the [http://openxcom.org/download/dev/openxcom-deps-win-vc.zip pre-compiled dependencies] with all the files already in place, and extract it to your codebase folder.&lt;br /&gt;
&lt;br /&gt;
== Compiling and running ==&lt;br /&gt;
&lt;br /&gt;
# Install Microsoft Visual C++ (part of Visual Studio). If you don&#039;t have it, you can get [http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express VC++ 2010 Express Edition] for free.&lt;br /&gt;
# Go to the &#039;&#039;&#039;src&#039;&#039;&#039; subfolder inside your codebase folder and open &#039;&#039;&#039;OpenXcom.2010.sln&#039;&#039;&#039; if you have VC++ 2010 or &#039;&#039;&#039;OpenXcom.2008.sln&#039;&#039;&#039; if you have VC++ 2008. You might get issues using older versions, but you can try just editing the version number in &#039;&#039;&#039;OpenXcom.2008.sln&#039;&#039;&#039; and &#039;&#039;&#039;OpenXcom.2008.vcproj&#039;&#039;&#039; to match.&lt;br /&gt;
# Compile and run the project by pressing the &#039;&#039;&#039;Start Debugging&#039;&#039;&#039; button with a green arrow on the top toolbar.&lt;br /&gt;
# See the [http://msdn.microsoft.com/library/dd831853.aspx Visual Studio Documentation] for more information on the IDE.&lt;br /&gt;
&lt;br /&gt;
== FAQ ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q: I get a Failed To Load Palette error.&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
A: Copy the X-Com resources to your &#039;&#039;&#039;bin&#039;&#039;&#039; folder, see [[Installing (OpenXcom)|Installing]] for more details.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q: I get an error about afxres.h not being found.&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
A: You&#039;re using a Visual C++ Express Edition which doesn&#039;t support Resource files, just remove &#039;&#039;&#039;resource.h&#039;&#039;&#039; and &#039;&#039;&#039;OpenXcom.rc&#039;&#039;&#039; from the project.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q: I get an error about MSVCR100.DLL not being found.&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
A: You&#039;re using the pre-built dependencies with an old Visual C++ version so you need to install the [http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=5555 VC++ 2010 Redist].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q: I get a warning about Platform &#039;x64&#039; cannot be found.&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
A: You&#039;re using a Visual C++ Express Edition which doesn&#039;t support x64 builds, but you can still compile for Win32.&lt;br /&gt;
&lt;br /&gt;
[[Category:OpenXcom]]&lt;/div&gt;</summary>
		<author><name>Xrabohrok</name></author>
	</entry>
</feed>