pebble/devsite/source/sdk/install/macosx.md
2025-02-24 18:58:29 -08:00

2.5 KiB

layout title description menu_subsection menu_platform generate_toc permalink
sdk/markdown Installing the Pebble SDK on Mac OS X Detailed installation instructions for the Pebble SDK on Mac OS X. install mac true /sdk/install/mac/

These are the manual installation instructions for installing the Pebble SDK from a download bundle. We recommend you install the SDK using Homebrew instead, if possible.

Compatibility

Python version: the Pebble SDK requires Python 2.7. At this time, the Pebble SDK is not compatible with Python 3. However, some newer distributions come with both Python 2.7 and Python 3 installed, which can cause problems. You can use
python --version to determine which is being used. This means you may need to run pip2 instead of pip when prompted to do so below.

Download and install the Pebble SDK

  1. Install the Xcode Command Line Tools from Apple if you do not have them already.

{% include sdk/steps_install_sdk.md mac=true %}

{% include sdk/steps_python.md mac=true %}

Pebble SDK, fonts and freetype

To manipulate and generate fonts, the Pebble SDK requires the freetype library. If you intend to use custom fonts in your apps, please use homebrew to install the freetype library.

brew install freetype

Install Pebble emulator dependencies

The Pebble emulator requires some libraries that you may not have installed on your system.

The easiest way to install these dependencies is to use homebrew.

brew update
brew install boost-python
brew install glib
brew install pixman

If you have installed Python using Homebrew, you must install boost-python from source. You can do that with brew install boost-python --build-from-source .

{% include sdk/steps_getting_started.md %}

{% include sdk/steps_help.md %}