﻿<?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=%E5%88%A9%E7%94%A8%E8%80%85%3AKdawg%2FBuilding_Blender%2FPrepare_the_build_system</id>
	<title>利用者:Kdawg/Building Blender/Prepare the build system - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3AKdawg%2FBuilding_Blender%2FPrepare_the_build_system"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Kdawg/Building_Blender/Prepare_the_build_system&amp;action=history"/>
	<updated>2026-09-09T15:06:20Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Kdawg/Building_Blender/Prepare_the_build_system&amp;diff=148045&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Kdawg/Building_Blender/Prepare_the_build_system&amp;diff=148045&amp;oldid=prev"/>
		<updated>2018-06-28T21:10:00Z</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:10時点における版&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=%E5%88%A9%E7%94%A8%E8%80%85:Kdawg/Building_Blender/Prepare_the_build_system&amp;diff=148044&amp;oldid=prev</id>
		<title>2014年8月18日 (月) 02:12にwiki&gt;Kdawgによる</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Kdawg/Building_Blender/Prepare_the_build_system&amp;diff=148044&amp;oldid=prev"/>
		<updated>2014-08-18T02:12:58Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Prepare the build system = &lt;br /&gt;
&lt;br /&gt;
== Cmake ==&lt;br /&gt;
=== Installing CMake ===&lt;br /&gt;
Cmake is a cross-platform tool for generating make files and configuring numerous popular IDE's.  You can download it here:&lt;br /&gt;
* [http://www.cmake.org/cmake/resources/software.html http://www.cmake.org/cmake/resources/software.html]&lt;br /&gt;
&lt;br /&gt;
{{NiceTip| Note to Linux users:|You can also download and install CMake directly through your distribution's&amp;lt;br /&amp;gt;package manager.  For example, on Ubuntu or Mint you would type:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;sudo apt-get install cmake&amp;lt;/source&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==== Quick build (Linux &amp;amp; Mac only) ====&lt;br /&gt;
From the command line, you can now enter:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/blender-dev/blender&lt;br /&gt;
make&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
this will create the program binary in the directory ''~/blender-dev/{build-platform}/blender'', where ''{build-platform}'' is either:&lt;br /&gt;
* ''build_linux'' for Linux&lt;br /&gt;
* ''build_darwin'' for Mac&lt;br /&gt;
&lt;br /&gt;
=== Configuring project with CMake ===&lt;br /&gt;
&lt;br /&gt;
'''''Note''': This guide will only discuss the cmake-gui graphical interface for configuring the project.  Command line configuration works just fine, but is not supported in this doc.''&lt;br /&gt;
&lt;br /&gt;
{{Template:MoreDetails | Windows |&lt;br /&gt;
You will find the CMake App in your Start Menu under ''CMake 2.8''.  Select ''CMake (cmake-gui)''.  When it loads, the CMake window appears: &lt;br /&gt;
&lt;br /&gt;
[[File:cmake-gui-win.png|center|Screenshot from cmake-gui, qt based gui for cmake|Screenshot from cmake-gui, qt based gui for cmake]]&lt;br /&gt;
&lt;br /&gt;
As you can see all you have to enter is the location of the sources in C:\blender-dev\blender and a destination directory which is C:\blender-dev\cmake in this example, but any location outside of the source directory is allowed.&lt;br /&gt;
&lt;br /&gt;
Now Press the '''Configure''' button.  You may be prompted that the directory doesn't exist.  If so, select yes to create the directory.  You will then get another Popup:&lt;br /&gt;
&lt;br /&gt;
[[File:cmake-gui-popup-win.png|center|Screenshot from cmake-gui, qt based gui for cmake|Screenshot from cmake-gui, qt based gui for cmake]]&lt;br /&gt;
&lt;br /&gt;
Here you can select which Generator you want to use (Visual Studio, Unix Makefiles, etc...).  Visual Studio 12 Win64 is selected currently in this example.  Note that you also can select which compiler you want to use.  If you are unsure about what that means, don't worry and use the default native compilers.&lt;br /&gt;
&lt;br /&gt;
Now press the '''Finish''' button. You'll go back to the previous screen but now you will see a big red list of options. You can scroll through the option list and set parameters to your needs. Please ensure that the settings are correct for your build. You can find the settings and what they mean in the table below.&lt;br /&gt;
&lt;br /&gt;
Click '''Configure''' again and the red highlighting should disappear. Then click '''Generate''' and your build environment will be created into the build folder.  If you selected a Visual Studio project, this is where the ''blender.sln'' file, which is the solution file to load the project in Visual Studio.  Likewise, if you created another type of configuration (QTCreator, Code::Blocks, etc...), the main project file will be located here.&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
{{Template:MoreDetails | Linux |&lt;br /&gt;
From the terminal window, run the command: cmake-gui&lt;br /&gt;
&lt;br /&gt;
[[File:Cmake-gui.jpg|center|Screenshot from cmake-gui, qt based gui for cmake]]&lt;br /&gt;
}}&lt;br /&gt;
{{Template:MoreDetails | Mac |&lt;br /&gt;
'''Note:''' For CMake to determine the proper location of your Xcode build, it's important that your active version of Xcode be located at /Applications/Xcode.app.&lt;br /&gt;
&lt;br /&gt;
You will find the CMake App in your Application folder. Double click on it to start it. The CMake Window shows up:&lt;br /&gt;
&lt;br /&gt;
[[File:Cmake-OSX-config-initial.png|center]]&lt;br /&gt;
&lt;br /&gt;
As you can see all you have to enter is the location of the sources in ~/blender-dev/blender and a destination directory which is ~/blender-dev/cmake in this example, but any location outside of the source directory is allowed.&lt;br /&gt;
&lt;br /&gt;
Now Press the &amp;quot;Configure&amp;quot; Button. You get another Popup:&lt;br /&gt;
&lt;br /&gt;
[[File:Cmake-OSX-config-generator.png|center]]&lt;br /&gt;
&lt;br /&gt;
Here you can select which Generator you want to use (Unix Makefiles or CMake in our case). Xcode is selected currently in this example.  Note that you also can select which compiler you want to use. If you are unsure about what that means, don't worry and use the default native compilers.&lt;br /&gt;
&lt;br /&gt;
Now press the &amp;quot;Done&amp;quot; Button. You get back to the previous screen but now you will see a big red list of options.  You can scroll through the option list and set parameters to your needs.  Please ensure that the settings are correct for your build.  You can find the settings and what they mean in the table below.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' 'gcc' is a symbolic link to the default compiler used by the desired Xcode version. Since XCode5 this means CLANG, formerly it was llvm-gcc &lt;br /&gt;
&lt;br /&gt;
Click '''Configure''' again and the red highlighting should disappear. Then click '''Generate''' and your build environment will be created into the build folder.&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==== Cmake Options ====&lt;br /&gt;
&lt;br /&gt;
{| {{Css/prettytable}}&lt;br /&gt;
! align=&amp;quot;center&amp;quot; | parameter&lt;br /&gt;
! align=&amp;quot;center&amp;quot; | value&lt;br /&gt;
|-&lt;br /&gt;
| CMAKE_BUILD_TYPE&lt;br /&gt;
| &amp;quot;Release&amp;quot; (for release build with optimizations) or &amp;quot;Debug&amp;quot; (to get debug info for gdb)&lt;br /&gt;
|-&lt;br /&gt;
| CMAKE_OSX_ARCHITECTURES&lt;br /&gt;
| ppc, i386, x86_64 (x86_64 for all recent OS X versions)&lt;br /&gt;
Note: x86_64 (64 bits) is default, only newer hardware support it. If your build stops with error &amp;quot;Bad CPU type in executable&amp;quot; you have to switch cpu type to i386 or ppc (32 bits).&lt;br /&gt;
|-&lt;br /&gt;
| CMAKE_OSX_DEPLOYMENT_TARGET&lt;br /&gt;
| You can restrict the OSX version you want to build for (10.5, 10.6, 10.7, 10.8, 10.9), but a nice default is 10.6.&lt;br /&gt;
|-&lt;br /&gt;
| CMAKE_OSX_SYSROOT&lt;br /&gt;
| It is recommended to always use the highest sdk available.&lt;br /&gt;
|-&lt;br /&gt;
| WITH_CODEC_QUICKTIME&lt;br /&gt;
| must be set to '''ON''' if you want to use Apple media services ( actual QTKit, AVKit soon )&lt;br /&gt;
|-&lt;br /&gt;
| WITH_CODEC_FFMPEG&lt;br /&gt;
| set to '''ON''' if you want FFMPEG support.&lt;br /&gt;
|-&lt;br /&gt;
| CMAKE_CXX_FLAGS_DEBUG, CMAKE_C_FLAGS_DEBUG&lt;br /&gt;
| (advanced mode) set to &amp;quot;-g3 -O0 -fno-inline&amp;quot; for best gdb code stepping&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Scons ==&lt;br /&gt;
&lt;br /&gt;
No information is available here yet.&lt;/div&gt;</summary>
		<author><name>wiki&gt;Kdawg</name></author>
		
	</entry>
</feed>