﻿<?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-msvc</id>
	<title>利用者:Lusque/windows-msvc - 版の履歴</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-msvc"/>
	<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-msvc&amp;action=history"/>
	<updated>2026-05-24T16:30:06Z</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-msvc&amp;diff=103937&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-msvc&amp;diff=103937&amp;oldid=prev"/>
		<updated>2018-06-28T19:42:12Z</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-msvc&amp;diff=103936&amp;oldid=prev</id>
		<title>wiki&gt;Lusque: Created page with &quot;This is how to build Blender from its SVN source using either scons or cmake.  == Build environment ==  Install the following:  * Your compiler of choice: ** Visual Studio 2008  ...&quot;</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-msvc&amp;diff=103936&amp;oldid=prev"/>
		<updated>2011-03-15T13:56:45Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This is how to build Blender from its SVN source using either scons or cmake.  == Build environment ==  Install the following:  * Your compiler of choice: ** Visual Studio 2008  ...&amp;quot;&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 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;
* Your compiler of choice:&lt;br /&gt;
** Visual Studio 2008  (VS 2010 is the current release, but not supported. Look for the 2008 tab from Microsoft)(Visual C++ 2008 Feature Pack may be required, included in SP1)&lt;br /&gt;
** [http://www.microsoft.com/express/Downloads/#Visual_Studio_2008_Express_Downloads VC++ Express 2008] (free 32-bit only. Compiling 64-bit on Windows requires a 64-bit version of windows and some hacking described [http://wiki.blender.org/index.php/Dev:2.5/Doc/Building_Blender/Windows/setup_cx2008exp Here].)&lt;br /&gt;
** [http://sourceforge.net/projects/mingw/ MinGW] (free, 32-bit only; must select the C++ option during install)&lt;br /&gt;
&lt;br /&gt;
* Your (meta) build system of choice:&lt;br /&gt;
** For cmake http://cmake.org&lt;br /&gt;
** For scons [http://www.python.org/download Python 2.6.*]. (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: try [http://www.sliksvn.com/en/download SlikSVN] if you just want a command line or [http://tortoisesvn.net/downloads TortoiseSVN] for a full GUI.&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.&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;&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 verification for:&lt;br /&gt;
&lt;br /&gt;
* &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;
* &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; '''(if you want to build 64-bit)'''&lt;br /&gt;
&lt;br /&gt;
== 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 = r'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 = r'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;
=== Compile ===&lt;br /&gt;
&lt;br /&gt;
==== Visual Studio 2008 / Visual C++ 2008 Express ====&lt;br /&gt;
&lt;br /&gt;
Open the Visual Studio Command Prompt (NOT just the normal command prompt) (if compiling for 64-bit, make sure to open the 64-bit prompt). Now add Python 2.6 to your path. Type the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;set PATH=C:\Python26;%PATH%&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;
Now do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;cd C:\BlenderSVN\blender&lt;br /&gt;
python scons\scons.py&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will compile Blender. The output and executable (blender.exe) will be found in a folder under &amp;lt;code&amp;gt;C:\BlenderSVN\install\&amp;lt;/code&amp;gt;, such as in the win32-vc folder.&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;bash&amp;quot;&amp;gt;python scons\scons.py clean&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;
==== Compiling with MinGW ====&lt;br /&gt;
&lt;br /&gt;
Instead of just compiling with Python SCons, you can also include MinGW in the process. To do so, 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|32-bit / 64-bit Python:|Again, the path depends on where Python is on your machine. 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;
&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;
== 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;
==== Command-line  ====&lt;br /&gt;
&lt;br /&gt;
For Windows&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mkdir msvc&lt;br /&gt;
cd msvc&lt;br /&gt;
cmake .. -G &amp;quot;Visual Studio 9 2008&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Compile using Visual Studio ===&lt;br /&gt;
&lt;br /&gt;
Just open the Visual Studio solution file and compile. Make sure to build the 'INSTALL' target at least once for both Debug and Release targets. The INSTALL target will copy the scripts and python files in the appropriate directory.&lt;br /&gt;
The install target should be built after updating SVN otherwise blender may run with old scripts.&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 VS command prompt.&lt;br /&gt;
&lt;br /&gt;
[[Category:Script]]&lt;/div&gt;</summary>
		<author><name>wiki&gt;Lusque</name></author>
		
	</entry>
</feed>