EasyHttp is a CMake project and uses POCO C++ Libraries and some other dependencies like OpenSSL, SQLite3 etc. Make sure that you have CMake version 3.0 or higher installed.
Lets start with installing Poco library first. EasyHttp currently supports Poco versions, from 1.7.4 through 1.7.9.
# clone and build the required Poco library version, say 1.7.9
mkdir _external
cd _external
git clone https://github.com/pocoproject/poco.git
cd poco
git checkout tags/poco-1.7.9-release
mkdir _build
cd _build
cmake -DCMAKE_BUILD_TYPE=Release ../
make install
Many systems have OpenSSL and SQLite3 already installed on them. If not present, install them separately.
sudo apt-get install libsqlite3-dev libssl-dev
brew install openssl
brew install sqlite3
Once you have all the dependencies installed, we can proceed to build EasyHttp.
Please note that if you haven't installed dependencies inside the default folders searched by CMake, you might have to provide the installation dir path using CMAKE_PREFIX_PATH
.
# clone and build the required EasyHttp version, say 1.0.0
git clone https://github.com/sony/easyhttpcpp.git
cd easyhttpcpp
git checkout tags/1.0.0
mkdir _build
cmake ../
make install
By default, the project is configured to build EasyHttp in Release
mode (optimized for production use). Also, test suites and samples provided with the library are not built by default to save build time.
You can use find_package
to search for EasyHttp once installed. Here's an example of how to do that.
find_package(easyhttpcpp REQUIRED CONFIG)
target_link_libraries(${TARGET}
easyhttpcpp::easyhttp
)
See, samples/SimpleHttpClient/CMakeLists.txt for complete example.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4