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:
    yum install cmake
    For more information, visit Download CMake. Example:
    ./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:
    yum install libcurl-devel
    For more information, visit Download libcurl. Example:
    ./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:
    yum install apr-devel
    For more information, visit Download APR. Example:
    ./configure
    make
    make install
  • APR-util is installed. APR-util is used to manage memory usage and cross-platform issues. Example:
    yum install apr-util
    For more information, visit Download APR-util. Example:
    // 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:
    yum install mxml mxml-devel
    For more information, visit Download Mini-XML. Example:
    ./configure
    make
    make install
  • JsonCpp is installed. JsonCpp is used to parse data that is returned in the JSON format. Example:
    yum install jsoncpp-devel
    For more information, visit Download JsonCpp. Example:
    ./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

  1. 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.
  2. 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