﻿<?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%2FBuilding_Blender%2FWindows</id>
	<title>Dev:Doc/Building Blender/Windows - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Dev%3ADoc%2FBuilding_Blender%2FWindows"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:Doc/Building_Blender/Windows&amp;action=history"/>
	<updated>2026-05-16T22:28:15Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Dev:Doc/Building_Blender/Windows&amp;diff=90001&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:Doc/Building_Blender/Windows&amp;diff=90001&amp;oldid=prev"/>
		<updated>2018-06-28T18:42:56Z</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日 (木) 18:42時点における版&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/Building_Blender/Windows&amp;diff=90000&amp;oldid=prev</id>
		<title>2018年4月29日 (日) 09:51にwiki&gt;Brechtによる</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:Doc/Building_Blender/Windows&amp;diff=90000&amp;oldid=prev"/>
		<updated>2018-04-29T09:51:00Z</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;= Building Blender on Windows =&lt;br /&gt;
&lt;br /&gt;
This is how to build Blender from its source using Microsoft compiler: &lt;br /&gt;
&lt;br /&gt;
Here you find information about how to build Blender on recent ms-windows systems using MSVC 2013/2015/2017&lt;br /&gt;
&lt;br /&gt;
{{Note|MSVC 2015/2017|While both MSVC2015 and MSVC2017 are supported, and have no known issues, official builds are still done using 2013.}}&lt;br /&gt;
&lt;br /&gt;
To have latest Blender successfully on your system, follow these steps.&lt;br /&gt;
 &lt;br /&gt;
