Back to Td

TDLib build instructions

build.html

1.8.01.4 KB
Original Source

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

Choose a programming language:PythonJavaScriptGoJavaKotlinC#C++SwiftObjective-CObject PascalDartRustErlangPHPLuaRubyCrystalHaskellNimClojureDElixirValaCAssemblyGOther

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

Choose an operating system:

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

Choose a Linux distro:AlpineCentOS 7CentOS 8CentOS Stream 9Debian 10+Ubuntu 18Ubuntu 20Ubuntu 22Ubuntu 24Other

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-ZipzipWinRAR

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

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

Choose host architecture:
Apple siliconIntel

Choose for which bitness you want to build TDLib:
3264

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 commandsCopy