Environment Setup

Overview

To develop a C++ application using the BMC C++ SDK, ensure that both the bridge executable and the SDK library are reachable in the system's PATH (the latter is only necessary for Windows users). Additionally, the library uses the nlohmann_json library, which is a requirement for formatting the parameters of the command requests.

Follow these steps to set up the environment:

  1. Add the directory containing the bridge executable and the directory containing the library to the PATH environment variable before running the application.

Alternatively, prepend the PATH variable to the command execution:

On macOS:

DYLD_LIBRARY_PATH=/path/to/dynamic_library PATH=$PATH:/path/to/bridge ./your_app

On Linux:

LD_LIBRARY_PATH=/path/to/dynamic_library PATH=$PATH:/path/to/bridge ./your_app

On Windows (using Command Prompt):

set PATH=%PATH%;\path\to\installation_dir\bridge;\path\to\installation_dir
your_app.exe

Or on Windows (using PowerShell):

$env:PATH += ";\path\to\installation_dir\bridge\;\path\to\installation_dir"
.\your_app.exe

Replace /path/to/installation_dir with the actual path to the installation_dir directory. Ensure to use the correct slashes for your operating system (/ for Mac/Linux, \ for Windows).

Last updated