uvgrtp-base/BUILDING.md

49 lines
811 B
Markdown
Raw Normal View History

# Building
2020-04-27 11:07:24 +00:00
There are several ways to build uvgRTP: GNU make, CMake, QtCreator or Visual Studio
2020-04-27 11:07:24 +00:00
NB: uvgRTP must be built with a 64-bit compiler!
## Dependencies
2020-04-27 11:07:24 +00:00
The only dependency vanilla uvgRTP has is pthreads
2020-04-24 08:07:29 +00:00
## Visual Studio
2020-04-27 11:07:24 +00:00
Open uvgRTP.sln in Visual Studio and build the library
2020-04-24 08:07:29 +00:00
## Qt Creator
2020-04-27 11:07:24 +00:00
Open uvgrtp.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
2020-04-27 11:07:24 +00:00
Building uvgRTP produces a static library and it should be linked to the application as such:
```
2020-04-27 11:07:24 +00:00
-luvgrtp -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