mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
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:
20
README.md
20
README.md
@@ -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
|
||||
* [Cap’n Proto][capnp] — serialization library
|
||||
|
||||
You need to manually install [Cap’n 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 library’s tests so you can skip this dependency if you don’t mind a failing test.
|
||||
|
||||
### Clang 3.2
|
||||
|
||||
The version of clang included with Xcode 4.x is not recent enough to build the [Cap’n proto][capnp] library so you need to manually install a newer version of clang. See [Cap’n 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, you’d 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/
|
||||
|
||||
Reference in New Issue
Block a user