Improve build instructions in README.md
This commit is contained in:
parent
606a9f053d
commit
f9df9c46ec
10
README.md
10
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
|
||||
|
|
Loading…
Reference in New Issue