The library is provided as a source code archive. It must be built before use. This section briefly explains how to proceed. In addition to building the library this will also build demo programs (see [Demos]).
The source code archive can be obtained from the sourceforge project's Files section. The archive is named libbuspirate-x.y.z.tar.gz where x.y.z denotes the release version.
The archive must then be uncompressed. This will create a directory with the same name as the archive, i.e. libbuspirate-x.y.z. To uncompress the archive proceed as follows:
host:user user$ tar xvzf libbuspirate-0.4.0.tar.gz x libbuspirate-0.4.0/ x libbuspirate-0.4.0/aclocal.m4 x libbuspirate-0.4.0/AUTHORS x libbuspirate-0.4.0/ChangeLog x libbuspirate-0.4.0/compile x libbuspirate-0.4.0/config.guess (...) host:user user$
To build the library, proceed as follows, from the source code directory
host:user user$ cd libbuspirate-0.4.0 host:libbuspirate user$ ./configure host:libbuspirate user$ make clean host:libbuspirate user$ make
The library can optionally be installed,
host:libbuspirate user$ make install
Note that this step is not required. The demonstration code and the library can be used straight from the source directory.
It is also possible to build the library from the sources obtained from the SVN repository.
svn checkout svn://svn.code.sf.net/p/libbuspirate/code/trunk libbuspirate-code
There is an additional step to proceed with : the configure script and Makefiles need to be generated. For this to work, you need to have automake, autoconf and libtool installed on your system.
Generating the build scripts is then as simple as running
host:libbuspirate user$ autoreconf -i