You need to enable JavaScript to run this app.
Torch Log Service

Torch Log Service

Copy page
Download PDF
C++ SDK
Install TLS SDK for C++
Copy page
Download PDF
Install TLS SDK for C++
Before you use a Torch Log Service (TLS) SDK to perform operations, install the SDK. This topic describes how to install TLS SDK for C++.​
Development environment​
Make sure that the current development environment meets the following requirements:​
​
Environment​
Description​
Linux​
Linux distributions such as Debian and CentOS​
C++ compiler​
C++11 or later​
​
Installing TLS SDK for C++​
To install TLS SDK for C++:​
  1. Install the dependencies.​
  1. Install the C++ Protobuf library. The following sample code installs Protobuf 3.21.10:​
  • ​
    wget https://github.com/google/protobuf/releases/download/v3.21.10/protobuf-3.21.10.tar.gz​
    tar zxvf protobuf-3.21.10.tar.gz​
    cd protobuf-3.21.10​
    ./configure​
    make​
    make check​
    make install​
    ​
  1. Install the C++ OpenSSL library. Install the library from OpenSSL source code, or run the following command:​
  • ​
    # For Ubuntu and Debian​
    sudo apt-get install libssl-dev​
    # For CentOS 7​
    yum install openssl-devel​
    # For RedHat and Fedora​
    sudo dnf install openssl-devel​
    ​
  1. Install the C++ LZ4 library. For more information, refer to the LZ4 documentation.​
  1. Install TLS SDK for C++.​
  1. Download the latest version of TLS SDK for C++. Get the project source code from https://github.com/volcengine/ve-tls-cpp-sdk.​
  1. Switch to the source code directory of TLS SDK for C++, and run the following command to install the SDK:​
  • ​
    ./genpb.sh​
    mkdir build​
    cd build​
    cmake ../​
    sudo make​
    sudo make install​
    ​
​
Last updated: 2025.10.11 16:44:07