Menu

compiler setup

compile (2)
Nightinggale Ted McBride

This page tells how to install the compiler. Unlike the other tutorial pages, this one is a one time event if you did it correctly. Also the result will make you able to compile most if not all mods for both civ4 and civ4col.

This is a modified version of the guide from Civfanatic's modwiki. However nearly every step is skipped or modified because this guide assumes you have the source from git where most of the work has already been done.

First you download and install Microsoft Visual C++ Toolkit 2003

Next you need to install some libraries.
msvcrt.lib
msvcrtd.lib
msvcprt.lib
Put those 3 files in C:\Program Files (x86)\Microsoft Visual C++ Toolkit 2003\lib

Microsoft Visual C++ Toolkit 2003 and the 3 libraries are hosted by civfanatics as they are no longer available from Microsoft.

Next you download and install Microsoft Visual C++ 2010.
Note: Microsoft removed this compiler from their server. Leoreth from civfanatics downloaded it while it was still there and is providing it for the rest of us.

You have to register at Microsoft (for free) within 30 days or the compiler will stop working.

You need to install Strawberry Perl. Pick the 32/64 bit version, which matches your system (presumably 64 bit).

NMAKE
For some unknown reason VC++2010 installs nmake.exe, but fails to provide itself access to it. You will have to do this manually.

The file is located in:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin

The correct approach is to add the above location to your path. Here is a link to help guide you through this: http://www.computerhope.com/issues/ch000549.htm

However you can also copy the file and place it next to sourceDLL\DLL_Sources\Colonization Mod Collection.vcxproj
If you copy, you have to do that for each clone and each mod. The path setup is done in windows itself and applies to all current and future mods.

If you have downloaded M:C's source code and want to compile directly from there you will also need copy the Boost-1.32.0 and Python24 folders from vanilla CvGameCoreDLL into the DLL_Sources. These two folders should have come with your install of Colonization.

You are now ready to [compile]


Related

Wiki: compile

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.