Improve build instructions in README.md

This commit is contained in:
Martchus 2021-02-07 15:33:18 +01:00
parent 606a9f053d
commit f9df9c46ec
1 changed files with 9 additions and 1 deletions

View File

@ -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/syncthingtray.git
git clone https://github.com/Martchus/subdirs.git git clone https://github.com/Martchus/subdirs.git
``` ```
2. Build and install everything in one step: 2. Configure the build
``` ```
cd $BUILD_DIR cd $BUILD_DIR
cmake \ cmake \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="/install/prefix" \ -DCMAKE_INSTALL_PREFIX="/install/prefix" \
$SOURCES/subdirs/syncthingtray $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) 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 ### 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 * Add `-DWEBVIEW_PROVIDER:STRING=webkit/webengine/none` to the CMake arguments to use either Qt WebKit (works with