﻿<?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%3A2.4%2FDoc%2FBuilding_Blender%2FMac</id>
	<title>Dev:2.4/Doc/Building Blender/Mac - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Dev%3A2.4%2FDoc%2FBuilding_Blender%2FMac"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:2.4/Doc/Building_Blender/Mac&amp;action=history"/>
	<updated>2026-06-17T15:51:32Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Dev:2.4/Doc/Building_Blender/Mac&amp;diff=56452&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:2.4/Doc/Building_Blender/Mac&amp;diff=56452&amp;oldid=prev"/>
		<updated>2018-06-28T17:52:32Z</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日 (木) 17:52時点における版&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:2.4/Doc/Building_Blender/Mac&amp;diff=56451&amp;oldid=prev</id>
		<title>67.196.3.5: /* SCons */</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:2.4/Doc/Building_Blender/Mac&amp;diff=56451&amp;oldid=prev"/>
		<updated>2010-07-23T14:47:36Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;SCons&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Note|Blender2.5|Instructions for building Blender2.5 should be placed [[Dev:2.5/Doc/Building Blender/Mac|here]]}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;osx_build_assumptions&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
* Make, SCons and CMake are all command line programs, and will require you to execute the build commands from the shell '''/Applications/Utilities/Terminal'''. &lt;br /&gt;
* If you want to use XCode, then you should use &amp;lt;tt&amp;gt;CMake -G Xcode&amp;lt;/tt&amp;gt;&lt;br /&gt;
* If you want to link against a version of Python not generally included on Mac OS X, you'll need to read [http://projects.blender.org/pipermail/bf-committers/2006-November/016168.html this message], but the basic idea is: Install MacPython for the version(s) of Python you want to support, or use Ports or Fink to do the same and symlink those into the '''/Library/Frameworks''' folder. Then, to switch the '''/Library/Frameworks/Python.framework''' you want to use, rename '''/Library/Frameworks/Python.framework''' to something like '''/Library/Frameworks/Python&amp;lt;version&amp;gt;.framework'''. This will automagically switch the Python version, because the linker will look there first--- regardless of the build variables set by the build system.&lt;br /&gt;
 &lt;br /&gt;
==== Mac OS X Build Assumptions ====&lt;br /&gt;
 &lt;br /&gt;
# Due to the ABI changes in Mac OS X, and due to the fact that Intel Macs require Mac OS X 10.4 (Tiger) and up, these instructions assume that you are building on Mac OS X 10.4 or newer. Before building blender you should familiarize yourself with the impact of the [[#ABI|ABI changes]] on your choices for satisfying depenencies.&lt;br /&gt;
# Use GCC 4.0.x. To check this, open /Applications/Utilities/Terminal and type &amp;lt;tt&amp;gt;gcc_select&amp;lt;/tt&amp;gt;. To switch, type: &amp;lt;tt&amp;gt;gcc_select 4&amp;lt;/tt&amp;gt;. This will set gcc-4.x.x as the default compiler.&lt;br /&gt;
# Shell commands assume that you are using the default shell: bash.&lt;br /&gt;
# These instructions assume that you installed Python 2.4 using the [http://python.org/ MacPython] distribution, or otherwise have '''/Library/Frameworks/Python.framework''' as version 2.4 of Python.&lt;br /&gt;
&amp;lt;/span&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
==== Make ====&lt;br /&gt;
 &lt;br /&gt;
* Read the [[#osx_build_assumptions | Mac OS X Build Assumptions]]&lt;br /&gt;
* The NaN Makefiles are custom built and well maintained. You may need to run ranlib a few times, but if you have the dependencies available, and you set them in &amp;lt;tt&amp;gt;bf-blender/blender/user-def.mk&amp;lt;/tt&amp;gt;, you should have no problem building with the NaN Makefile system. &lt;br /&gt;
* Object output directories for NaN Make and Mac OS X:&lt;br /&gt;
 &lt;br /&gt;
bf-blender/blender/obj/&lt;br /&gt;
2.42a/ (release files)&lt;br /&gt;
darwin-8.7.0-powerpc/ (libraries)&lt;br /&gt;
darwin-8.8.0-powerpc/ (objects) &lt;br /&gt;
darwin-8.6.2-i386/ (objects and libraries)&lt;br /&gt;
 &lt;br /&gt;
To &amp;lt;tt&amp;gt;make&amp;lt;/tt&amp;gt;, do the following:&lt;br /&gt;
# Open /Applications/Utilities/Terminal &lt;br /&gt;
# Set the home directory for your blender source code in an environment variable, like so (assuming you're using bash): &amp;lt;tt&amp;gt;export NANBLENDERHOME=&amp;lt;path to bf-blender/blender&amp;gt; &amp;lt;/tt&amp;gt;&lt;br /&gt;
# Type &amp;lt;tt&amp;gt;cd $NANBLENDERHOME &amp;lt;/tt&amp;gt;&lt;br /&gt;
# Copy the appropriate snippet of &amp;lt;tt&amp;gt;bf-blender/user-def.mk&amp;lt;/tt&amp;gt; below, to your own &amp;lt;tt&amp;gt;bf-blender/user-def.mk&amp;lt;/tt&amp;gt; file. &lt;br /&gt;
# Type &amp;lt;tt&amp;gt;make&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: Make will spit out lots of information about what it is doing.&lt;br /&gt;
#: When something goes wrong, and you need to see exactly what &amp;lt;tt&amp;gt;make&amp;lt;/tt&amp;gt; did, try: &lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
make NAN_QUIET=0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Intel =====&lt;br /&gt;
 &lt;br /&gt;
The &amp;lt;tt&amp;gt;bf-blender/lib/darwin-8.x.i386&amp;lt;/tt&amp;gt; directory satisfies most (if not all) of the dependencies for Intel build targets. You may need to install some of the dependencies with [http://www.macports.org/ MacPorts] (formerly [http://darwinports.opendarwin.org/ DarwinPorts]). You may need to set the following in your &amp;lt;tt&amp;gt;bf-blender/blender/user-def.mk&amp;lt;/tt&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
export NAN_PYTHON_VERSION=2.5&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the OpenAL libraries on Intel suffer from endian issues and are not supported at this time. The NaN Makefiles have disabled OpenAL for the time being.&lt;br /&gt;
 &lt;br /&gt;
===== PowerPC =====&lt;br /&gt;
 &lt;br /&gt;
The main difficulty building on PowerPC, is that the bf-blender/lib directory structure does not self-document the ABI shifts. Knowing what binary libraries were written in C++ is not always so trivial, although &amp;lt;tt&amp;gt;nm -a | grep&amp;lt;/tt&amp;gt; will help. Hopefully, this example &amp;lt;tt&amp;gt;bf-blender/user-def.mk&amp;lt;/tt&amp;gt; file for Mac OS X 10.4 (Tiger) for PowerPC will help get you started:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
export NAN_LIBDIR ?= $(NANBLENDERHOME)/../lib&lt;br /&gt;
WITH_VERSE=true&lt;br /&gt;
export NAN_FREETYPE=$(NAN_LIBDIR)/darwin-6.1-powerpc/freetype&lt;br /&gt;
export NAN_OPENAL=$(NAN_LIBDIR)/darwin-8.0.0-powerpc/openal&lt;br /&gt;
export NAN_OPENEXR=/usr/local&lt;br /&gt;
export NAN_OPENEXR_LIBS ?= \&lt;br /&gt;
  $(NAN_OPENEXR)/lib/libIlmImf.a \&lt;br /&gt;
  $(NAN_OPENEXR)/lib/libHalf.a \&lt;br /&gt;
  $(NAN_OPENEXR)/lib/libIex.a \&lt;br /&gt;
  $(NAN_OPENEXR)/lib/libIlmThread.a&lt;br /&gt;
export NAN_SDL=$(NAN_LIBDIR)/darwin-6.1-powerpc/sdl&lt;br /&gt;
export NAN_JPEG=$(NAN_LIBDIR)/darwin-6.1-powerpc/jpeg&lt;br /&gt;
export NAN_PNG = $(NAN_LIBDIR)/darwin-6.1-powerpc/png&lt;br /&gt;
export NAN_GETTEXT= $(NAN_LIBDIR)/darwin-6.1-powerpc/gettext&lt;br /&gt;
export NAN_FMOD = $(NAN_LIBDIR)/darwin-6.1-powerpc/fmod&lt;br /&gt;
export NAN_ODE = $(NAN_LIBDIR)/darwin-6.1-powerpc/ode&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Making Release builds with Make =====&lt;br /&gt;
 &lt;br /&gt;
If you're building for release on Mac OS X, you will probably want to make a compressed disk image with &amp;lt;tt&amp;gt;hdiutil&amp;lt;/tt&amp;gt; instead of distributing a &amp;lt;tt&amp;gt;*.tar.bz2&amp;lt;/tt&amp;gt; file. Mac OS X users expect it. Type &amp;lt;tt&amp;gt;man hdiutil&amp;lt;/tt&amp;gt; for help with hdiutil. To create such a disk image:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ make release&lt;br /&gt;
$ cd bf-blender/blender/obj/2.43&lt;br /&gt;
$ export UNAME=darwin-`uname -r`-`uname -p`&lt;br /&gt;
$ export BF-VERSION=2.43&lt;br /&gt;
$ tar zxvf blender-$BF-VERSION-$UNAME.tar.bz&lt;br /&gt;
$ hdiutil create -srcfolder blender-$BF-VERSION-$UNAME blender-$BF-VERSION-$UNAME.dmg \&lt;br /&gt;
-volname blender-$BF-VERSION-$UNAME -uid 99 -gid 99&lt;br /&gt;
$ hdiutil convert -format UDBZ -o blender-$BF-VERSION-$UNAME-bz2.dmg \&lt;br /&gt;
blender-$BF-VERSION-$UNAME.dmg (for Mac OS X 10.4+ only!)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ hdiutil convert -format UDZO -o blender-$BF-VERSION-$UNAME-bz2.dmg \&lt;br /&gt;
blender-$BF-VERSION-$UNAME.dmg &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Verify that the dynamic links for the minty fresh blender you've just compiled will be available on other systems which lack your development environment. Look for non-system paths, such as &amp;lt;tt&amp;gt;/usr/local/&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;/sw/&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;/opt/&amp;lt;/tt&amp;gt;, or others with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ otool -L bf-blender/blender/obj/$UNAME/bin/blender&lt;br /&gt;
$ otool -L bf-blender/blender/obj/$UNAME/bin/blenderplayer&lt;br /&gt;
$ otool -L bf-blender/blender/obj/$UNAME/bin/verse&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you find dynamically linked libraries in non-system paths, you'll need to fix the link line. This is usually not the case with NaN Make, however. With SCons and CMake, you may need to rewrite the link line to statically link against libraries (and library versions) that are unavailable on default installs of Mac OS X.&lt;br /&gt;
 &lt;br /&gt;
When you &amp;lt;tt&amp;gt;strip&amp;lt;/tt&amp;gt; the build products, be sure to use &amp;lt;tt&amp;gt;strip -x&amp;lt;/tt&amp;gt; otherwise the plugins will not link.&lt;br /&gt;
&lt;br /&gt;
==== SCons ====&lt;br /&gt;
 &lt;br /&gt;
General observations of building with SCons include the following CRITICAL notes:&lt;br /&gt;
 &lt;br /&gt;
* Read the [[#osx_build_assumptions | Mac OS X Build Assumptions]]&lt;br /&gt;
* Visit [http://www.mac-how.net/ Mac-How]&lt;br /&gt;
* Move or remove any SDL libs you've installed in the &amp;lt;tt&amp;gt;/usr/local/&amp;lt;/tt&amp;gt; tree. SCons has default search paths (from scons-user.pdf): &amp;lt;tt&amp;gt;path = ['/usr/local/bin', '/bin', '/usr/bin']&amp;lt;/tt&amp;gt; as this includes &amp;lt;tt&amp;gt;/usr/local/bin/sdl-config&amp;lt;/tt&amp;gt;, the linker &amp;lt;tt&amp;gt;-l&amp;lt;/tt&amp;gt; always links against libs in &amp;lt;tt&amp;gt;/usr/local/&amp;lt;/tt&amp;gt; and will ignore the &amp;lt;tt&amp;gt;libsdl&amp;lt;/tt&amp;gt; versions in the &amp;lt;tt&amp;gt;bf-blender/lib&amp;lt;/tt&amp;gt; tree.&lt;br /&gt;
* If you get conflicts with OpenAL, the linker is probably not seeing the &amp;lt;tt&amp;gt;bf-blender/lib&amp;lt;/tt&amp;gt; for SDL, and is instead finding a different version, with a different ABI/compiler version. &lt;br /&gt;
* To avoid hacking the &amp;lt;tt&amp;gt;bf-blender/blender/user-config.py&amp;lt;/tt&amp;gt; very much, download, build, and install openexr (in the default location of /usr/local/) directly from openexr.org.&lt;br /&gt;
* The greatest difficulties building with SCons are difficulties satisfying dependencies.&lt;br /&gt;
 &lt;br /&gt;
===== Intel =====&lt;br /&gt;
 &lt;br /&gt;
Here is an example scons command line with options set, as documented in &amp;lt;tt&amp;gt;bf-blender/doc/blender-scons.txt&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;
$ python scons/scons.py BF_DEBUG=0 WITH_BF_GAMEENGINE=true WITH_BF_PLAYER=true \&lt;br /&gt;
WITH_BF_VERSE=yes BF_QUIET=0 WITH_BF_SDL=true \&lt;br /&gt;
WITH_BF_OPENEXR=true BF_INSTALLDIR=$INSTALLDIR&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== PowerPC =====&lt;br /&gt;
 &lt;br /&gt;
Here is an example scons command line with options set, as documented in &amp;lt;tt&amp;gt;bf-blender/doc/blender-scons.txt&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;
$ python scons/scons.py BF_DEBUG=0 WITH_BF_GAMEENGINE=true \&lt;br /&gt;
WITH_BF_PLAYER=true WITH_BF_VERSE=yes BF_QUIET=0 \ &lt;br /&gt;
WITH_BF_SDL=true WITH_BF_OPENEXR=true BF_INSTALLDIR=$INSTALLDIR&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
You may want to start with this &amp;lt;tt&amp;gt;bf-blender/blender/user-config.py&amp;lt;/tt&amp;gt; snippet:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
LIBSGCC4 = '#../lib/darwin-8.0.0-powerpc'&lt;br /&gt;
 &lt;br /&gt;
WITH_BF_OPENAL = 'true'&lt;br /&gt;
BF_OPENAL = LIBSGCC4 + '/openal'&lt;br /&gt;
BF_OPENAL_INC = '${BF_OPENAL}/include'&lt;br /&gt;
BF_OPENAL_LIB = 'openal'&lt;br /&gt;
BF_OPENAL_LIBPATH = '${BF_OPENAL}/lib'&lt;br /&gt;
 &lt;br /&gt;
WITH_BF_OPENEXR = 'true'&lt;br /&gt;
BF_OPENEXR = '/usr/local'&lt;br /&gt;
BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR'&lt;br /&gt;
BF_OPENEXR_LIBPATH = &amp;quot;${BF_OPENEXR}/lib&amp;quot;&lt;br /&gt;
BF_OPENEXR_LIB = ' Iex Half IlmImf Imath IlmThread'&lt;br /&gt;
 &lt;br /&gt;
WITH_BF_VERSE = 'true'&lt;br /&gt;
BF_VERSE_INCLUDE = &amp;quot;#extern/verse/dist&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
WITH_BF_GAMEENGINE='true'&lt;br /&gt;
WITH_BF_PLAYER='true'&lt;br /&gt;
 &lt;br /&gt;
WITH_BF_ICONV = 'true'&lt;br /&gt;
##BF_ICONV = LIBDIR + '/../darwin-8.8.0-powerpc/iconv'&lt;br /&gt;
BF_ICONV = '/usr'&lt;br /&gt;
BF_ICONV_INC = '${BF_ICONV}/include'&lt;br /&gt;
BF_ICONV_LIB = 'libiconv'&lt;br /&gt;
BF_ICONV_LIBPATH = '${BF_ICONV}/lib'&lt;br /&gt;
 &lt;br /&gt;
REL_CFLAGS = ['-Os','-mpowerpc-gfxopt']&lt;br /&gt;
REL_CCFLAGS = ['-Os','-mpowerpc-gfxopt']&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Note that resultant builds using this snippet will dynamically link to non-system path libraries, most notably, OpenEXR.&lt;br /&gt;
&lt;br /&gt;
==== CMake ====&lt;br /&gt;
 &lt;br /&gt;
* Read the [[#osx_build_assumptions | Mac OS X Build Assumptions]]&lt;br /&gt;
* CMake is the most recent build system for blender. On Mac OS X, CMake will generate project files for XCode, KDevelop3, or &amp;quot;Unix Makefiles&amp;quot;. &lt;br /&gt;
* Object output directories for CMake and Mac OS X:&lt;br /&gt;
 &lt;br /&gt;
bf-blender/&lt;br /&gt;
lib/$CONFIGURATION&lt;br /&gt;
&lt;br /&gt;
===== Intel =====&lt;br /&gt;
 &lt;br /&gt;
====== CMake -G &amp;quot;Unix Makefiles&amp;quot; ======&lt;br /&gt;
 &lt;br /&gt;
To build with Unix Makefiles generated by CMake:&lt;br /&gt;
&lt;br /&gt;
# Open Terminal (Applications &amp;gt; Utilities &amp;gt; Terminal):&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mkdir ~/Projects/bf-blender&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
# In &amp;lt;tt&amp;gt;bf-blender&amp;lt;/tt&amp;gt;, type &lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
ccmake -G &amp;quot;Unix Makefiles&amp;quot; ../blender&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====== CMake -G &amp;quot;Xcode&amp;quot; ======&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
===== PowerPC =====&lt;br /&gt;
 &lt;br /&gt;
====== CMake -G &amp;quot;Unix Makefiles&amp;quot; ======&lt;br /&gt;
 &lt;br /&gt;
====== CMake -G &amp;quot;Xcode&amp;quot; ======&lt;br /&gt;
&lt;br /&gt;
[[Category:Script]]&lt;/div&gt;</summary>
		<author><name>67.196.3.5</name></author>
		
	</entry>
</feed>