﻿<?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=Attic%3ADev%3ADoc%2FBuilding_Blender%2FLinux%2FUbuntu_Feisty_Fawn</id>
	<title>Attic:Dev:Doc/Building Blender/Linux/Ubuntu Feisty Fawn - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Attic%3ADev%3ADoc%2FBuilding_Blender%2FLinux%2FUbuntu_Feisty_Fawn"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Attic:Dev:Doc/Building_Blender/Linux/Ubuntu_Feisty_Fawn&amp;action=history"/>
	<updated>2026-05-14T12:41:13Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Attic:Dev:Doc/Building_Blender/Linux/Ubuntu_Feisty_Fawn&amp;diff=47644&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Attic:Dev:Doc/Building_Blender/Linux/Ubuntu_Feisty_Fawn&amp;diff=47644&amp;oldid=prev"/>
		<updated>2018-06-28T17:47:52Z</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日 (木) 17:47時点における版&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=Attic:Dev:Doc/Building_Blender/Linux/Ubuntu_Feisty_Fawn&amp;diff=47643&amp;oldid=prev</id>
		<title>195.204.142.34: /* Getting the packages */</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Attic:Dev:Doc/Building_Blender/Linux/Ubuntu_Feisty_Fawn&amp;diff=47643&amp;oldid=prev"/>
		<updated>2010-08-19T21:51:56Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Getting the packages&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Intro==&lt;br /&gt;
This guide will help you to compile a svn Blender version on Ubuntu Feisty Fawn. Previous versions may not need some proposed packages.&lt;br /&gt;
&lt;br /&gt;
==Getting the packages ==&lt;br /&gt;
Compiling Blender requires you to install quite a few packages, those are available in Synaptic :&lt;br /&gt;
&lt;br /&gt;
*build-essential&lt;br /&gt;
*svn-buildpackage&lt;br /&gt;
*scons&lt;br /&gt;
&lt;br /&gt;
*libopenal-dev&lt;br /&gt;
*libalut-dev&lt;br /&gt;
*libsdl1.2-dev&lt;br /&gt;
*ftgl-dev&lt;br /&gt;
&lt;br /&gt;
*libpng12-dev&lt;br /&gt;
*libjpeg62-dev&lt;br /&gt;
*libtiff4-dev&lt;br /&gt;
*libopenexr-dev&lt;br /&gt;
* libnspr4-dev&lt;br /&gt;
*libglut3-dev&lt;br /&gt;
*python2.6-dev&lt;br /&gt;
*libxmu-dev&lt;br /&gt;
*libarts1-dev&lt;br /&gt;
*libsmpeg-dev&lt;br /&gt;
*libxi-dev&lt;br /&gt;
*gettext&lt;br /&gt;
*arts&lt;br /&gt;
&lt;br /&gt;
*libavformat-dev&lt;br /&gt;
*libswscale-dev&lt;br /&gt;
*libavdevice-dev&lt;br /&gt;
&lt;br /&gt;
Alternatively you can use terminal and following command: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get install build-essential svn-buildpackage scons libopenal-dev libalut-dev   libsdl1.2-dev ftgl-dev libpng12-dev libjpeg62-dev libtiff4-dev libopenexr-dev   libnspr4-dev libglut3-dev python3.1-dev  libxmu-dev libart-2.0-dev   libsmpeg-dev libxi-dev gettext scons yasm libsamplerate-dev libavformat-dev libswscale-dev libavdevice-dev&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that in case you want to build blender with web plugin, you need to get mozilla-dev too. Also you need to use some other build system than scons as scons does not currently support it.&lt;br /&gt;
&lt;br /&gt;
==Creating directory for svn repository checkout==&lt;br /&gt;
It is a good idea to create a directory for a checkout. mkdir command can be used for this. Example: mkdir svn-blender. This will create a new directory called svn-blender under current directory.&lt;br /&gt;
&lt;br /&gt;
==Downloading from svn repository==&lt;br /&gt;
See http://www.blender.org/development/coding-guides/svn-checkout-and-usage/ .&lt;br /&gt;
&lt;br /&gt;
==Compiling Blender==&lt;br /&gt;
SVN has created a new folder called &amp;quot;blender&amp;quot; to store its sources, go into that directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd blender/&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then execute this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
scons&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Alternatively, to compile Blender without the game engine, execute:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
scons blendernogame&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will take a while to complete. (~20min on a amd64) The name of the directory may vary based on name of the branch checked out.&lt;br /&gt;
&lt;br /&gt;
===Linker Problems===&lt;br /&gt;
&lt;br /&gt;
If you get an error message with lines such as &amp;quot;SND_OpenALDevice.cpp:(.text+0xf05): undefined reference to `alutLoadWAVFile'&amp;quot; you can fix it by adding line &amp;quot;BF_OPENAL_LIB = 'openal alut' &amp;quot; (no &amp;quot;'s) to user-config.py which is created to the same directory in which you execute scons as above (branch/blender/).&lt;br /&gt;
&lt;br /&gt;
==Launching Blender==&lt;br /&gt;
The files are stored into ~/svn-blender/install/linux2/ &lt;br /&gt;
Go into that directory and just type ./blender&lt;br /&gt;
And it's done ! :)&lt;br /&gt;
&lt;br /&gt;
if you dont want to always have to type in such a long path you can make a symbolic link to blender&lt;br /&gt;
In a terminal type&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
ln -s ~/svn-blender/install/linux2/blender ~/svn-blender/blender&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blender optimization on ubuntu/similar  distros==&lt;br /&gt;
Now, hopefully you already compiled Blender and ran it. Maybe you thought that you want to get more power out of it? Well, its pretty simple to do.You just need to mess with &amp;lt;font color=&amp;quot;#a4e0a8&amp;quot;&amp;gt;linux2-config.py&amp;lt;/font&amp;gt;, which can be found in config folder(and config folder is blender root).&lt;br /&gt;
&lt;br /&gt;
After you open it up you will see a lot of strange and unfamiliar settings, but don't be afraid - we wont be tweaking all of them :D You need to scroll down until you're almost at the end of the file; here you should see some similar lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
CCFLAGS = ['-pipe','-fPIC','-march=athlon-xp','-msse2','-mmmx','-mfpmath=sse','-funsigned-char','-fno-strict-aliasing']&lt;br /&gt;
&lt;br /&gt;
CPPFLAGS = ['-DXP_UNIX']&lt;br /&gt;
CXXFLAGS = ['-pipe','-fPIC','-march=athlon-xp','-msse2','-mmmx','-mfpmath=sse','-funsigned-char','-fno-strict-aliasing']&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We will be tweaking two lines: CCFLAGS and CXXFLAFS. These two lines hold settings for available processor(cpu) instruction sets which at build time are built into executables.You see, the problem is that by default, Blender is compiled without some (maybe many) new processor instruction sets in order to make it support wider range of hardware. And as a result of such compilation, it does not harness the full power of your hardware. Personally, by optimizing my build, I got about 20% render-time speed increase. So lets start with the tweaking already,shall we ^^ ? &lt;br /&gt;
&lt;br /&gt;
The whole tweaking actually is just based on adding one flag to both ccflags and cxxflags,and that is '-march=native'. We will be adding it after '-fPIC', after the semicolon we add '',  (another set of bracket and a semicolon) in our new empty brackets we type -march=native and thats all. If you need, use this reference.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
CCFLAGS = ['-pipe','-fPIC','-march=native','-funsigned-char','-fno-strict-aliasing']&lt;br /&gt;
CCFLAGS = ['-pipe','-fPIC','-march=native','-funsigned-char','-fno-strict-aliasing']&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, as our precious little config file tweak is done, we save it and compile Blender. Be aware that using march native may make your build unusable on other pcs, as this option makes gcc use all optimizations available by your hardware on compile time - in other words, other hardware can result in possible incompatibilities with optimization, which, as a result may give an nonfunctional Blender.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;#a4e0a8&amp;quot;&amp;gt;Warning!&amp;lt;/font&amp;gt;&lt;br /&gt;
Do no not report bugs of optimized builds to Blender bug tracker, do so only if those bugs are encountered on official blender compilations.&lt;br /&gt;
&lt;br /&gt;
==Blender patching==&lt;br /&gt;
To patch blender we use patch,if you dont have it then get it through apt:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get install patch&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Don't exit terminal,cd blender source directory,and run this command in order to apply patch&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
patch -p0 &amp;lt; path to patch with patchname (for eg /home/user/muscle.diff)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then in terminal you should see if patching was successful or not.&lt;br /&gt;
&lt;br /&gt;
==How to Update SVN and Compile Blender Again==&lt;br /&gt;
Easy! Just go to the base dir of the source and svn up, then build again.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/svn-blender/blender/&lt;br /&gt;
svn up&lt;br /&gt;
scons blendernogame&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The up (or update) command will download the differences between your disk files and&lt;br /&gt;
the ones in the server, so it should be faster than the co (or checkout) command. That&lt;br /&gt;
is one adventage of building from SVN, you do not need to get the full sources again.&lt;br /&gt;
&lt;br /&gt;
In rare cases, blender will not properly recompile after a SVN update.&lt;br /&gt;
if you have trouble recompiling, its best update the sources (overwriting any changes you've made) and do a clean build. (Author's note: It is not sure if this applies for SVN. It would be good if someone could verify this.)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/svn-blender/blender/&lt;br /&gt;
svn up -APCd&lt;br /&gt;
scons clean&lt;br /&gt;
scons blendernogame&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:Ubuntu]]&lt;br /&gt;
[[Category:Installation]]&lt;br /&gt;
[[Category:Compiling]]&lt;br /&gt;
[[Category:Script]]&lt;/div&gt;</summary>
		<author><name>195.204.142.34</name></author>
		
	</entry>
</feed>