Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

aliyun/aliyun-log-cpp-sdk

Repository files navigation

desciption

this is the C++ SDK version 0.6.0 for SLS

中文文档 | English

dependency

  • curl: required, use the system curl or your own curl

  • lz4 : optional, build from source as part of this sdk or use your own lz4

build

using makefile

  • execute make in this dir to get lib lib/libslssdk.a

    make -j
  • build your own program

    g++ -o your_program your_program.o -O2 -L./lib/ -lslssdk -llz4 -lcurl

dependency

  • curl

    to use your own curl lib, set CURL_INCLUDE_DIR and CURL_LIB_DIR as follows

    make CURL_INCLUDE_DIR=/usr/local/include CURL_LIB_DIR=/usr/local/lib

    otherwise, use system curl by installing it to your system.

    Ubuntu:

    sudo apt install libcurl4-openssl-dev

    Centos/RHEL:

    sudo yum install libcurl-devel

using cmake

  • build lib with cmake

    1. configure replace CURL_INCLUDE_DIR and CURL_LIB_DIR with your own curl lib
    mkdir -p build && cd build
    cmake .. -DCURL_INCLUDE_DIR=/usr/local/include -DCURL_LIB_DIR=/usr/local/lib
    1. build
    cmake --build .

dependency

  • curl

    CURL_INCLUDE_DIR and CURL_LIB_DIR is required to build libslssdk as follows

    cmake .. -DCURL_INCLUDE_DIR=/usr/local/include -DCURL_LIB_DIR=/usr/local/lib

About

Alibaba Cloud Log Service C++ SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

Languages

AltStyle によって変換されたページ (->オリジナル) /