- Set up the prerequisites described in the topic Satori Video SDK for C++ Prerequisites.
- At a command prompt, enter
make -version
. Ensure that your version is GNU make version 4.2.1 or later. - At a command prompt, enter
make conan-login
to ensure that you can access conan remote repositories.
$ git clone https://github.com/satori-com/satori-video-sdk-cpp.git
The first build requires more time than subsequent builds, because the conan
package manager
needs to retrieve and build dependencies.
If you encounter errors during the build, try removing the build
directory and re-building.
$ cd satori-video-sdk-cpp
$ mkdir build
$ cd build
$ cmake ../
$ make -j 8
$ ctest
Export satori-video-sdk-cpp
to your local conan cache:
$conan export satori-video-sdk-cpp <user>/<channel>
This creates a test version of the SDK in <conan_dir>/.data/SatoriVideo/<version>/<user>/<channel>
.
- <version> - The latest released version of the SDK in the conan remote cache
- <user> - A value you assign, usually your OS user id
- <channel> - A value you assign
-
Set up a test bot from the SDK examples or use one of your own working video bots:
- Test bot from SDK examples: Follow the instructions in the topic Satori Video SDK for C++: Build and Deploy a Video Bot in the section Set up files to set up a test bot.
- Your own working bot: Make a copy of the directory that contains your working bot.
-
Before you build the bot, modify
conanfile.txt
. In the[requires]
section, modify the line that specifies the video SDK. Change the following line:
SatoriVideo/[<version_spec>]@satorivideo/master
to
SatoriVideo/[<version_spec>]@<user>/<channel>
where<user>
and<channel>
are the values you specified in Export SDK to local conan.
When you build the bot, this modification directsconan
to use the test version of your SDK. -
Build your bot and test it.
$ cmake -DCMAKE_CXX_SANITIZER="address" ..
$ cmake -DCMAKE_CXX_CLANG_TIDY="/usr/local/opt/llvm/bin/clang-tidy .."