Closed rafaeldcf closed 3 months ago
Not yet. This is planned. You can use SplitSource.php
script in the TDLib repository before building to decrease RAM requirements (see https://github.com/tdlib/td?tab=readme-ov-file#building). That should be enough for raspberry pi, although it will take a few hours to finish. (I did that a few years ago on a 1GB raspberry pi).
As a more time-consuming approach, you may also try to build it on another arm64 device. E.g., on an android phone in termux (with glibc packages). Since the openssl version will likely be different there, you probably should link it statically.
By the way, I use zram with some aggressive parameters (250% memory percent, zstd; vm.swappiness=150) on raspberry pi and that also helps with RAM issues a lot.
Added
Is there a pre-build for linux-arm64?
I'm trying to install the project in a Raspberry but it seems that the prebuilt-tdlib doesn't have the platform:
Error: The linux-arm64 platform is not supported
Is there a fix for that? Building TDLib from scratch in Raspberry it's very difficult due to RAM issues.
Thanks.