Skip to content

Commit

Permalink
Mention tdlib version requirement in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWiederhake authored and ars3niy committed Dec 7, 2021
1 parent e41b0cd commit 9dd584d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ project(tdlib-purple VERSION ${VERSION} LANGUAGES CXX)
find_package(Td REQUIRED)
math(EXPR TDLIB_VERSION_NUMBER "10000*${Td_VERSION_MAJOR} + 100*${Td_VERSION_MINOR} + ${Td_VERSION_PATCH}")
if (${TDLIB_VERSION_NUMBER} LESS 10709)
# Error message must begin with "tdlib version" for a grep command from readme
message(FATAL_ERROR "tdlib version 1.7.9 or newer is required")
endif (${TDLIB_VERSION_NUMBER} LESS 10709)

Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ The debug log contains a lot of private information such as names and phone numb

## Building

TDLib should be prebuilt and installed somewhere (requires C++14):
Compatible version of TDLib should be prebuilt and installed somewhere (requires C++14). Version requirement can be found in CMakeLists.txt:
```
grep -o "tdlib version.*" CMakeLists.txt
```

TDLib can be built like this:
```
cd <path to TDLib sources>
mkdir build
Expand All @@ -51,7 +56,8 @@ cmake -DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=/path/to/tdlib
```
Also see [building](https://github.com/tdlib/td#building) for additional details on TDLib building.

See also [building](https://github.com/tdlib/td#building).

libtgvoip is required for voice calls.

Expand Down

0 comments on commit 9dd584d

Please sign in to comment.