Compiling Telegram Desktop (tdesktop) on Oracle ARM VPS
Preface
My Oracle ARM VPS configuration:
2 cores CPU
12G RAM
47G Disk
Want to compile the https://github.com/forkgram/tdesktop project
Agent-Oriented Development
Hermes connected to mimo-v2.5-pro
The content in the quote box below is the natural language I sent to the Agent
把 https://github.com/forkgram/tdesktop clone到本地, 并完成编译
1st Compilation Failed - Reason: Insufficient Disk Space
Record
Solution
Opened a new session, let Hermes analyze the disk space usage, deleted some environments from other projects, and packed and moved some transferable data to other VPSes for temporary storage.
Freed up 25G of disk space.
2nd Compilation Failed - Reason: Insufficient Disk Space
Solution
Opened a new session, let Hermes search the internet for relevant information to see if anyone has encountered the same Telegram Desktop compilation failure.
Hermes searched around and found a solution: directly use aqtinstall to install (instead of compiling) QT 6.11.1, then use .so dynamic linking
3rd Compilation Successful
Time taken: about 5 hours
Peak memory: about 9GB (entire system)
Disk usage: about 10GB (only counting compilation-related) (Qt was directly downloaded, no need to compile)
Summary
1. Let the Agent first refer to the official build guide (using Docker)
2. If step 1 fails, analyze the Docker process, break it down into step-by-step operations, and see where the problem lies.
If stuck at the Qt compilation step, use aqtinstall to install Qt instead of compiling it
========
Related Recommendations
《修改 forkgram/tdesktop 实现 屏蔽音频/视频按钮功能》