Update build instructions

TextMate now require Cap’n proto and (to build Cap’n Proto) a clang newer than what comes with Xcode 4.x.
This commit is contained in:
Allan Odgaard
2013-08-18 17:25:11 +02:00
parent 8402f713cf
commit d94a4b6484

View File

@@ -44,6 +44,9 @@ To build the source the following must first be installed on your system:
* [boost][] — portable C++ source libraries
* [multimarkdown][] — marked-up plain text compiler
* [mercurial][] — distributed SCM system
* [Capn Proto][capnp] — serialization library
You need to manually install [Capn Proto][capnp], the rest can be installed via [MacPorts][] or [homebrew][].
To install using [MacPorts][] run:
@@ -53,12 +56,16 @@ If `port` fails with a build error then likely you need to agree (system-wide) t
sudo xcodebuild -license
You can also install the above using [homebrew][]:
To install using [homebrew][] run:
brew install ragel boost multimarkdown hg ninja
In practice `hg` ([mercurial][]) is only required for the SCM librarys tests so you can skip this dependency if you dont mind a failing test.
### Clang 3.2
The version of clang included with Xcode 4.x is not recent enough to build the [Capn proto][capnp] library so you need to manually install a newer version of clang. See [Capn proto][capnp] install instructions.
### OS X 10.7 (Lion)
If you are on OS X 10.7 you need `pgrep` and `pkill` (used by the “relaunch” build targets). To install using [MacPorts][]:
@@ -69,16 +76,6 @@ Or using [homebrew][]:
brew install proctools
### Clang 3.2 / 4.0
You also need a recent version of clang. This should be included with Xcode 4.4+ available for both Lion and Mountain Lion.
If you have multiple versions of Xcode installed, be sure to run `sudo xcode-select -switch` so that `./configure` finds the most recent.
We also require the [libc++][] library, so while you can install clang from MacPorts or Homebrew, youd need to also install this library (or make it use the one from Xcode).
[libc++]: http://libcxx.llvm.org/
## Building from within TextMate
You should install the [Ninja][NinjaBundle] and [CxxTest][] bundles. Both can be installed via _Preferences__Bundles_.
@@ -136,6 +133,7 @@ TextMate is a trademark of Allan Odgaard.
[multimarkdown]: http://fletcherpenney.net/multimarkdown/
[ragel]: http://www.complang.org/ragel/
[mercurial]: http://mercurial.selenic.com/
[capnp]: http://kentonv.github.io/capnproto/
[clang 3.2]: http://clang.llvm.org/
[MacPorts]: http://www.macports.org/
[homebrew]: http://mxcl.github.com/homebrew/