I finalty managed to compile: For info, I removed the layout part to avoid the memory problem, by removing mentions of it in the following files: modified: configure.ac modified: doc/draw.rst modified: src/graph/Makefile.am Guillaume Le 04/10/2012 12:09, Tiago Peixoto [via Main discussion list for the graph-tool project] a écrit :
On 10/04/2012 11:51 AM, Guillaume Gay wrote:
Hi Tiago, hi list,
Trying to compile from the github repo, I run into this error with make:
make[4]: entrant dans le répertoire « /home/guillaume/Python/src/graph-tool/src/graph/layout » CXX graph_sfdp.lo virtual memory exhausted: Cannot allocate memory make[4]: *** [graph_sfdp.lo] Erreur 1
It takes quite a bit of memory to compile graph-tool, due to the heavy use of template metaprogramming. Current compilers such as GCC still use much more memory than optimal... However if you have more than 4G ram, you should be able to compile it with a current GCC version. Just make sure there are no other programs using significant amounts of memory.
If you still don't have enough ram, you can try compiling with clang which manages to use less memory than GCC.
If you want to artificially increase the amount of virtual memory you have, you have to increase your swap. But note that if you rely too heavily on this, the compilation time will become very, very high.
Cheers, Tiago
-- Tiago de Paula Peixoto <[hidden email] </user/SendEmail.jtp?type=node&node=4024795&i=0>>
_______________________________________________ graph-tool mailing list [hidden email] </user/SendEmail.jtp?type=node&node=4024795&i=1> http://lists.skewed.de/mailman/listinfo/graph-tool
*signature.asc* (563 bytes) Download Attachment <http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/attachment/4024795/0/signature.asc> -- Tiago de Paula Peixoto <tiago@skewed.de>
------------------------------------------------------------------------ If you reply to this email, your message will be added to the discussion below: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/...
To unsubscribe from Strange save / load_graph behaviour, click here <http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4024788&code=Z3VpbGxhdW1lQG1pdG90aWMtbWFjaGluZS5vcmd8NDAyNDc4OHwxODE0OTk1MzEw>. NAML <http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
-- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.