Giter Club home page Giter Club logo

aliyun-oss-c-sdk's Introduction

Alibaba Cloud OSS SDK for C

GitHub Version Build Status Coverage Status Software License

About

Alibaba Cloud Object Storage Service (OSS) is a cloud storage service provided by Alibaba Cloud, featuring massive capacity, security, a low cost, and high reliability. You can upload and download data on any application anytime and anywhere by calling APIs, and perform simple management of data through the web console. The OSS can store any type of files and therefore applies to various websites, development enterprises and developers. The OSS C SDK provides a variety of interfaces for convenient use of the OSS.

Version

  • Current version: 3.10.0

Install OSS C SDK

Environment dependency

The OSS C SDK adopts cURL for network operations on both clients and servers. OSS C SDK uses the APR and APR-Util libraries for memory management and cross-platform operations, and uses the Mini-XML library for parsing XML returned by a request. These external libraries are not included in the OSS C SDK. You need to install these libraries and add their header file directories and the library file directories to the project.

Download and install third-party libraries

libcurl (Version 7.32.0 or above is recommended)

Download from here and install it by referring to libcurl Installation Guide. A typical installation approach is as follows:

    ./configure
    make
    make install

Notes:

  • When you run the ./configure command, the default installation directory is /usr/local/. To specify another installation directory, use ./configure --prefix=/your/install/path/.
APR (Version 1.5.2 or above is recommended)

Download from here. A typical installation method is as follows:

   ./configure
   make
   make install

Notes:

  • When you run the ./configure command, the default installation directory is /usr/local/. To specify another installation directory, use ./configure --prefix=/your/install/path/.
APR-Util (Version 1.5.4 or above is recommended)

Download from here. The --with-apr option must be specified during installation. A typical installation method is as follows:

    ./configure --with-apr=/your/apr/install/path
    make
    make install

Notes:

  • When you run the ./configure command, the default installation directory is /usr/local/. To specify another installation directory, use ./configure --prefix=/your/install/path/.
  • You need to specify the APR installation directory through --with-apr. To install APR under a system directory, specify --with-apr=/usr/local/apr/.
Mini-XML (Version 2.8 or above is recommended)

Download from here. A typical installation method is as follows:

    ./configure
    make
    make install

Notes:

  • When you run the ./configure command, the default installation directory is /usr/local/. To specify another installation directory, use ./configure --prefix=/your/install/path/.
CMake (Version 2.6.0 or above is recommended)

Download from here. A typical installation method is as follows:

    ./configure
    make
    make install

Notes:

  • When you run the ./configure command, the default installation directory is /usr/local/. To specify another installation directory, use ./configure --prefix=/your/install/path/.

Install OSS C SDK

Specify the third-party library header file and library file paths in the cmake command during installation. A typical compilation command is as follows:

    cmake .
    make
    make install

Notes:

  • When you run the cmake command, the header files and library files of cURL, APR, APR-Util and Mini-XML will be searched in the directory /usr/local/ by default.
  • The default compilation is of the Debug type and you can specify the following types of compilation: Debug, Release, RelWithDebInfo and MinSizeRel. To use the Release compilation type, run the command cmake . -DCMAKE_BUILD_TYPE=Release.
  • If You have specified installation directories for cURL, APR, APR-Util and Mini-XML, you need to specify the paths of these libraries when running CMake. For example,
   cmake . -DCURL_INCLUDE_DIR=/usr/local/include/curl/ -DCURL_LIBRARY=/usr/local/lib/libcurl.a -DAPR_INCLUDE_DIR=/usr/local/include/apr-1/ -DAPR_LIBRARY=/usr/local/lib/libapr-1.a -DAPR_UTIL_INCLUDE_DIR=/usr/local/apr/include/apr-1 -DAPR_UTIL_LIBRARY=/usr/local/apr/lib/libaprutil-1.a -DMINIXML_INCLUDE_DIR=/usr/local/include -DMINIXML_LIBRARY=/usr/local/lib/libmxml.a
  • To specify an installation directory, add the following when running CMake: -DCMAKE_INSTALL_PREFIX=/your/install/path/usr/local/ใ€‚

License

  • MIT

Contact us

aliyun-oss-c-sdk's People

Contributors

ad1a05 avatar baiyubin avatar baiyubin2008 avatar baiyubin2020 avatar eryugey avatar evwind avatar hangzws avatar huiguangjun avatar kilowu avatar qiyuewuyi avatar rockuw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.