TDLib build instructions

Choose a programming language from which you want to use TDLib:

Choose an operating system on which you want to use TDLib:

Choose a Linux distro on which you want to use TDLib:

Enable Link Time Optimization (requires CMake >= 3.9.0). It can significantly reduce binary size and increase performance, but sometimes it can lead to build failures.
Build the debug binary. Debug binaries are much larger and slower than the release one.
Install built TDLib to /usr/local instead of placing the files to td/tdlib.

Choose which compiler you want to use to build TDLib:
g++ clang (recommended)

Choose which archiver application you want to use for VSIX creation:
7-Zip zip WinRAR

Choose which shell application you want to use for building:
PowerShell mintty/Bash

Choose which shell application you want to use for building:
tcsh/csh Bash

Choose host architecture:
Apple silicon Intel

Choose for which bitness you want to build TDLib:
32 64

Check this if you have less than 4 GB of RAM
Build from root user (not recommended)

Hidden text

Here is complete instruction for TDLib binaries building:

Hidden text

`Empty commands`