Comments (7)
Ok :)
apt install ninja-build
cmake -GNinja ..
cmake --build .
Accordingly, the virtual machine hung.
Something went wrong...+ eats 10gb of ozu.
The effect is similar to make -j 6
apt install clang
CXX=clang++ CC=clang cmake ..
cmake --build . (the effect is the same as g ++)
make -j 4 although it hangs in the middle of the assembly, but collects in all cases faster :) for simple reasons.
from td.
It probably hangs because all RAM is used. You may try clang
instead of g++
, it uses much less memory than g++
and compiles TDLib quicker.
Also cmake -GNinja ..
will use ninja
instead of make
. ninja
will try to determine needed number concurrent jobs by itself, so simple cmake --build .
will be enough to run a build as fast as possible.
from td.
Ok, ninja won't help here. But it still looks that you just have not enough RAM for concurrent build. Am I right?
from td.
I do not have much RAM, but there is 16gb ozu.)
Library at assembly is eating nenuchutku. And all resources in general.
I may be in something I do not understand, but it's a kapets.
In 4 cores going 20+ minutes. eats whole RAM.
The moment that in our market most have only 8GB of RAM and 4 cores :))
All CPU time fills the ninja in the first place.
64GB RAM is what you need?)
from td.
4 GB of RAM should be enough for GCC (at least for Release builds). Clang usually needs only 1,5-2 GB of RAM for each file. You need to adjust job count to not use more RAM than available in the system. It is strange that modern C++ compilers are so slow and need so much RAM to compile simple source files, but it is not a library issue.
from td.
@levlam thank
from td.
Nevertheless, if you do not mind, we will continue.
Assembly on 4 cores of 8 and almost 9GB of RAM
-
Further all ok (1,5-3 GB)
-
At this point, the assembly eats about 5GB
-
Further all ok (1,5-3 GB)
-
At this place begins to eat the whole RAM
- Accordingly, the operating system hangs for a while.
Building CXX object CMakeFiles/tdcore.dir/td/telegram/Payments.cpp.o
- Further all ok (1,5-3 GB)
from td.
Related Issues (20)
- Changes in updateChatLastMessage Event HOT 1
- TdApi.DownloadFile HOT 4
- A few minutes after logging into my tdlib, the account becomes Deleted Account HOT 2
- bilal HOT 1
- [ASK] Is there an example of how to use the video/voice call feature? HOT 1
- moving app to a different computer HOT 3
- How can I get pinned chat messages? HOT 1
- toggleMessageSenderIsBlocked This function was not found HOT 1
- how to get premium extension date HOT 1
- Need manually free return memory when use td_receive in ptyhon ? HOT 3
- [Advice] Need to find out if there're a way to fix an .ogg file broken due to using pause during recording the voice HOT 2
- 'Similar Channels' in TDLib HOT 2
- cannot edit message forwarded by bot HOT 1
- chat admin required for GetMegagroupStats HOT 3
- Based on TDlib, I now implement event monitoring for multiple account clients. Whenever I receive UpdateNewMessage, how should I distinguish which account client this message belongs to? Based on java HOT 2
- getting telegram messages from supergroup HOT 4
- Building tdweb results in RangeError HOT 6
- Receiving messages is stopping intermittently HOT 10
- Receiving message history from several chats at once HOT 3
- tdlib Versionsnumber HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from td.