Scenario for building a platform project or an application solution

You can build a platform or an application solution in C++. The platform build can be used when developing the Kaspersky Neuromorphic Platform.

When developing application solutions, you can install the required deb packages instead of building the solution.

You can also use the Docker image knp-build-image included in the platform distribution kit to build the platform or an application.

A platform or application solution build script consists of the following stages:

  1. Obtaining the platform source code

    You can get the platform source code in one of the following ways:

  2. Defining the Boost_ROOT setting in Windows

    In Windows, define the Boost_ROOT setting. To do this, create an environment variable or specify the path to the installed Boost library in the CMakePresets.json file located in the root directory with the platform source code.

    You can define the path to the installed Boost library as a CMake invocation parameter using the following command:

    cmake -DBOOST-ROOT=<path to installed Boost library>

  3. Configuring the build settings for the application solution

    In case of an application solution build, describe the build process in the CMakeLists.txt file. Specify the directory with the application to be built using the add_subdirectory function, specify the executable file using the add_executable function, and specify the platform libraries to be connected to the project using the target_link_libraries function. You can use the following libraries:

  4. Configuring a platform or an application solution build

    If you are building a platform or an application solution on Linux, configure the build using the CMake build system. For more details on configuring a build using CMake, refer to the CMake documentation.

    If you are building the platform or application solution in Windows, configure the build in Visual Studio. To do this, open the platform or application project by selecting the required CMakeLists.txt file and configure the cache. In case of an application solution build, select the CMakeLists.txt file of the application solution. In case of a platform build, select the CMakeLists.txt file located in the root directory with the platform source code.

    The first build configuration with CMake may take too long to complete and fail with network errors. If network errors occur, please run the build configuration again.

  5. Starting the build

    Start the platform or application solution build. For more details on starting the build of projects, refer to the CMake documentation or the documentation of the integrated development environment (IDE) being used.

In this section

Downloading and unpacking the platform source code archive

Defining the Boost_ROOT setting in Windows

Configuring the project build settings for the application solution in C++

Configuring a build of a platform or an application solution in Windows

Page top