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.
sudo apt install -y cmake libcppunit-devmkdir build; cd build; cmake ..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.
sudo make install- If you'd like to specify a different install prefix, please override
-DCMAKE_INSTALL_PREFIX. - By default on a linux machine:
- Installs the library to
/usr/local/lib/libsmartcapture-cpp.so - Installs the public headers to
/usr/local/include/smart_capture
- Installs the library to
- If you'd like to specify a different install prefix, please override
Run Tests
In order to build and run the Smart Capture unit tests, run the following.
mkdir build; cd build; cmake -DBUILD_TEST=ON ..make./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"
Updated 10 months ago