- Documentation
Torch Object Storage
SDK Reference
C
Installing the C SDK
Installing the C SDK
This document provides an overview of the environment, download location, and installation procedures for the TOS C SDK.
Development Environment Preparation
This document is based on TOS C SDK 2.1.0. The development environment requirements are as follows:
Installing Dependency Libraries
- Install the CMake tool (version 2.6.0 or later is recommended). For the download link, refer to CMake. The typical installation procedure is as follows:
- Install libcurl (version 7.32.0 or later is recommended). For the download link, please refer to libcurl. Typical installation methods are as follows:
- Install apr (version 1.5.2 or later is recommended). For the download link, please refer to apr. The typical installation procedure is as follows:
- Install apr-util (version 1.5.4 or later is recommended). For the download link, please refer to apr-util. During installation, you need to specify the --with-apr option. A typical installation method is as follows:
- Install cJSON (version 1.7.18 or later is recommended). For the download link, see cJSON. Typical installation methods are as follows:
warning
The TOS C SDK utilizes APR (Apache Portable Runtime)'s memory pool mechanism for memory management. When using the TOS C SDK, your business code can also employ APR for memory management to prevent memory leaks. If your business code does not use APR for memory management, you must manually handle memory allocation and deallocation to prevent memory leaks. Download Link
Installation Method
Source Code Installation
Download the source code from GitHub. Typical compilation commands are as follows:
Last updated: 2025.09.26 19:05:16