I prepared scripts which can be used to build all flavours of TDLib for Android. You will need Bash, cmake, ninja, C++14 compatible compiler, PHP (optional, for documentation generation), Android NDK and system JDK preinstalled. Make sure that ANDROID_SDK_ROOT
environment variable is correctly set before using the scripts.
#133
Labels
I prepared scripts which can be used to build all flavours of TDLib for Android. You will need Bash, cmake, ninja, C++14 compatible compiler, PHP (optional, for documentation generation), Android NDK and system JDK preinstalled. Make sure that
ANDROID_SDK_ROOT
environment variable is correctly set before using the scripts.You can build desired TDLib version using:
libtdjni.zip - native JNI wrapper for TDLib with autogenerated Java classes.
libtdjsonandroid.zip - TDLib JSON interface built for Android. All TDLib JSON interface methods have ordinary names prefixed with undescore, for example
_td_json_client_create
.libtdjsonjava.zip - JNI wrapper for TDLib JSON interface.
You will need to unpack the desired archive to
td/example
directory. Then download the latest OpenSSL 1.1.1 source code as a .tar.gz archive from OpenSSL 1.1.1 release page and place it in thethird_party/crypto
subfolder. After that you need to adjust variablesANDROID_NDK
andHOST_ARCH
inthird_party/crypto/build.sh
and runthird_party/crypto/build-all.sh
script to build OpenSSL.After that run the script
export.sh
in the unpacked archive top-level directory to build TDLib.Originally posted by @levlam in tdlib/td#77 (comment)
The text was updated successfully, but these errors were encountered: