All Products
Search
Document Center

Installation

Last Updated: Jul 11, 2019

[TOC]

Overview

This topic describes how to install the ApsaraVideo for VOD C/C++ SDK.

Linux

Environment requirements

  • Install CMake

    CMake is a third-party compilation and installation tool. We recommend that you install CMake V2.6.0 or later. Run the following command to install CMake:

yum install cmake

Alternatively, you can download an appropriate version from the official website. Then, run the following command to install it:

./configure
make
make install
  • Install libcurl

    The SDK uses libcurl to troubleshoot network connection and resolve other issues. We recommend that you install libcurl V7.29.0 or later. Run the following command to install libcurl:

yum install libcurl-devel

Alternatively, you can download an appropriate version from the official website. Then, run the following command to install it:

./configure
make
make install
  • Install libuuid

    The SDK uses libuuid to generate an UUID. Run the following command to install libuuid:

yum install libuuid-devel
  • Install APR

    The SDK needs to use APR together with APR-util. Run the following command to install APR:

yum install apr-devel

Alternatively, you can download an appropriate version from the official website. Then, run the following command to install it:

./configure
make
make install
  • Install APR-util

    The SDK uses APR-util to resolve memory management and cross-platform issues. Run the following command to install APR-util:

yum install apr-util

Alternatively, you can download an appropriate version from the official website. Then, run the following command to install it:

// You must add the --with-apr option to the command during installation.
./configure --with-apr=/your/apr/install/path
make
make install
  • Install Mini-XML

    The SDK uses Mini-XML to parse XML-formatted responses to requests. Run the following command to install Mini-XML:

yum install mxml mxml-devel

Alternatively, you can download an appropriate version from the official website. Then, run the following command to install it:

./configure
make
make install
  • Install JsonCpp

    The SDK uses JsonCpp to parse JSON-formatted responses to requests. Run the following command to install JsonCpp:

yum install jsoncpp-devel

Alternatively, you can download an appropriate version from the official website. Then, run the following command to install it:

./configure
make
make install
  • The upload SDK is dependent on Object Storage Service (OSS). You need to install the OSS C/C++ SDK. For more information, see Installation.

Note: If some dependent libraries of OSS are installed in the preceding procedures, you do not need to install them again.

SDK installation

Download

Note: The C/C++ server SDK and C/C++ upload SDK use the same SDK package.

Installation

  • Decompress the downloaded SDK package.
  • Access the project directory, compile a project, and install the SDK.
cmake .
make
make install

Windows

The C/C++ SDK is currently not supported in Windows, but will be supported in the near future.