﻿<?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%3ALusque%2Fwindows-MinGW</id>
	<title>利用者:Lusque/windows-MinGW - 版の履歴</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%3ALusque%2Fwindows-MinGW"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Lusque/windows-MinGW&amp;action=history"/>
	<updated>2026-05-24T16:52:38Z</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:Lusque/windows-MinGW&amp;diff=103939&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:Lusque/windows-MinGW&amp;diff=103939&amp;oldid=prev"/>
		<updated>2018-06-28T19:42:13Z</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日 (木) 19: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=%E5%88%A9%E7%94%A8%E8%80%85:Lusque/windows-MinGW&amp;diff=103938&amp;oldid=prev</id>
		<title>2011年3月16日 (水) 11:16にwiki&gt;Lusqueによる</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Lusque/windows-MinGW&amp;diff=103938&amp;oldid=prev"/>
		<updated>2011-03-16T11:16:37Z</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;This is how to build Blender from its SVN source using MinGW with either scons or cmake.&lt;br /&gt;
&lt;br /&gt;
== Build environment ==&lt;br /&gt;
&lt;br /&gt;
Install the following:&lt;br /&gt;
&lt;br /&gt;
* [http://sourceforge.net/projects/mingw/ MinGW] (free, 32-bit only):&lt;br /&gt;
** during install enable the '''C++ Compiler''' option&lt;br /&gt;
** optionally you can enable '''MSYS Basic System''' to get a unix-like shell environment&lt;br /&gt;
&lt;br /&gt;
* Your (meta) build system of choice:&lt;br /&gt;
** For cmake download the [http://cmake.org installer]&lt;br /&gt;
** For scons you need [http://www.python.org/download Python 2.6.*]&lt;br /&gt;
***scons itself is included in Blender sources&lt;br /&gt;
***Python 3.1 dependencies for Blender itself are included in lib/windows. {{note|Python bits|Only install Python x64 if you run a 64-bit version of Windows: cross-compiling x64 Blender on x86 Windows isn't supported yet.}}&lt;br /&gt;
&lt;br /&gt;
* A Subversion client (or both): &lt;br /&gt;
**[http://www.sliksvn.com/en/download SlikSVN] if you just want a command line SubVersion. This is needed in the Blender compiling process, see box below.&lt;br /&gt;
**[http://tortoisesvn.net/downloads TortoiseSVN] for an easy to use GUI, with Windows Explorer integration.&lt;br /&gt;
{{note|SVN Revision in splash|Make sure you have svnversion.exe in your PATH when starting the build. It ensures you have it in your splash in 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 SVN revision number.}}&lt;br /&gt;
* ''Optionally'', the [http://developer.apple.com/sdk/ Quicktime SDK]. Install it to &amp;lt;code&amp;gt;C:\BlenderSVN\lib\windows\QTDevWin\&amp;lt;/code&amp;gt;.&lt;br /&gt;
* ''Optionally'', [http://sourceforge.net/projects/pywin32/ pywin32]. This will speed the compile process if you are using scons.&lt;br /&gt;
&lt;br /&gt;
== Set up your local repository ==&lt;br /&gt;
&lt;br /&gt;
Create a folder to store your local repository. This guide will assume it is &amp;lt;code&amp;gt;C:\BlenderSVN&amp;lt;/code&amp;gt;. Then use either commandline svn or TortoiseSvn to checkout the Blender sources and pre-compiled libs.&lt;br /&gt;
&lt;br /&gt;
=== Command line ===&lt;br /&gt;
&lt;br /&gt;
Open CMD by hitting Windows+R and typing cmd, or by searching 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:\BlenderSVN&lt;br /&gt;
svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/blender&lt;br /&gt;
svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/windows lib/windows&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are going to be compiling 64-bit, do this too:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/win64 lib/win64&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== TortoiseSVN ===&lt;br /&gt;
&lt;br /&gt;
Right-click the &amp;lt;code&amp;gt;\BlenderSVN&amp;lt;/code&amp;gt; folder and select SVN checkout from the menu. &lt;br /&gt;
A window will appear. For the URL of the repository enter:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;https://svn.blender.org/svnroot/bf-blender/trunk/blender&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
And verify that the checkout directory is: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;C:\BlenderSVN\blender&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Repeat the above steps for:&lt;br /&gt;
&lt;br /&gt;
* precompiled libs:&amp;lt;br /&amp;gt;Repository: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://svn.blender.org/svnroot/bf-blender/trunk/lib/windows&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;Directory: &amp;lt;code&amp;gt;C:\BlenderSVN\lib\windows&amp;lt;/code&amp;gt;&lt;br /&gt;
* precompiled libs '''(if you want to build 64-bit)''':&amp;lt;br /&amp;gt;Repository: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://svn.blender.org/svnroot/bf-blender/trunk/lib/win64&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;Directory: &amp;lt;code&amp;gt;C:\BlenderSVN\lib\win64&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Building Blender with scons ==&lt;br /&gt;
=== Configure Options ===&lt;br /&gt;
&lt;br /&gt;
{{Note|Customization|Only customize these settings if you know what you are doing. The default configuration is suitable for building straight from SVN.}}&lt;br /&gt;
&lt;br /&gt;
For building a 32-bit version of Blender save the following text as &amp;lt;code&amp;gt;C:\BlenderSVN\blender\user-config.py&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
BF_BUILDDIR = 'c:\build' # When building with MinGW it is necessary to use as shallow path as possible - not needed to set when using MSVC&lt;br /&gt;
WITH_BF_FFMPEG = True&lt;br /&gt;
WITH_BF_OPENAL = True&lt;br /&gt;
WITH_BF_QUICKTIME = False # Set to True if the Quicktime SDK is installed.&lt;br /&gt;
WITH_BF_GAMEENGINE = True&lt;br /&gt;
WITH_BF_PLAYER = True&lt;br /&gt;
WITH_BF_JACK = True&lt;br /&gt;
WITH_BF_SDL = True&lt;br /&gt;
WITH_BF_ICONV = True&lt;br /&gt;
WITH_BF_COLLADA = True&lt;br /&gt;
WITH_BUILDINFO = True&lt;br /&gt;
BF_DEBUG = False&lt;br /&gt;
BF_NUMJOBS = 1&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
You can change the settings in this file.&lt;br /&gt;
* If you get linking errors, examine the message. You may be able to turn off an option, such as Jack, if you get errors related to that library.&lt;br /&gt;
* If you skipped installing the Quicktime SDK, set &amp;lt;code&amp;gt;WITH_BF_QUICKTIME&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;False&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you have a multicore machine, set &amp;lt;code&amp;gt;BF_NUMJOBS&amp;lt;/code&amp;gt; to the number of cores + 1.&lt;br /&gt;
&lt;br /&gt;
If you are building 64-bit, use this user-config.py:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
BF_BUILDDIR = 'c:\build' # When building with MinGW it is necessary to use as shallow path as possible - not needed to set when using MSVC&lt;br /&gt;
WITH_BF_FFMPEG = True&lt;br /&gt;
WITH_BF_OPENAL = True&lt;br /&gt;
WITH_BF_QUICKTIME = False # Not available for Win64&lt;br /&gt;
WITH_BF_GAMEENGINE = True&lt;br /&gt;
WITH_BF_PLAYER = True&lt;br /&gt;
WITH_BF_JACK = False # Not available for Win64&lt;br /&gt;
WITH_BF_SDL = True&lt;br /&gt;
WITH_BF_ICONV = True&lt;br /&gt;
WITH_BF_COLLADA = True&lt;br /&gt;
WITH_BF_SNDFILE = False # Not available for Win64&lt;br /&gt;
WITH_BUILDINFO = True&lt;br /&gt;
BF_DEBUG = False&lt;br /&gt;
BF_NUMJOBS = 1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Multiple custom configurations ====&lt;br /&gt;
&lt;br /&gt;
You can tell the SCons build process to look for a different file than user-config.py to read settings from. You do this by specifying the path to the file with BF_CONFIG on the command-line. For a file called '''debugsettings''' in the root source directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
python scons\scons.py BF_CONFIG=debugsettings&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Compiling Blender ===&lt;br /&gt;
&lt;br /&gt;
Create a batch file (.bat) with the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
set PATH=%PATH%;C:\Python26;C:\MinGW\bin;C:\MinGW\lib&lt;br /&gt;
&lt;br /&gt;
cd C:\BlenderSVN\blender\&lt;br /&gt;
python scons\scons.py BF_TOOLSET=mingw&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|Paths:|Modify the above based on where you installed Python 2.6. When installed, it may have already been added. just enter PATH and see if your Python26 is already in there. Do NOT enter the path in any quotes, as you may be tempted to if the path contains spaces.}}&lt;br /&gt;
{{Note|32-bit / 64-bit Python:| Choose a Python install which corresponds to the number of bits you are building. Match an ''n''-bit build with ''n''-bit Python.}}&lt;br /&gt;
{{Note|Non-ASCII Characters:| You might encounter problems while compiling if your computer name or some environment variables contain non-ASCII character. For best results, avoid non-ASCII characters.}}&lt;br /&gt;
&lt;br /&gt;
Running the batch file will compile Blender. The output will be found at &amp;lt;code&amp;gt;C:\BlenderSVN\install\&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you need to rebuild from scratch, you can clean the intermediate files with this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;python scons\scons.py -c&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|cleaning a build:| The '''clean''' target will recursively remove everything under BF_BUILDDIR. Hence, never use an important directory for BF_BUILDDIR, like BF_INSTALLDIR}}&lt;br /&gt;
&lt;br /&gt;
== Building Blender with cmake ==&lt;br /&gt;
=== Configure Options ===&lt;br /&gt;
&lt;br /&gt;
==== Using cmake-gui ====&lt;br /&gt;
Use cmake-gui and point to the source tree (blender) and a destination directory for the temporarily object and executables files.&lt;br /&gt;
Select the target build system (Visual Studio 9 2008 or MinGW Makefiles for example)&lt;br /&gt;
Hit the 'configure' button twice, optionally change some settings, and hit 'generate'.&lt;br /&gt;
&lt;br /&gt;
After that you can build using the generated build files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Updating your repository ==&lt;br /&gt;
&lt;br /&gt;
Create this batch (.bat) file in &amp;lt;code&amp;gt;C:\BlenderSVN\&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
cd lib\windows&lt;br /&gt;
svn update&lt;br /&gt;
cd ..\..\blender&lt;br /&gt;
svn update&lt;br /&gt;
pause&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For 64-bit:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;cd lib\win64&lt;br /&gt;
svn update&lt;br /&gt;
cd ..\..\blender&lt;br /&gt;
svn update&lt;br /&gt;
pause&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run it whenever you want to update.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Environment Variable problem ===&lt;br /&gt;
If one ore more environment variable contains a value with non-ASCII characters you'll see an error message appear since r34956 (older revision will throw a UnicodeDecodeError exception). It looks like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;D:\blenderdev\currentsvn&amp;gt;python scons\scons.py BF_CONFIG=graphicall_32b&lt;br /&gt;
scons: Reading SConscript files ...&lt;br /&gt;
================&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
@@ ABORTING BUILD @@&lt;br /&gt;
&lt;br /&gt;
PROBLEM DETECTED WITH ENVIRONMENT&lt;br /&gt;
---------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A problem with one or more environment variable was found&lt;br /&gt;
Their value contain non-ascii characters. Check the below&lt;br /&gt;
list and override them locally to be ASCII-clean by doing&lt;br /&gt;
'set VARNAME=cleanvalue' on the command-line prior to&lt;br /&gt;
starting the build process:&lt;br /&gt;
&lt;br /&gt;
USERNAME = Näthan&lt;br /&gt;
TESTVAR = ElNiño&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You don't have to change the main environment, it's enough to override the offending variables for the session. You could create a .bat with the overrides, so it's easy to run it whenever you open a new command prompt.&lt;br /&gt;
&lt;br /&gt;
[[Category:Script]]&lt;/div&gt;</summary>
		<author><name>wiki&gt;Lusque</name></author>
		
	</entry>
</feed>