Important: The Pebble SDK is officially supported on Ubuntu GNU/Linux 12.04 LTS, Ubuntu 13.04, Ubuntu 13.10 and Ubuntu 14.04 LTS.
The SDK should also work on other distributions with minor adjustments.
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 --versionto determine which is being used. This means you may need to run
pipwhen prompted to do so below.
Open a terminal window and create a directory to host all Pebble tools:
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-linux64.tar.bz2
Note: If you are using 32-bit Linux, the path shown above will be different as appropriate.
You should now have the directory
~/pebble-dev/pebble-sdk-4.5-linux64 with the SDK files and directories inside it.
pebble tool to your path and reload your shell configuration:
echo 'export PATH=~/pebble-dev/pebble-sdk-4.5-linux64/bin:$PATH' >> ~/.bash_profile . ~/.bash_profile
You can now continue on and install the rest of the dependencies.
The Pebble SDK depends on Python libraries to convert fonts and images from your computer into Pebble resources.
sudo apt-get install python-pip python2.7-dev sudo pip install virtualenv
Install the Python library dependencies locally:
cd ~/pebble-dev/pebble-sdk-4.5-linux64 virtualenv --no-site-packages .env source .env/bin/activate pip install -r requirements.txt deactivate
Note: virtualenv is not optional.
The Pebble emulator requires some libraries that you may not have installed on your system.
sudo apt-get install libsdl1.2debian libfdt1 libpixman-1-0
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.
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.