This is not as hard as most people would think if you follow these instructions.&lt;br /&gt;
&lt;br /&gt;
# Install necessary dependencies.&lt;br /&gt;
# Download Blender source &amp;amp; libraries.&lt;br /&gt;
# Compile Blender.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Install the dependencies =&lt;br /&gt;
&lt;br /&gt;
'''THIS SECTION NEEDS TO BE COMPLETED'''&lt;br /&gt;
&lt;br /&gt;
It is recommended you install all the following dependencies in addition to MSVC: Subversion, Git, and CMake (yes, '''both''' Git and SVN). More information on each dependency is listed below.&lt;br /&gt;
&lt;br /&gt;
=== Subversion ===&lt;br /&gt;
&lt;br /&gt;
You '''must''' install Subversion to get access to the pre-compiled Blender Libraries (see further down). The following links are just two possible resources for getting Subversion, however, you may use any svn client you like.&lt;br /&gt;
&lt;br /&gt;
* [http://www.sliksvn.com/en/download SlikSVN] A version of SVN for windows&lt;br /&gt;
* [https://tortoisesvn.net/ TortoiseSvn] for an easy to use GUI, with Windows Explorer integration.&lt;br /&gt;
&lt;br /&gt;
=== Git ===&lt;br /&gt;
&lt;br /&gt;
You '''must''' install Git to get access to the Blender sources. &lt;br /&gt;
&lt;br /&gt;
* [http://msysgit.github.io/ Git for Windows] if you just want a command line Git. This is needed in the Blender compiling process, see box below&lt;br /&gt;
* [http://tortoisegit.org/ TortoiseGit] for an easy to use GUI, with Windows Explorer integration (equivalent of TortoiseSVN).&lt;br /&gt;
&lt;br /&gt;
{{note|Revision information in splash|Make sure you have git.exe in your PATH when starting the build. It ensures you have it in your splash in the Blenders Python API part related to application info. If you fail to do so, you'll see UNKNOWN printed in the place of a revision hash and date.&amp;lt;br /&amp;gt; }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CMake ===&lt;br /&gt;
&lt;br /&gt;
You '''must''' install CMake to create the Build environment.&lt;br /&gt;
&lt;br /&gt;
Download the [http://cmake.org installer] (If you have a 64 bits Windows, you can use 32 or 64bit versions).&lt;br /&gt;
&lt;br /&gt;
* For '''Install Options''', set the system path option to:&amp;lt;br&amp;gt;''Add CMake to the system PATH for all users''.&lt;br /&gt;
&lt;br /&gt;
=== Cuda (Optional) ===&lt;br /&gt;
You only need to install the CUDA development kit if you intend to use Cycles with Cuda support.&lt;br /&gt;
&lt;br /&gt;
Get Cuda 9.1 from:&amp;lt;br/&amp;gt; https://developer.nvidia.com/cuda-downloads&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Visual Studio (MSVC) ===&lt;br /&gt;
&lt;br /&gt;
This is the compiler needed to build Blender releases.&lt;br /&gt;
Currently Blender depends on '''Visual Studio 2013 Update 4/5''' or '''Visual Studio 2015 Update 3''' .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Both the PRO and Community versions can be used, but only the Community version can be downloaded for free:&lt;br /&gt;
&lt;br /&gt;
* VS-2013 Community (used for official Blender builds) can be downloaded from the [[https://www.visualstudio.com/vs/older-downloads/ old Downloads]] section at Microsoft (you need to register first). &lt;br /&gt;
* VS-2015 Community (compiles faster, but not much tested so far) can be downloaded from the [[http://www.visualstudio.com/en-us/downloads/download-visual-studio-vs#DownloadFamilies_2 current versions]] section at Microsoft.&lt;br /&gt;
* VS-2017 Community (compiles faster, but not much tested so far) can be downloaded from the [[http://www.visualstudio.com/en-us/downloads/download-visual-studio-vs#DownloadFamilies_2 current versions]] section at Microsoft.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Community seems identical to Pro edition with license restrictions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
An unlimited number of users within an organization can use Visual Studio Community for the following scenarios: in a classroom learning environment, for academic research, or for contributing to open source projects. &lt;br /&gt;
[[http://blogs.msdn.com/b/dorischen/archive/2014/11/12/q-amp-a-on-visual-studio-community-2013-and-2015-preview.aspx Q &amp;amp; A on Visual Studio Community 2013 and 2015 Preview]]&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Set up your Repository =&lt;br /&gt;
&lt;br /&gt;
Create a folder to store your copy of the Blender source code. This guide will assume your chosen folder is &amp;lt;code&amp;gt;C:\blender-git&amp;lt;/code&amp;gt;. Then use the command-line to download the Blender source code via '''git''' and precompiled libraries via '''SVN'''.&lt;br /&gt;
&lt;br /&gt;
Note, to get the precompiled libraries you can use the command-line '''OR''' TortoiseSVN, no need to do both, however the command-line is relatively easy to do.&lt;br /&gt;
&lt;br /&gt;
== Using the Command line ==&lt;br /&gt;
&lt;br /&gt;
Open the command prompt window by hitting Windows+R, and then typing cmd, or by searching for it in the start menu.&lt;br /&gt;
&lt;br /&gt;
At the command prompt type the following commands:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd C:\blender-git&lt;br /&gt;
git clone git://git.blender.org/blender.git&lt;br /&gt;
cd blender&lt;br /&gt;
git submodule update --init --recursive&lt;br /&gt;
git submodule foreach git checkout master&lt;br /&gt;
git submodule foreach git pull --rebase origin master&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will checkout the source files to {{Literal|blender/}}&lt;br /&gt;
&lt;br /&gt;
''For additional information on using Git with Blender's sources, see: [[Dev:Doc/Building_Blender|Tools/Git]]''&lt;br /&gt;
&lt;br /&gt;
{{Template:MoreDetails | + Checkout 32 Bit libraries... |&lt;br /&gt;
Make sure the current working directory is the top-level Blender dev directory, so &amp;lt;code&amp;gt;C:\blender-git&amp;lt;/code&amp;gt; in these examples.&lt;br /&gt;
&lt;br /&gt;
If you plan on building 32-bit binaries with Microsoft VS-2013, checkout the pre-compiled library files by typing:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/windows_vc12  lib/windows_vc12&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
If you plan on building 32-bit binaries with Microsoft VS-2015 or VS-2017, checkout the pre-compiled library files by typing:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/windows_vc14  lib/windows_vc14&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will checkout the libraries to {{Literal|lib/windows_vc12}} or {{Literal|lib/windows_vc14}} respectively.&lt;br /&gt;
}}&lt;br /&gt;
{{Template:MoreDetails | + Checkout 64 Bit libraries... |&lt;br /&gt;
Make sure the current working directory is the top-level Blender dev directory, so &amp;lt;code&amp;gt;C:\blender-git&amp;lt;/code&amp;gt; in these examples.&lt;br /&gt;
&lt;br /&gt;
If you plan on building 64-bit binaries with Microsoft VS-2013, checkout the precompiled library files by typing:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/win64_vc12  lib/win64_vc12&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you plan on building 64-bit binaries with Microsoft VS-2015 or VS-2017, checkout the precompiled library files by typing:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/win64_vc14  lib/win64_vc14&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will checkout the libraries to {{Literal|lib/win64_vc12}} or {{Literal|lib/win64_vc14}} respectively.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Using TortoiseSVN ==&lt;br /&gt;
&lt;br /&gt;
'''Under no circumstances''' should you set the SVN repository for the &amp;lt;code&amp;gt;C:\blender-git&amp;lt;/code&amp;gt; folder, because it could cause major conflicts with the git repository. If you want to update each precompiled library folder with the explorer context menu, you can do so by clicking on the requisite folders under {{Literal|lib/}} and going to SVN checkout. After the checkout finishes you will see a revision and are able to close the dialog out.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Compile Blender with CMake =&lt;br /&gt;
== Automatic CMake Setup ==&lt;br /&gt;
If you're not interested in manually setting up CMake build directory, configuring, building and installing in separate steps, we provide a convenience batch file in Blender's source directory which sets up CMake for you.&lt;br /&gt;
&lt;br /&gt;
From the command line, run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd C:\blender-git\blender&lt;br /&gt;
make full&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once the build finishes you'll get a message like..&lt;br /&gt;
 Blender successfully built, run from: C:\blender-git\build_windows_Full_x64_vc12_Release\bin\Release&lt;br /&gt;
&lt;br /&gt;
Updating your local checkout and rebuilding is as simple as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd C:\blender-git\blender&lt;br /&gt;
make update&lt;br /&gt;
make full&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
''(this requires git and svn to be in your systems PATH).''&lt;br /&gt;
&lt;br /&gt;
There are some pre-defined build targets:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;b&amp;gt;make&amp;lt;/b&amp;gt;&amp;lt;/tt&amp;gt; - some are turned off by default because they can be difficult to correctly configure for newer developers and aren't essential to use &amp;amp; develop Blender in most cases.&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;b&amp;gt;make lite&amp;lt;/b&amp;gt;&amp;lt;/tt&amp;gt; - the quickest way to get a Blender build up &amp;amp; running, can also help to avoid installing a lot of dependencies if you don't need video-codecs, physics-sim &amp;amp; cycles rendering.&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;b&amp;gt;make full&amp;lt;/b&amp;gt;&amp;lt;/tt&amp;gt; - this makes a complete build with all options enabled but without the cuda kernels.&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;b&amp;gt;make release&amp;lt;/b&amp;gt;&amp;lt;/tt&amp;gt; - this makes a complete build with all options enabled including cuda kernels, matching the releases on '''blender.org'''.&lt;br /&gt;
&lt;br /&gt;
For a full list of the optional targets type...&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
make help&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Building from within the Visual Studio IDE ==&lt;br /&gt;
{{Template:MoreDetails | + Building from within the Visual Studio IDE (optional) |&lt;br /&gt;
If you want to work within the visual studio IDE instead of building from the command prompt. &lt;br /&gt;
&lt;br /&gt;
We provide a convenience batch file in Blender's source directory which can generate a visual studio project for you &lt;br /&gt;
&lt;br /&gt;
From the command line, run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd C:\blender-git\blender&lt;br /&gt;
make full nobuild&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if you want to customize your build, (ie select a visual studio version, platform architecture, of blender feature set) you can get a list of customizable options by typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
make help&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once the batch file finishes it should tell you where the project files have been written, for example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
-- Build files have been written to: c:/blender-git/build_windows_Full_x64_vc12_Release&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In that folder you should now find a blender.sln which you can open with the visual studio IDE. &lt;br /&gt;
&lt;br /&gt;
Once opened it's very important the following steps are taken:&lt;br /&gt;
&lt;br /&gt;
* 1) In the solution explorer find the 'Blender' project (it's not the top node, should be somewhere 3/4th down the projects list) , right click it and select 'Set As StartUp Project'&lt;br /&gt;
* 2) In the solution explorer find the 'INSTALL' project, right click it and select 'Build' this will copy all the required files the the blender output folder. NOTE: This needs to be done atleast *once* for every solution configuration, ie: if you switch from Debug to Release configuration you need to redo this step. &lt;br /&gt;
&lt;br /&gt;
Once these settings are done, you can work with the code as usual in visual studio.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Manual CMake Setup ==&lt;br /&gt;
{{Template:MoreDetails | + Manual CMake Setup (optional) |&lt;br /&gt;
If you want to have more control over your build configuration or have multiple build directories for a single source directory.&lt;br /&gt;
You can follow these steps.&lt;br /&gt;
&lt;br /&gt;
=== Create Project Files ===&lt;br /&gt;
&lt;br /&gt;
This step you only have to do once when first setting up the build.&lt;br /&gt;
&lt;br /&gt;
Install CMake and run the CMake application, you will have to point its source path to the location you downloaded blenders GIT source to.&lt;br /&gt;
&lt;br /&gt;
You will need to select a '''Build Path''' outside the source directory.&lt;br /&gt;
&lt;br /&gt;
Press Configure, then Generate.&lt;br /&gt;
&lt;br /&gt;
''Note. any changes to the build-system will re-generate project files automatically from within MSVC when building.''&lt;br /&gt;
&lt;br /&gt;
=== Compiling the Project Files ===&lt;br /&gt;
&lt;br /&gt;
You can build Blender from the graphical application or the command line.&lt;br /&gt;
&lt;br /&gt;
==== Compile from MSVC (graphical user interface) ====&lt;br /&gt;
&lt;br /&gt;
''Note that if you are already familier with MSVC, Then the following steps are are much the same as building any other project file (nothing Blender specific here).''&lt;br /&gt;
&lt;br /&gt;
* From MSVC you need to load the project file '''Blender.sln''' from the '''Build Path''',&lt;br /&gt;
* Select the menu item: Build -&amp;gt; Build Solution ''(this will take some minutes)''&lt;br /&gt;
&lt;br /&gt;
* Build the '''INSTALL''' target listed in the '''Solution Explorer'''.&amp;lt;br&amp;gt;Note: the '''INSTALL''' copies DLL's and files used by Blender to the build directory so &amp;lt;tt&amp;gt;blender.exe&amp;lt;/tt&amp;gt; can start.&amp;lt;br&amp;gt;If you skip this step running &amp;lt;tt&amp;gt;blender.exe&amp;lt;/tt&amp;gt; will fail to start, reporting missing DLL files.&amp;lt;br&amp;gt;You wont have to run this target every build, but do it after updating SVN libraries, otherwise you risk not having the correct libraries to run blender.&lt;br /&gt;
&lt;br /&gt;
==== Compile from MSVC (command line) ====&lt;br /&gt;
&lt;br /&gt;
You can also compile from the command line. &lt;br /&gt;
In the following command just substitute [TARGET] with one of:&amp;lt;br&amp;gt;&amp;lt;tt&amp;gt;Debug, Release, RelWithDebInfo, MinSizeRel&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 devenv Blender.sln /Build [TARGET] /Project INSTALL&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you only have VC 2013 express, you have no devenv. You can then use MSBuild:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 MSBuild INSTALL.vcxproj /p:Configuration=[TARGET] /t:Build /m&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>wiki&gt;Brecht</name></author>
		
	</entry>
</feed>