Compilation and Running

Setting Environment Variables

Before compiling and running the sample, set the Vision SDK environment variables.

1
source {Vision SDK installation directory}/mxVision/set_env.sh

In the set_env.sh script, {GST_PLUGIN_PATH} is used to specify the path for GStreamer to search for the plugin library file, and {GST_PLUGIN_SCANNER} is used to specify the path of the GStreamer plugin scanner (gst-plugin-scanner). Ensure that {GST_PLUGIN_PATH} and {GST_PLUGIN_SCANNER} are valid.

Compilation (C/C++)

Perform compilation. For details, see CMakeLists.txt in the samples/C++ directory in the software package installation directory.

Running

Build the log configuration file logging.conf based on the debugging requirements. Package the plugin dynamic libraries, model files (.om files and the corresponding postprocessing libraries), and service stream configuration files, and then start the service.