From f9df9c46ecdfe580f64b01178b5f581e8b8fbaad Mon Sep 17 00:00:00 2001 From: Martchus Date: Sun, 7 Feb 2021 15:33:18 +0100 Subject: [PATCH] Improve build instructions in README.md --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b67df84..e0999bc 100644 --- a/README.md +++ b/README.md @@ -286,15 +286,23 @@ Building the testsuite requires CppUnit and Qt 5.8 or higher. git clone https://github.com/Martchus/syncthingtray.git git clone https://github.com/Martchus/subdirs.git ``` -2. Build and install everything in one step: +2. Configure the build ``` cd $BUILD_DIR cmake \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX="/install/prefix" \ $SOURCES/subdirs/syncthingtray + ``` + * Replace `/install/prefix` with the directory where you want to install. +3. Build and install everything in one step: + ``` + cd $BUILD_DIR make install -j$(nproc) ``` + * If the install directory is not writable, do **not** conduct the build as root. Instead, set `DESTDIR` to a + writable location (e.g. `make DESTDIR="temporary/install/dir" install …`) and move the files from there to + the desired location afterwards. ### Select Qt module for web view and JavaScript * Add `-DWEBVIEW_PROVIDER:STRING=webkit/webengine/none` to the CMake arguments to use either Qt WebKit (works with