Environment Setup

Overview

To develop a C++ application using the BMC C++ SDK, ensure that both the BMC 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 BMC 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/bmcbridge ./your_app

On Linux:

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

On Windows (using Command Prompt):

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

Or on Windows (using PowerShell):

$env:PATH += ";\path\to\installation_dir\bmcbridge\;\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