Update Build instructions

This commit is contained in:
Albert Babí Oller 2021-01-29 13:50:30 -05:00
parent 1a33bc6c95
commit 200b86d479
1 changed files with 11 additions and 7 deletions

View File

@ -824,20 +824,24 @@ Once LibRingClient is built you can compile the client:
cd client-qt
mkdir build
cd build
${YOUR_QT5_gcc64_PATH}/bin/qmake ../jami-qt.pro
cmake .. -DQT5_VER=5.15.0 -DQT5_PATH=/home/<username>/Qt/5.15.0/gcc_64 -DLRC=<path_to_lrc> -DCMAKE_INSTALL_PREFIX=<installation_path>
make
```
If lrc library is installed in a custom directory you can set its path with the variables LRC (sources location) and LRCBUILD (built library location):
```sh
${YOUR_QT5_gcc64_PATH}/bin/qmake ../jami-qt.pro "LRC=<path-to-lrc-sources>" "LRCBUILD=<path-to-libringclient.so>"
```
Variables `QT5_VER` and `QT5_PATH` are used to specify version and path for a custom installation of Qt.
If lrc library is installed in a custom directory you can set its path with the variable LRC. Additionally you can specify built library location with `LRCLIB` (otherwise it will seach inside LRC with the suffixes `/lib`, `/build` and `/build-local`).
Then, you are finally ready to launch jami-qt in your build directory.
If you want to install it to the path provided by `CMAKE_INSTALL_PREFIX` you can run:
```sh
make install
```
#### Debugging
Compile the client with `BUILD=Debug` and compile LibRingClient with
`-DCMAKE_BUILD_TYPE=Debug`
Compile the client and LibRingClient with `-DCMAKE_BUILD_TYPE=Debug`
#### Known linker issues