1.3.2. Building the samples
After setting up your environment, obtaining the SDK, and obtaining the samples, you can build the sample applications from source to verify that your build environment is correctly set up.
The samples include a CMake project that can be built using any standard CMake build toolset. The CMake project is pre-configured to find the Proximie SDK, whether it is installed from our APT repository or is located in the release archive, so no additional configuration should be necessary to build the samples.
1.3.2.1. Building methods
Command Line
To build from the command line, simply:
Enter the
samplesdirectory:cd samples
Create and configure a
builddirectory:cmake -B build
Build the samples, using all available CPU cores:
cmake --build build -j $(nproc)
Built applications will then be available in the samples/bin directory.
You could now run the hello-sdk sample application as follows:
./bin/hello-sdk
For full details of the sample applications, see Included samples.
Visual Studio Code
Our recommendation would be to open the samples directory in Visual Studio Code, and install the
C++ extension pack; this includes the CMake Tools extension, and will allow you to simply click the
“Build” button in the VS Code interface to build the samples.