From fa5e89c64fbdd9acc81c4e78219d20912847f848 Mon Sep 17 00:00:00 2001 From: Falk Werner Date: Sun, 10 Feb 2019 11:48:25 +0100 Subject: [PATCH] added description to install dependencies --- README.md | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/README.md b/README.md index c7c3f97..d7bb3d8 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ fuse-wsfs combines libwebsockets and libfuse. It allows ot attach a remote files # Build and run +To install dependencies, see below. + cd fuse-wsfs mkdir ./build cd ./build @@ -24,4 +26,57 @@ fuse-wsfs combines libwebsockets and libfuse. It allows ot attach a remote files - [Jansson](https://jansson.readthedocs.io) - [GoogleTest](https://github.com/google/googletest) *(optional)* +## Installation + +### libfuse + + wget -O fuse-3.1.1.tar.gz https://github.com/libfuse/libfuse/archive/fuse-3.1.1.tar.gz + tar -xf fuse-3.1.1.tar.gz + cd libfuse-fuse-3.1.1 + ./makeconf.sh + ./configure + make + sudo make install + +### libwebsockets + + wget -O libwebsockets-3.1.0.tar.gz https://github.com/warmcat/libwebsockets/archive/v3.1.0.tar.gz + tar -xf libwebsockets-3.1.0.tar.gz + cd libwebsockets-3.1.0 + mkdir .build + cd .build + cmake .. + make + sudo make install + +### Jansson + +On many systems, libjansson can installed via apt: + + sudo apt install libjansson-dev + +Otherwise, it can be installed from source: + + wget -O libjansson-2.12.tar.gz https://github.com/akheron/jansson/archive/v2.12.tar.gz + tar -xf libjansson-2.12.tar.gz + cd jansson-2.12 + mkdir .build + cd .build + cmake .. + make + sudo make install + +### GoogleTest + +Installation of GoogleTest is optional fuse-wsfs library, but required to compile tests. + + wget -O gtest-1.8.1.tar.gz https://github.com/google/googletest/archive/release-1.8.1.tar.gz + tar -xf gtest-1.8.1.tar.gz + cd googletest-release-1.8.1 + mkdir .build + cd .build + cmake .. + make + sudo make install +