libsbp provides C bindings for Swift Binary Protocol (SBP), the native binary protocol used by the Piksi GPS receiver. It is intended to be as portable as possible and is written in standards compliant C with no dependencies other than the standard C libraries.
On Debian-based systems (including Ubuntu 22.04 or later) you can get dependencies with:
sudo apt-get install build-essential pkg-config cmake doxygen check clang-format-11On Mac:
brew install check cmake pkg-config doxygen clang-format@11On other systems, you can obtain CMake from your operating system package manager or from http://www.cmake.org/.
Before attempting to build, it is necessary to update the git submodules to pull in the cmake submodule for the c build of libsbp. This isn't strictly necessary for the code itself, but it is necessary for the cmake build system provided by Swift. This can be done at the command line with:
git submodule update --init
Once you have the dependencies installed, from this (the libsbp/c directory) create a build directory where the library will be built:
mkdir build
cd buildThen invoke CMake to configure the build, and then build and install,
cmake ../
make
sudo make installBy default libsbp will be built both as a shared library libsbp and
a static library libsbp-static.
For now, documentation for libsbp is available with libswiftnav. A separate tutorial for applying SBP is at https://github.com/swift-nav/sbp_tutorial.
Copyright © 2015-2025 Swift Navigation
Distributed under MIT.