You will need an installed ARM toolchain to build the library and the example applications. We recommend using summon-arm-toolchain 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
$ 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