User Tools

Site Tools


dist_compilation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
dist_compilation [2011/11/03 08:48]
80.254.184.241 kBDKMJtFBRMtfDgIMx
dist_compilation [2011/11/08 16:04] (current)
memeruiz old revision restored
Line 1: Line 1:
-9fFaEb , [url=http://svcyldbkfphu.com/]svcyldbkfphu[/url], [link=http://ecetvxaiprvs.com/]ecetvxaiprvs[/link], http://zzcsfnovlsrg.com/+====== Distributed compilation ====== 
 + 
 +  * apt-get install distcc ccache 
 + 
 +  mkdir local/DIR/ccache_links/bin 
 +  cd local/DIR/ccache_links/bin 
 +  ln -s /usr/bin/ccache c++ 
 +  ln -s /usr/​bin/​ccache cc 
 +  ln -s /​usr/​bin/​ccache g++ 
 +  ln -s /​usr/​bin/​ccache gcc 
 + 
 +  * Add the following lines to your .bashrc 
 + 
 +export CCACHE_PREFIX=distcc 
 +export DISTCC_HOSTS='​memeruiz@lars/10:/​usr/​bin/​distccd localhost/​8'​ 
 + 
 +  * Login again. 
 +  * Configure your building system to use multiple processes. Ej: make -j18, ROS_PARALLEL_JOBS=-j18,​ CONCURRENCY_LEVEL=18 
 +  * Ready. 
dist_compilation.txt · Last modified: 2011/11/08 16:04 by memeruiz