Pre-built binaries for various platforms are availale on the releases page.
To quickly build and install the latest version, you can use Rust cargo
tool.
First, install rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Install build dependencies:
sudo apt install build-essential cmake clang
Then build and install with cargo
:
git clone --recursive [email protected]:swift-nav/gnss-converters.git
cd gnss-converters
cargo install --path .
To build and install the nov2sbp
tool as well, also run:
cargo install --path . --bin nov2sbp --features nov2sbp
Or to build and install everything at once, run:
cargo install --path . --all-features
The following tools will be installed in ~/.cargo/bin
(which should be in the path):
- sbp2rtcm
- rtcm3tosbp
- ubx2sbp
- ixcom2sbp
- nov2sbp
This repository is a bit of a chimera; its products are the gnss-converters library which provides funtionality for converting RTCM to SBP, a tool written in C for converting RTCM to SBP, and a variety of haskell tools that will convert between RTCM, SBP, and json.
To build the C tool and the library, just follow the usual steps:
git submodule update --init --recursive
cd c/
mkdir build
cd build/
cmake ..
make -j8
Here is an example of how to run the C tool. This should (eventually) result in some colorful json on your terminal (the ntripping tool can be found on GitHub):
ntripping --url http://user:[email protected]:2101/RTCM3 | ./rtcm3tosbp | sbp2json | jq .
To install the Haskell tools:
stack install --resolver lts-10.10 sbp rtcm