﻿<?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%3ADingTo%2FOpenShadingLanguage%2FCompile</id>
	<title>利用者:DingTo/OpenShadingLanguage/Compile - 版の履歴</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%3ADingTo%2FOpenShadingLanguage%2FCompile"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:DingTo/OpenShadingLanguage/Compile&amp;action=history"/>
	<updated>2026-10-07T06:25:00Z</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:DingTo/OpenShadingLanguage/Compile&amp;diff=138081&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:DingTo/OpenShadingLanguage/Compile&amp;diff=138081&amp;oldid=prev"/>
		<updated>2018-06-28T20:50:40Z</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日 (木) 20:50時点における版&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:DingTo/OpenShadingLanguage/Compile&amp;diff=138080&amp;oldid=prev</id>
		<title>2013年1月29日 (火) 14:17にwiki&gt;Brechtによる</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:DingTo/OpenShadingLanguage/Compile&amp;diff=138080&amp;oldid=prev"/>
		<updated>2013-01-29T14:17:07Z</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;== Precompiled libraries ==&lt;br /&gt;
&lt;br /&gt;
* Mac OS: the necessary libraries are in our SVN: (https://svn.blender.org/svnroot/bf-blender/trunk/lib/darwin-9.x.universal/)&lt;br /&gt;
&lt;br /&gt;
* For Linux, use the new Script in SVN to compile the dependencies.&lt;br /&gt;
&lt;br /&gt;
* Windows: the libraries are in SVN too. (lib/windows and lib/win64)&lt;br /&gt;
&lt;br /&gt;
== Compile OSL on Linux ==&lt;br /&gt;
Note: This guide is only here for reference, to get Blender + OSL see above^^.&lt;br /&gt;
&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
* Boost 1.49/1.50/1.51 (http://www.boost.org/)&lt;br /&gt;
&lt;br /&gt;
* OIIO 1.1 or higher (https://github.com/OpenImageIO/oiio)&lt;br /&gt;
&lt;br /&gt;
* OSL master or 1.3 (https://github.com/imageworks/OpenShadingLanguage)&lt;br /&gt;
&lt;br /&gt;
* LLVM 3.0 / 3.1 or Clang 3.1 &lt;br /&gt;
&lt;br /&gt;
* flex, bison, can be installed from the Ubuntu Repository.&lt;br /&gt;
&lt;br /&gt;
ATTENTION: Make sure you use right versions, as noted above. Especially important is use recent OSL and OIIO versions. Other versions probably won't work!!&lt;br /&gt;
&lt;br /&gt;
=== Boost ===&lt;br /&gt;
* Compile&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
./bootstrap.sh&lt;br /&gt;
&lt;br /&gt;
./bjam -j4 variant=release link=static threading=multi --with-filesystem --with-thread --with-regex --with-system --with-date_time stage cxxflags=-fPIC&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== OpenImageIO ===&lt;br /&gt;
* Go into the OIIO source folder.&lt;br /&gt;
* Create the directory build/linux and cd into it.&lt;br /&gt;
&lt;br /&gt;
* Compile static libraries:&lt;br /&gt;
&lt;br /&gt;
* Replace /path_to_includes with your path to Boost includes (example: ./lib/linux64/boost/include)&lt;br /&gt;
* Replace /path_to_libs with your path to Boost libs (example: ./lib/linux64/boost/lib)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
cmake ../../src/ -DBUILDSTATIC=1 -DBOOST_CUSTOM=1 -DBoost_INCLUDE_DIRS=/path_to_includes -DBoost_LIBRARY_DIRS=/path_to_libs -DBoost_LIBRARIES=&amp;quot;boost_date_time;boost_filesystem;boost_thread;boost_regex;boost_system&amp;quot; -DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_INSTALL_PREFIX=`pwd`/../../dist/linux64&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* make install&lt;br /&gt;
&lt;br /&gt;
=== Open Shading Language ===&lt;br /&gt;
* Set environment variables for OIIO, BOOST and LLVM. Replace the example paths with the ones of the previously compiled libraries on your system. &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
export OPENIMAGEIOHOME=path/to/OIIO&lt;br /&gt;
export BOOST_HOME=path/to/BOOST&lt;br /&gt;
export LLVM_VERSION=3.0&lt;br /&gt;
export LLVM_DIRECTORY=path/to/LLVM&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* run &amp;quot;make cmakesetup&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* ccmake ./build/linux64 (this path might be different on your OS)&lt;br /&gt;
&lt;br /&gt;
* Change the following options in cmake:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
BUILDSTATIC=ON&lt;br /&gt;
LINKSTATIC=ON&lt;br /&gt;
BUILD_TESTING=OFF&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* run &amp;quot;make&amp;quot; again.&lt;br /&gt;
&lt;br /&gt;
=== Blender ===&lt;br /&gt;
* Copy all libs to the Blender libfolder (lib/linux64/), cmake should find them. &lt;br /&gt;
&lt;br /&gt;
* Set the following CMake options:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
CYCLES_OSL=ON&lt;br /&gt;
WITH_LLVM=ON&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After updating cmake you will currently have to change some options&lt;br /&gt;
again (this is a bit stupid, will be fixed):&lt;br /&gt;
&lt;br /&gt;
* Set these to same values as in OSL:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
LLVM_VERSION&lt;br /&gt;
LLVM_DIRECTORY&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then run cmake update again and build as usual.&lt;br /&gt;
&lt;br /&gt;
* Change the &amp;quot;Shading System&amp;quot; to &amp;quot;Open Shading Language&amp;quot; in the Properties Editor. Enjoy.&lt;/div&gt;</summary>
		<author><name>wiki&gt;Brecht</name></author>
		
	</entry>
</feed>