﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Dev%3ADoc%2FTools%2Fdistcc</id>
	<title>Dev:Doc/Tools/distcc - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Dev%3ADoc%2FTools%2Fdistcc"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:Doc/Tools/distcc&amp;action=history"/>
	<updated>2026-06-10T18:15:10Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Dev:Doc/Tools/distcc&amp;diff=150151&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:Doc/Tools/distcc&amp;diff=150151&amp;oldid=prev"/>
		<updated>2018-06-28T21:14:50Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 21:14時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Dev:Doc/Tools/distcc&amp;diff=150150&amp;oldid=prev</id>
		<title>wiki&gt;Ideasman42: /* Build System */</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:Doc/Tools/distcc&amp;diff=150150&amp;oldid=prev"/>
		<updated>2017-07-21T10:02:59Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Build System&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= distcc =&lt;br /&gt;
&lt;br /&gt;
distcc is a tool to distribute building C/C++ software across multiple Unix like systems.&lt;br /&gt;
&lt;br /&gt;
This project has its own documentation, so this is just some notes on using it with Blender.&lt;br /&gt;
&lt;br /&gt;
* For reference, the web-page for distcc can be found here:&amp;lt;br&amp;gt;https://github.com/distcc/distcc&lt;br /&gt;
* For community maintained docs, See the arch wiki:&amp;lt;br&amp;gt;https://wiki.archlinux.org/index.php/Distcc&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Use Case ==&lt;br /&gt;
&lt;br /&gt;
For incremental rebuilds and general development, there aren't significant advantages to distributing the process.&lt;br /&gt;
&lt;br /&gt;
This is mainly useful when you need to rebuild the entire source tree, many times.&lt;br /&gt;
&lt;br /&gt;
* Using &amp;lt;tt&amp;gt;'''git bisect'''&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* Changing compiler flags.&lt;br /&gt;
* Changes to heavily used headers.&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
* Install &amp;lt;tt&amp;gt;distcc&amp;lt;/tt&amp;gt; using your systems package manager on 2 or more systems.&lt;br /&gt;
&lt;br /&gt;
In the following example, &amp;lt;tt&amp;gt;192.168.1.100&amp;lt;/tt&amp;gt; is the master, and &amp;lt;tt&amp;gt;192.168.1.200&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;192.168.1.201&amp;lt;/tt&amp;gt; are the slaves.&lt;br /&gt;
&lt;br /&gt;
=== Master ===&lt;br /&gt;
&lt;br /&gt;
Edit &amp;lt;tt&amp;gt;'''/etc/distcc/hosts'''&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example configuration:&lt;br /&gt;
&lt;br /&gt;
  192.168.1.200/16,lzo,cpp 192.168.1.201/16,lzo,cpp localhost/8,cpp&lt;br /&gt;
&lt;br /&gt;
Note that the values 16 and 8 represent the number of jobs you want each system to be given.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt&amp;gt;'''cpp'''&amp;lt;/tt&amp;gt; means the pre-processing is done on build the slaves too.&lt;br /&gt;
* &amp;lt;tt&amp;gt;'''lzo'''&amp;lt;/tt&amp;gt; uses lzo compression for file transfer.&lt;br /&gt;
&lt;br /&gt;
=== Slaves ===&lt;br /&gt;
&lt;br /&gt;
Edit &amp;lt;tt&amp;gt;'''/etc/default/distcc'''&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example configuration:&lt;br /&gt;
&lt;br /&gt;
  STARTDISTCC=true&lt;br /&gt;
  ALLOWEDNETS=&amp;quot;192.168.1.100&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Build System ==&lt;br /&gt;
&lt;br /&gt;
First start the distcc service on master and slave systems.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
systemctl start distccd&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
''... replace 'start' with 'enable' if you want this to be stated each reboot.''&lt;br /&gt;
&lt;br /&gt;
In this example we'll assume your source directory is called &amp;lt;tt&amp;gt;'''blender/'''&amp;lt;/tt&amp;gt; and create a new build directory called &amp;lt;tt&amp;gt;'''build_distcc/'''&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The following commands assume you're in an existing Blender checkout.&lt;br /&gt;
&lt;br /&gt;
''(Authors note, in CMake 3.4x you should not need to change the compiler, instead use [https://stackoverflow.com/a/34317588/432509 CMAKE_&amp;lt;LANG&amp;gt;_COMPILER_LAUNCHER]. This needs to be tested though before updating the docs! [[User:Ideasman42|Ideasman42]] 10:02, 21 July 2017 (UTC))''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mkdir ../build_distcc&lt;br /&gt;
cd ../build_distcc&lt;br /&gt;
CC=&amp;quot;distcc gcc&amp;quot; CXX=&amp;quot;distcc g++&amp;quot; cmake ../blender&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This should configure the new build without any errors.&lt;br /&gt;
&lt;br /&gt;
Now compile the source.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
pump make -j32&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this example the number of jobs is 32, jobs will be split across all systems.&lt;br /&gt;
To keep all cores busy you can set the job count to slightly more than the sum of all cores - since there will be network latency where cores wait for new jobs.&lt;br /&gt;
&lt;br /&gt;
== Notes == &lt;br /&gt;
&lt;br /&gt;
* Building with the instructions above you may get the warning &amp;lt;tt&amp;gt;'''-Wmissing-include-dirs'''&amp;lt;/tt&amp;gt; which can be safely ignored.&lt;br /&gt;
* When the &amp;lt;tt&amp;gt;'''distcc'''&amp;lt;/tt&amp;gt; daemon isn't running, it will print a warning and fall-back to building locally.&lt;br /&gt;
* If you try to modify an existing build to use &amp;lt;tt&amp;gt;'''distcc'''&amp;lt;/tt&amp;gt;, CMake will detect the compiler as being changed and remove your existing &amp;lt;tt&amp;gt;'''CMakeCache.txt'''&amp;lt;/tt&amp;gt; and create a new one (loosing any manual edits!).&lt;/div&gt;</summary>
		<author><name>wiki&gt;Ideasman42</name></author>
		
	</entry>
</feed>