pebble
  • Tutorials
  • Get the SDK
  • Guides
  • Documentation
  • Examples
  • Community
  • Blog
  • More
Privacy
Cookies
Publish

SDK

  • Download
  • Installation
    • Mac OS X
    • Linux
    • Windows
  • Changelog
    • 4.3
    • 4.2.2
    • 4.2.1
    • 4.2
    • 4.2-beta5
    • 4.2-beta4
    • 4.1.4
    • 4.1.2
    • 4.1.1
    • 4.1
    • 4.0.1
    • 4.0
    • 4.0-rc20
    • 4.0-beta17
    • 4.0-dp3
    • 3.14
    • 4.0-dp2
    • 4.0-dp1
    • 3.13.1
    • 3.13
    • 3.12
    • 3.11.1
    • 3.11
    • 3.10.1
    • 3.10
    • 3.10-beta6
    • 3.10-beta2
    • 3.10-beta1
    • 3.9.2
    • 3.9.1
    • 3.9
    • 3.9-beta8
    • 3.9-beta7
    • 3.9-beta5
    • 3.8.2
    • 3.8.1
    • 3.8
    • 3.8-beta12
    • 3.8-beta10
    • 3.8-beta8
    • 3.7
    • 3.6.2
    • 3.6
    • 3.6-dp8
    • 3.6-dp7
    • 3.6-dp6
    • 3.6-dp5
    • 3.6-dp2
    • 3.4
    • 3.3
    • 3.2.1
    • 3.2
    • 3.1
    • 3.0
    • 3.0-beta12
    • 3.0-beta11
    • 3.0-beta10
    • 3.0-dp9
    • 3.0-dp8
    • 3.0-dp7
    • 3.0-dp6
    • 3.0-dp5
    • 3.0-dp4
    • 3.0-dp3
    • 3.0-dp2
    • 3.0-dp1
    • 2.9
    • 2.8.1
    • 2.8
    • 2.7
    • 2.6.1
    • 2.6
    • 2.5
    • 2.4.1
    • 2.4
    • 2.3
    • 2.2
    • 2.1.1
    • 2.1
    • 2.0.2
    • 2.0.1
    • 2.0.0
    • 2.0-BETA7
    • 2.0-BETA6
    • 2.0-BETA5
    • 2.0-BETA4
    • 2.0-BETA3
    • 2.0-BETA2
    • 2.0-BETA1
    • 2.0-BETA0
    • 2.0-DP3
    • 2.0-DP2
  • Getting Started with Pebble Time Round

Installing the Pebble SDK on Mac OS X

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.

  2. If you have not already, download the latest version of the SDK.

  3. Open Terminal window and create a directory to host all Pebble tools:

    mkdir ~/pebble-dev/
    
  4. Change into that directory and extract the Pebble SDK that you just downloaded, for example:

    cd ~/pebble-dev/
    tar -jxf ~/Downloads/pebble-sdk-4.5-mac.tar.bz2
    

    You should now have the directory ~/pebble-dev/pebble-sdk-4.5-mac with the SDK files and directories inside it.

  5. Add the pebble tool to your path and reload your shell configuration:

    echo 'export PATH=~/pebble-dev/pebble-sdk-4.5-mac/bin:$PATH' >> ~/.bash_profile
    . ~/.bash_profile
    

You can now continue on and install the rest of the dependencies.

Download and install Python libraries

The Pebble SDK depends on Python libraries to convert fonts and images from your computer into Pebble resources.

You need to use the standard Python easy_install package manager to install the alternative pip package manager. This is then used to install other Python dependencies.

Follow these steps in Terminal:

  1. Install pip and virtualenv:

    sudo easy_install pip
    sudo pip install virtualenv
    
  2. Install the Python library dependencies locally:

    cd ~/pebble-dev/pebble-sdk-4.5-mac
    virtualenv --no-site-packages .env
    source .env/bin/activate
    CFLAGS="" pip install -r requirements.txt
    deactivate
    

Note: virtualenv is not optional.

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 .

Next Steps

Now that you have the Pebble SDK downloaded and installed on your computer, it is time to learn how to write your first app!

You should checkout the Tutorials for a step-by-step look at how to write a simple C Pebble application.

Installation Problems?

If you have any issues with downloading or installing the Pebble SDK, you should take a look at the SDK Help category on our forums.

Alternatively, you can send us a message letting us know what issues you're having and we will try and help you out.

Overview

  • Compatibility
  • Download and install the Pebble SDK
  • Pebble SDK, fonts and freetype
  • Install Pebble emulator dependencies