How to compile source under OSX

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By xDGameStudios

Need some help here, how can I compile Godot source on OSX?!

I get an error, “ImportError : No module named zlib”

xDGameStudios | 2018-11-28 21:19

:bust_in_silhouette: Reply From: kidscancode

I always just use

scons p=osx

If you’re using Homebrew (and you should be), you can install zlib with brew install zlib

Edit: XCode also includes zlib, so make sure you have Xcode Tools installed and you won’t need the brew version.

For the record, the only (optional) additional utility you need to install using Homebrew is yasm:

brew install scons yasm

It’s possible to compile Godot without it, but then VP8/VP9 video playback will be extremely slow (and probably unusable).

Calinou | 2018-12-01 00:19