Compiling with Microsoft Visual C++ (OpenXcom)

From UFOpaedia
Revision as of 15:52, 28 May 2015 by RaTcHeT302 (talk | contribs) (Microsoft Visual Studio is only on Windows, duh.)
Jump to navigation Jump to search

Setting up

  1. Download GitHub for Windows.
  2. Download the source code from here, by pushing Clone in Desktop.

Compiling

  1. Download and install Visual Studio. A free version is available here.
  2. Download the following dependencies for the appropiate version of Visual Studio.
  1. Extract the files to <path-to-repo>\OpenXcom\
  2. Navigate to <path-to-repo>\OpenXcom\src and open OpenXcom.2010.sln.
  3. Compile and run the project by pressing the Start Debugging button with a green arrow on the top toolbar.
  • Certain anti-viruses such as Avast may stop the project from building. Add the OpenXcom folder as an expection.
  • See the Visual Studio Documentation for more information on the IDE.

FAQ

Q: I get a Failed To Load Palette error.
A: Copy the X-Com resources to your bin folder, see Installing for more details.

Q: I get an error about afxres.h not being found.
A: You're using a Visual C++ Express Edition which doesn't support Resource files, just remove resource.h and OpenXcom.rc from the project.

Q: I get an error about MSVCR100.DLL not being found.
A: You're using the pre-built dependencies with an old Visual C++ version so you need to install the VC++ 2010 Redist.

Q: I get a warning about Platform 'x64' cannot be found.
A: You're using a Visual C++ Express Edition which doesn't support x64 builds, but you can still compile for Win32.