Difference between revisions of "How to build VCMI (macOS)"

From VCMI Project Wiki
Jump to: navigation, search
Line 10: Line 10:
 
* Checkout source via git:
 
* Checkout source via git:
 
<pre>git clone https://github.com/vcmi/vcmi.git</pre>
 
<pre>git clone https://github.com/vcmi/vcmi.git</pre>
  or via svn:
+
or via svn:
 
<pre>svn checkout https://vcmi.svn.sourceforge.net/svnroot/vcmi/trunk/ vcmi</pre>
 
<pre>svn checkout https://vcmi.svn.sourceforge.net/svnroot/vcmi/trunk/ vcmi</pre>
 +
* Than generate Xcode project:
 +
<pre>cd vcmi
 +
cmake -G .</pre>

Revision as of 15:12, 12 January 2013

Prerequisites

  • Xcode. Can be downloaded from Mac App Store.
  • CMake. Can be downloaded from (link) or installed from MacPorts
  • Any git or Subversion client you prefer.
  • Archive with prebuilt libraries and frameworks (link)

Preparing place

  • Unzip downloaded archive
  • Open terminal and go to extracted xcode-pack directory
  • Checkout source via git:
git clone https://github.com/vcmi/vcmi.git

or via svn:

svn checkout https://vcmi.svn.sourceforge.net/svnroot/vcmi/trunk/ vcmi
  • Than generate Xcode project:
cd vcmi
cmake -G .