C++ Installation
Installation
Prerequisites:
- Follow the instructions for Installation on a Linux system from the Carbon 30 Quick Start guide. Return to this page after its completion.
Note: do not follow the guidance to verify the sensor connection through the Quick Start guide.
The voyant-api-dev package installed in the Quick Start provides everything needed to build C++ applications — headers, static libraries, and CMake support. No further build dependencies are required.
Test Installation
1. Clone the Voyant SDK repository
git clone https://github.com/Voyant-Photonics/voyant-sdk.git
2. Build the Live Client Example
The provided example demonstrates how to establish a connection with your Carbon 30 LiDAR sensor and capture incoming frame data.
Follow the linked example and ensure that you observe an output similar to the provided expected output reference.
3. Check the linked library versions
<voyant_version.hpp> reports what your build actually linked against — the library version and the FPGA interface contract it was built for (the same pair voyant_hello_world prints):
#include <voyant_version.hpp>
std::cout << voyantApiVersion() << " / " << voyantInterfaceContractVersion() << std::endl;
You should now be able to interact with the Carbon 30 LiDAR sensor and the Voyant API in a Linux environment! Please explore the other provided example codes to further your understanding of the Voyant API.