Skip to content

Http client in C++ for monitoring devices in Home Center

Notifications You must be signed in to change notification settings

TomaszAugustyn/http-client-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HttpClientCpp

Http client in C++ for monitoring devices in Home Center

Requirements

Boost

  • Download latest boost from https://www.boost.org/users/download/
  • $ sudo apt-get install build-essential python-dev autotools-dev libicu-dev libbz2-dev
  • $ tar -xvzf boost_1_69_0.tar.gz
  • $ cd boost_1_69_0
  • $ sudo ./bootstrap.sh --prefix=/usr/local --with-libraries=all
  • $ sudo ./b2 install
  • Add the Boost libraries path to the default Ubuntu library search path
    $ sudo /bin/bash -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/boost.conf'
  • Update the default Ubuntu library search paths
    $ sudo ldconfig

gtest

  • Get the googletest framework: https://github.com/google/googletest/archive/release-1.8.1.tar.gz
  • $ sudo apt-get install cmake
  • $ tar xf googletest-release-1.8.1.tar.gz
  • $ cd googletest-release-1.8.1/googletest
  • $ cmake -DBUILD_SHARED_LIBS=ON .
  • $ make
  • $ sudo cp -a include/gtest /usr/include
  • $ sudo cp -a libgtest_main.so libgtest.so /usr/lib/
  • Check if the GNU Linker knows the libs
    $ sudo ldconfig -v | grep gtest

libcurl

  • $ sudo apt-get install libcurl4-gnutls-dev
  • Check Linker
    $ sudo ldconfig -v | grep curl
  • Append LIBS with -lcurl in your Makefile

JsonCPP

  • $ sudo apt-get install libjsoncpp-dev
  • Append LIBS with -ljsoncpp in your Makefile

Building and running

About

Http client in C++ for monitoring devices in Home Center

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published