Skip to content

Instantly share code, notes, and snippets.

@piotrdz
Last active August 29, 2015 14:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save piotrdz/f1bfdab638caca1aa280 to your computer and use it in GitHub Desktop.
Save piotrdz/f1bfdab638caca1aa280 to your computer and use it in GitHub Desktop.
Colobot compilation using Homebrew

After installing Developer Command Line Tools for OS X, you should have basic tools like clang and git installed. After that, you can grab other required packages via Homebrew. So as in instructions on the project page:

  ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

And then:

  brew install cmake sdl sdl_image sdl_ttf boost glew physfs flac libsndfile libvorbis vorbis-tools gettext po4a

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:

  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.

If you've installed everything correctly, the simple way of compiling Colobot with CMake should work:

  git clone --recursive https://github.com/colobot/colobot.git
  mkdir colobot/build
  cd colobot/build
  cmake ../
  make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment