Build Instructions

Get Access

If you're interested in trying out Smart Capture for your edge AI application, please register interest here and we'll reach out ASAP!

Build

The Smart Capture C++ SDK is self-contained, and depends only on cmake and libcppunit-dev. The following instructions are for building on a Linux machine, including an Nvidia Jetson device.

All commands below are run from the smart-capture-sdk/smartcapture-cpp directory.

  1. sudo apt install -y cmake libcppunit-dev
  2. mkdir build; cd build; cmake ..
  3. make

Install

Installing the library makes it accessible to other software that will need to link builds against it. All commands below are run from the smart-capture-sdk/smartcapture-cpp/build directory.

  1. sudo make install
    1. If you'd like to specify a different install prefix, please override -DCMAKE_INSTALL_PREFIX.
    2. By default on a linux machine:
      1. Installs the library to /usr/local/lib/libsmartcapture-cpp.so
      2. Installs the public headers to /usr/local/include/smart_capture

Run Tests

In order to build and run the Smart Capture unit tests, run the following.

  1. mkdir build; cd build; cmake -DBUILD_TEST=ON ..
  2. make
  3. ./smartcapture-cpp_test

Link in CMake

In order to link a new project that uses Smart Capture against the built library, the following line needs to be added to CMake:

target_link_libraries(${EXEC_NAME} PUBLIC smartcapture-cpp)

And adding the following to your environment (e.g. ~/.bashrc) will allow cmake to find the installed binary:

export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"


Did this page help you?