Updated on 2024-10-11 GMT+08:00

SDK Compilation

You can compile the SDK based on the platform you are using. Before that, you must obtain the SDK source code.

  • In Linux:

Go to the source/eSDK_OBS_API/eSDK_OBS_API_C++/ directory and run the following script:

export SPDLOG_VERSION=spdlog-1.9.2

# On an x86 server, run the following command:

bash build.sh sdk

# On an Arm server, run the following command:

bash build_aarch.sh sdk

For details about the parameters, see the comments in the scripts. A demo package called sdk.tgz is generated with the content shown in the following figure.

  • In Windows:

Use Visual Studio to open the sln file in source/eSDK_OBS_API/eSDK_OBS_API_C++/sln/vc100/ and generate the obs project. Then, huaweisecurec.lib, huaweisecurec.dll, libeSDKOBS.lib, and libeSDKOBS.dll are generated in the output directory (which can be queried in the project properties).

To learn common compile errors, see Common Compile Errors.