This topic describes the prerequisites and procedure of installing ApsaraVideo VOD SDK for C/C++.
Prerequisites
Note A Linux server is prepared. Windows servers are not supported.
- CMake is installed. It is a third-party compiler. We recommend that you install CMake
2.6.0 or later. Example:
For more information, visit Download CMake. Example:yum install cmake
./configure make make install
- libcurl is installed. libcurl is used to troubleshoot network connection issues. We
recommend that you install libcurl 7.29.0 or later. Example:
For more information, visit Download libcurl. Example:yum install libcurl-devel
./configure make make install
- libuuid is installed. libuuid is used to generate universally unique identifiers (UUIDs).
Example:
yum install libuuid-devel
- The Apache Portable Runtime (APR) is installed. Example:
For more information, visit Download APR. Example:yum install apr-devel
./configure make make install
- APR-util is installed. APR-util is used to manage memory usage and cross-platform
issues. Example:
For more information, visit Download APR-util. Example:yum install apr-util
// You must specify the --with-apr option when you install APR-util. ./configure --with-apr=/your/apr/install/path make make install
- Mini-XML is installed. Mini-XML is used to parse data that is returned in the XML
format. Example:
For more information, visit Download Mini-XML. Example:yum install mxml mxml-devel
./configure make make install
- JsonCpp is installed. JsonCpp is used to parse data that is returned in the JSON format.
Example:
For more information, visit Download JsonCpp. Example:yum install jsoncpp-devel
./configure make make install
- Before you use upload SDKs for C/C++, you must download and install Object Storage
Service (OSS) SDK for C. For more information, see Installation.
Notice If some dependent libraries of OSS are installed, you do not need to install them again.
Install the SDK
- Download the SDK
For more information, see Release notes of the upload SDK for C or C++.Note Server SDKs for C/C++ and upload SDKs for C/C++ are of the same version.
- Install the SDK
- Decompress the downloaded SDK package.
- Go to the SDK installation directory. Then, compile and install the SDK. Example:
cmake . make make install