1.4 Getting Started: Embedded Installation

The Canopy Embedded Development Kit ("EDK"), including libcanopy, can be built from source. The EDK uses repo, which is a tool that makes it easier to work with multiple git repositories.

App developers and others who won't be doing embedded development can skip this section.

Prerequisites

Installing Required Packages (Ubuntu 14.04)
sudo apt-get install g++ git rpm cmake zlib1g-dev libssl-dev
Installing Repo

Download repo and put it somewhere in your PATH:

curl https://storage.googleapis.com/git-repo-downloads/repo > repo chmod a+x repo sudo cp repo /usr/local/bin

Downloading the Source

Initializing a Repo Client

After installing repo, set up your client to access the Canopy EDK repository.

1) Create a working directory. You can call it anything you like:

mkdir canopy_edk cd canopy_edk

2) Run repo init to initialize the client repository.

repo init -u https://github.com/canopy-project/canopy-embedded-manifest

To check out a branch other than "master", specify it with -b:

repo init -u https://github.com/canopy-project/canopy-embedded-manifest -b beta

3) Use repo sync to download sources to your working directory:

repo sync

Building and Installing

Initialize the Build Environment

Canopy's build system expects certain environment variables to be set, which are initialized with the envsetup.sh script.

source build/envsetup.sh
Building and Installing

To build and install the Canopy EDK, run:

cd build make sudo make install