[go: nahoru, domu]

Skip to content
Piotr Esden-Tempski edited this page Jan 18, 2017 · 1 revision

Requirements

You will need an installed ARM toolchain to build the library and the example applications. We recommend using gcc-arm-embedded to create one, this is the toolchain most developers use. We may not be able to help you with problems related to other toolchains.

Getting the source code

$ git clone git://github.com/libopencm3/libopencm3.git

Building

cd libopencm3
make

This will build the library itself. The examples are contained in a separate repository called libopencm3-examples.

Installation

You can run make install to install the library. At the moment it's not really a good idea to install the library globally on your system as it is still in flux. Most common is to either use a submodule (see below) or just use -L/-I flags to point your project to the right place.

Notes

  • A recommended usage of libopencm3 is having it as a git submodule inside your own project. Libopencm3 is still under heavy development and the api may change. It is good to have your project bound to the version of libopencm3 you know is working.
  • The examples of libopencm3 are now in a separate repository libopencm3-examples.
Clone this wiki locally