﻿<?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%3AAligorith%2FScons_NewDevSetup</id>
	<title>利用者:Aligorith/Scons NewDevSetup - 版の履歴</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%3AAligorith%2FScons_NewDevSetup"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Aligorith/Scons_NewDevSetup&amp;action=history"/>
	<updated>2026-06-10T10:12:05Z</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:Aligorith/Scons_NewDevSetup&amp;diff=93411&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:Aligorith/Scons_NewDevSetup&amp;diff=93411&amp;oldid=prev"/>
		<updated>2018-06-28T18:45:21Z</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:45時点における版&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:Aligorith/Scons_NewDevSetup&amp;diff=93410&amp;oldid=prev</id>
		<title>wiki&gt;Aligorith: /* Tips for using the console */</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Aligorith/Scons_NewDevSetup&amp;diff=93410&amp;oldid=prev"/>
		<updated>2010-01-25T00:47:53Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Tips for using the console&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== What? ==&lt;br /&gt;
This page is just a little listing of some setup issues which make compiling Blender using SCons on Windows easier + hassle free.&lt;br /&gt;
&lt;br /&gt;
== MinGW ==&lt;br /&gt;
=== General Issues ===&lt;br /&gt;
* 1) you ONLY NEED MinGW, not MSYS+MinGW as alluded to on the outdated New Devs Pages. MSYS is the UNIX emulation/mini-port, which MinGW can live happily without, and doesn't need unless you go down the ugly makefiles route.&lt;br /&gt;
&lt;br /&gt;
* 2a) For the sake of these notes, the paths presented are ones which work well on my computer. The drive letters may be different on your computer, and/or where you've got your blender sources too.&lt;br /&gt;
* 2b) It is recommended to keep blender sources and mingw stuff on the same drive, since I had various problems trying to get resources found otherwise.&lt;br /&gt;
* 2c) It is recommended (although not strictly necessary) to keep blender sources in a directory quite close to a drive name, since this minimises the chances of getting weird linking errors due to the commandlines not being long enough.&lt;br /&gt;
&lt;br /&gt;
* 3a) Make sure that you have the &amp;lt;code&amp;gt;c:\mingw\bin&amp;lt;/code&amp;gt; folder in your PATH var&lt;br /&gt;
* 3b) On Vista (and maybe beyond), you also need &amp;lt;code&amp;gt;c:\mingw\libexec\gcc\mingw32\3.4.5\&amp;lt;/code&amp;gt; on your path. Substitute &amp;lt;code&amp;gt;3.4.5&amp;lt;/code&amp;gt; with the version number of the gcc build you've got.&lt;br /&gt;
&lt;br /&gt;
=== Shortcuts for Opening Console ===&lt;br /&gt;
To save time navigating to the right directory to start compiling from, it is strongly recommended that you setup a shortcut that opens a command prompt ready for compiling.&lt;br /&gt;
&lt;br /&gt;
Here's how to do it:&lt;br /&gt;
* 1) In the folder containing the &amp;lt;code&amp;gt;blender&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;lib&amp;lt;/code&amp;gt; folders, add a shortcut named blender_trunk or a suitable branch name.&lt;br /&gt;
* 2) Make the shortcut point to &lt;br /&gt;
&amp;lt;pre&amp;gt;C:\Windows\System32\cmd.exe /k &amp;quot;cd c:\blenderdev\b250\blender&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;code&amp;gt;c:\blenderdev\b250&amp;lt;/code&amp;gt; is the path to the folder where the shortcut resides.&lt;br /&gt;
* 3) Leave the &amp;lt;code&amp;gt;Start In&amp;lt;/code&amp;gt; folder as &amp;lt;code&amp;gt;C:\Windows\System32&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All going well, you should be able to doubleclick this to open a console in the &amp;lt;code&amp;gt;blender&amp;lt;/code&amp;gt; folder with the sources.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Tips for using the console ===&lt;br /&gt;
With this console open, it's beneficial to tweak the settings of the shortcut so that everytime this console appears, it's going to behave nicely so that you can see ALL the compiler output.&lt;br /&gt;
* 1) RMB on the window header, and go to &amp;lt;code&amp;gt;Properties&amp;lt;/code&amp;gt;&lt;br /&gt;
* 2) Set the settings for &amp;lt;code&amp;gt;Screen Buffer Size&amp;lt;/code&amp;gt; to: &amp;lt;code&amp;gt; 100 (width)&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;9000 (height)&amp;lt;/code&amp;gt;.&lt;br /&gt;
* 3) Resize the window so that most text will not wrap when compiling.&lt;br /&gt;
&lt;br /&gt;
Get familiar with using {{Shortcut|up}} (and also {{Shortcut|down}} from time to time) to quickly retrieve commands previously used. This saves a lot of typing (even of 3 letter commands ;), so get used to it!&lt;br /&gt;
&lt;br /&gt;
Running blender once compiled is as simple as typing&lt;br /&gt;
&amp;lt;pre&amp;gt;..\install\blender&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Batch Script for Quicker Compiling ===&lt;br /&gt;
It is also recommended that you setup some batch scripts to save yourself typing out scons compiling commands.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sgc.bat&amp;lt;/code&amp;gt; - Standard build using gcc&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
@REM quick script to compile blender using mingw compiler + scons (1.x)&lt;br /&gt;
@echo off&lt;br /&gt;
&lt;br /&gt;
@REM handle special options (2nd arg should have no spaces)&lt;br /&gt;
if &amp;quot;%1&amp;quot; == &amp;quot;quicky&amp;quot; goto smcquicky&lt;br /&gt;
if &amp;quot;%1&amp;quot; == &amp;quot;debugy&amp;quot; goto smcdebugy&lt;br /&gt;
if &amp;quot;%1&amp;quot; == &amp;quot;cleany&amp;quot; goto smccleany&lt;br /&gt;
if &amp;quot;%1&amp;quot; == &amp;quot;profily&amp;quot; goto smcprofly&lt;br /&gt;
&lt;br /&gt;
@REM normal case (no args)&lt;br /&gt;
:smcnorm&lt;br /&gt;
python scons/scons.py BF_TOOLSET=mingw&lt;br /&gt;
goto exitsmc&lt;br /&gt;
&lt;br /&gt;
@REM quick compile of some libs only&lt;br /&gt;
:smcquicky &lt;br /&gt;
python scons/scons.py BF_TOOLSET=mingw BF_QUICK=%2&lt;br /&gt;
goto exitsmc&lt;br /&gt;
&lt;br /&gt;
@REM compile debug build&lt;br /&gt;
:smcdebugy&lt;br /&gt;
python scons/scons.py BF_TOOLSET=mingw BF_DEBUG=True BF_QUICKDEBUG=%2 BF_QUICK=%2&lt;br /&gt;
goto exitsmc&lt;br /&gt;
&lt;br /&gt;
@REM compile profiling build&lt;br /&gt;
:smcprofly&lt;br /&gt;
python scons/scons.py BF_TOOLSET=mingw BF_PROFILE=1&lt;br /&gt;
goto exitsmc&lt;br /&gt;
&lt;br /&gt;
@REM scons clean...&lt;br /&gt;
:smccleany&lt;br /&gt;
python scons/scons.py clean&lt;br /&gt;
goto exitsmc&lt;br /&gt;
&lt;br /&gt;
@REM wait to get out&lt;br /&gt;
:exitsmc&lt;br /&gt;
::pause&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This batch script makes compiling as simple as...&lt;br /&gt;
* &amp;lt;code&amp;gt;sgc&amp;lt;/code&amp;gt; - for normal rebuild of changed files in whole tree&lt;br /&gt;
* &amp;lt;code&amp;gt;sgc quicky lib1,lib2,...&amp;lt;/code&amp;gt; - for rebuilding select modules only&lt;br /&gt;
**e.g. 1) &amp;lt;code&amp;gt;sgc quicky anim&amp;lt;/code&amp;gt; - for rebuilding the &amp;lt;code&amp;gt;editors/animation&amp;lt;/code&amp;gt; folder (i.e. animation editor generic code)&lt;br /&gt;
**e.g. 2) &amp;lt;code&amp;gt; sgc quicky blenkernel,anim,graph&amp;lt;/code&amp;gt; - for rebuilding &amp;lt;code&amp;gt;blenkernel&amp;lt;/code&amp;gt; module, &amp;lt;code&amp;gt;editors/animation&amp;lt;/code&amp;gt; (same as before), and &amp;lt;code&amp;gt;editors/space_graph&amp;lt;/code&amp;gt; (i.e. Graph Editor)&lt;br /&gt;
&lt;br /&gt;
=== Batch Script for Debug Build Compiling ===&lt;br /&gt;
'''Requires''': &amp;lt;code&amp;gt;mingw-user-config.py&amp;lt;/code&amp;gt; configuration file with options for debug builds&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sgd.bat&amp;lt;/code&amp;gt; - Debug Build Compiling Script&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
@REM quick script to compile blender using mingw compiler + scons (1.x)&lt;br /&gt;
@echo off&lt;br /&gt;
&lt;br /&gt;
@REM compile debug build&lt;br /&gt;
python scons/scons.py BF_TOOLSET=mingw BF_DEBUG=True BF_CONFIG=mingw-user-config_debug.py %*&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>wiki&gt;Aligorith</name></author>
		
	</entry>
</feed>