Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ghost opened this issue Apr 5, 2024 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Apr 5, 2024

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 the third_party/crypto subfolder. After that you need to adjust variables ANDROID_NDK and HOST_ARCH in third_party/crypto/build.sh and run third_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)

@bqback
Copy link
Contributor

bqback commented Apr 5, 2024

And this is relevant how, exactly?

@harshil21 harshil21 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants