Help Center/ Object Storage Service/ SDK Reference/ C/ Downloading and Installing the SDK
Updated on 2024-12-25 GMT+08:00

Downloading and Installing the SDK

This section provides the download and compilation methods for the OBS C SDK.

SDK Download

  • Latest version of OBS C SDK source code: Click here to download.

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 sdk.tgz demo package that contains the content shown below is generated.

  • 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).