<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Compiling the viewer with SCons (Linux) - Revision history</title>
		<link>https://wiki.secondlife.com/w/index.php?title=Compiling_the_viewer_with_SCons_(Linux)&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.42.1</generator>
		<lastBuildDate>Thu, 11 Jun 2026 09:01:55 GMT</lastBuildDate>
		<item>
			<title>Zai Lynch: +{{CompileNav}}</title>
			<link>https://wiki.secondlife.com/w/index.php?title=Compiling_the_viewer_with_SCons_(Linux)&amp;diff=182423&amp;oldid=prev</link>
			<guid isPermaLink="false">https://wiki.secondlife.com/w/index.php?title=Compiling_the_viewer_with_SCons_(Linux)&amp;diff=182423&amp;oldid=prev</guid>
			<description>&lt;p&gt;+{{CompileNav}}&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:33, 21 December 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{CompileNav}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This page is referred to by [[Compiling the viewer (Linux)]], and contains instructions for building the viewer using SCons.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This page is referred to by [[Compiling the viewer (Linux)]], and contains instructions for building the viewer using SCons.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Sun, 21 Dec 2008 22:33:18 GMT</pubDate>
			<dc:creator>Zai Lynch</dc:creator>
			<comments>https://wiki.secondlife.com/wiki/Talk:Compiling_the_viewer_with_SCons_(Linux)</comments>
		</item>
		<item>
			<title>Rob Linden: SCons instructions moved from Compiling the viewer (Linux)</title>
			<link>https://wiki.secondlife.com/w/index.php?title=Compiling_the_viewer_with_SCons_(Linux)&amp;diff=181053&amp;oldid=prev</link>
			<guid isPermaLink="false">https://wiki.secondlife.com/w/index.php?title=Compiling_the_viewer_with_SCons_(Linux)&amp;diff=181053&amp;oldid=prev</guid>
			<description>&lt;p&gt;SCons instructions moved from &lt;a href=&quot;/wiki/Compiling_the_viewer_(Linux)&quot; class=&quot;mw-redirect&quot; title=&quot;Compiling the viewer (Linux)&quot;&gt;Compiling the viewer (Linux)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This page is referred to by [[Compiling the viewer (Linux)]], and contains instructions for building the viewer using SCons.&lt;br /&gt;
&lt;br /&gt;
{{Warning|These instructions will only work for older viewers (1.20 and earlier).  For 1.21 and newer, use [[Building the viewer with CMake|CMake]]}}&lt;br /&gt;
&lt;br /&gt;
=== Build Types ===&lt;br /&gt;
The &amp;#039;&amp;#039;BUILD&amp;#039;&amp;#039; parameter specifies the build type. For normal usage, use &amp;#039;&amp;#039;&amp;#039;release&amp;#039;&amp;#039;&amp;#039;. If you plan to work on the source, choose &amp;#039;&amp;#039;&amp;#039;releasenoopt&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;debug&amp;#039;&amp;#039;&amp;#039;, as these versions are unoptimized and much easier to debug.  &lt;br /&gt;
&lt;br /&gt;
You can also edit the scons file to cause releasefordownload to skip the &amp;quot;stripping&amp;quot; step, for a version that is relatively easy to debug, yet still performs well.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;release&amp;#039;&amp;#039;&amp;#039;: Optimized build for release.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;releasenoopt&amp;#039;&amp;#039;&amp;#039;: Unoptimized build.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;debug&amp;#039;&amp;#039;&amp;#039;: Debug build with assertions.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;releasefordownload&amp;#039;&amp;#039;&amp;#039;: Optimized build for release, will create a .tar.gz with the files for distribution.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Building ===&lt;br /&gt;
=== Enabling llMozLib ===&lt;br /&gt;
Add MOZLIB=yes to your Scons build command when compiling the source.  Failure to do this will cause errors on some versions, due to badly structured ifdefs in the code.  If you really don&amp;#039;t want mozlib you must apply the patches attached to VWR-3748.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 $ cd indra&lt;br /&gt;
 $ scons DISTCC=no BTARGET=client BUILD=release MOZLIB=yes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Expect a build time of a couple of hours.  The resulting unstripped Second Life Viewer binary is &amp;lt;b&amp;gt;newview/secondlife-i686-bin&amp;lt;/b&amp;gt;. Note that temporary object code is compiled into &amp;lt;b&amp;gt;/tmp/$USER&amp;lt;/b&amp;gt; by default (where $USER is your username) - this can be changed by prefixing the &amp;lt;b&amp;gt;scons&amp;lt;/b&amp;gt; command above with &amp;lt;b&amp;gt;TEMP_BUILD_DIR=&amp;quot;&amp;lt;i&amp;gt;[full directory path]&amp;lt;/i&amp;gt;&amp;quot;&amp;lt;/b&amp;gt;. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 $ TEMP_BUILD_DIR=&amp;quot;/home/fred/secondlife/temp-build&amp;quot; scons DISTCC=no BTARGET=client BUILD=release&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To build a release that has all of the shaders and optimizations enabled and resembles the official shipped Linux client, use BUILD=releasefordownload&lt;br /&gt;
&lt;br /&gt;
Be sure to read the [[Common compilation problems]] page if you have problems - we&amp;#039;ll try to keep the page up to date with known problems and solutions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Return to [[Compiling the viewer (Linux)]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Compiling viewer]]&lt;/div&gt;</description>
			<pubDate>Sat, 20 Dec 2008 02:09:09 GMT</pubDate>
			<dc:creator>Rob Linden</dc:creator>
			<comments>https://wiki.secondlife.com/wiki/Talk:Compiling_the_viewer_with_SCons_(Linux)</comments>
		</item>
</channel></rss>