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
$ cd libopencm3 $ make
This will build the library itself, as well as all example applications in the examples directory.
$ make install
This will install the library into your default toolchain path. If you want to install it elsewhere, use the following syntax:
$ DESTDIR=/opt make install
- 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.