colobot/INSTALL-MacOSX.md

37 lines
1.7 KiB
Markdown
Raw Normal View History

2013-11-13 13:04:11 +00:00
# Compile and install instructions on MacOSX
2015-07-23 19:10:43 +00:00
To compile Colobot on MacOS X, you need to first get Developer Command Line Tools for OS X, which you can get for example from [Apple Developer website](https://developer.apple.com/xcode/downloads/).
After installing Developer Command Line Tools, you should have basic tools like clang and git installed. After that, you can grab other required packages with Homebrew. So as in instructions on [the project page](http://brew.sh/):
```bash
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
```
And then:
```bash
brew install cmake sdl sdl_image sdl_ttf boost glew physfs flac libsndfile libvorbis vorbis-tools gettext libicns librsvg po4a
2015-07-23 19:10:43 +00:00
```
Gettext is installed in separate directory without adding the files to system path, so in order to get it working normally, you should call also:
```bash
brew link gettext --force
```
When installing po4a, you might get into trouble over dependency of SGML module for perl. The best way is to install it manually, which requires some changes in SGML's package Makefile. Appropriate instructions can be found [here](http://github.com/oster/PLM/wiki/Po4a-installation-guide-on-OSX/).
If you've installed everything correctly, the simple way of compiling Colobot with CMake should work:
```bash
git clone --recursive https://github.com/colobot/colobot.git
mkdir colobot/build
cd colobot/build
cmake ../
make
```
You can then build a Colobot drag-n-drop package
```
make package
```
And open the package:
```
open colobot-*.dmg
```
Once opened, drag the Colobot application and drop it in the Application directory. Then just launch it as any other application.