uvgrtp-base/BUILDING.md

49 lines
811 B
Markdown
Raw Normal View History

# Building
2020-04-24 08:07:29 +00:00
There are several ways to build kvzRTP: GNU make, CMake, QtCreator or Visual Studio
NB: kvzRTP must be built with a 64-bit compiler!
## Dependencies
The only dependency vanilla kvzRTP has is pthreads
2020-04-24 08:07:29 +00:00
## Visual Studio
Open kvzRTP.sln in Visual Studio and build the library
## Qt Creator
Open kvzrtp.pro in Qt Creator and build the library
2020-04-17 09:27:37 +00:00
## CMake + Ninja
```
mkdir build && cd build
cmake -GNinja ..
ninja
```
## GNU make
```
make -j5
sudo make install
```
# Linking
Building kvzRTP produces a static library and it should be linked to the application as such:
```
-lkvzrtp -lpthread
```
# Defines
Use `__RTP_SILENT__` to disable all prints
Use `__RTP_CRYPTO__` to enable SRTP/ZRTP and crypto routines
Use `NDEBUG` to disable `LOG_DEBUG` which is the most verbose level of logging