cpp-ipfs-http-client
IPFS C++ client library
IPFS C++ HTTP API client library

The main class the library exports is ipfs::Client. The rest is only interesting to developers of this library.

Install

# Fetch the source code from GitHub.
git clone git@github.com:vasild/cpp-ipfs-http-client.git
# Build out-of-source using cmake in the usual way.
# These extra options may be of interest in case the dependencies have
# been installed in non-standard locations:
# JSON_FOR_MODERN_CXX_INCLUDE_DIR
# CURL_INCLUDE_DIR
# CURL_LIBRARY
mkdir build
cd build
cmake \
-DCMAKE_INSTALL_PREFIX:PATH=/home/joe.smith/cpp-ipfs-http-client-install \
-DJSON_FOR_MODERN_CXX_INCLUDE_DIR:PATH=/home/joe.smith/include \
-DCURL_INCLUDE_DIR:PATH=/home/joe.smith/include
-DCURL_LIBRARY:PATH=/home/joe.smith/lib/libcurl.so
-DCMAKE_BUILD_TYPE=Debug \
-DBUILD_SHARED_LIBS:BOOL=ON \
../cpp-ipfs-http-client
make -j742
# Optionally install it.
make install

Dependencies

License

The code is distributed under the MIT License.