<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.secondlife.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Apotheus+Silverman</id>
	<title>Second Life Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.secondlife.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Apotheus+Silverman"/>
	<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/wiki/Special:Contributions/Apotheus_Silverman"/>
	<updated>2026-07-26T17:42:05Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=LlGetFreeMemory&amp;diff=1118092</id>
		<title>LlGetFreeMemory</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=LlGetFreeMemory&amp;diff=1118092"/>
		<updated>2010-12-01T23:32:00Z</updated>

		<summary type="html">&lt;p&gt;Apotheus Silverman: Fixed incorrect word in sample script&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{LSL_Function&lt;br /&gt;
|func_id=225|func_sleep=0.0|func_energy=10.0&lt;br /&gt;
|func=llGetFreeMemory&lt;br /&gt;
|return_type=integer&lt;br /&gt;
|func_desc&lt;br /&gt;
|Return_text=of the number of free bytes of memory the script can use.&lt;br /&gt;
|func_footer&lt;br /&gt;
|spec=&lt;br /&gt;
This function&#039;s behavior is dependent upon the VM the script is using. [[#Mono|Mono]] is the new VM, [[#LSO|LSO]] is the old VM. The big difference between between Mono and LSO is that Mono scripts run faster and can utilize four times more memory.&lt;br /&gt;
&lt;br /&gt;
===Mono===&lt;br /&gt;
&lt;br /&gt;
In Mono the value returned is the amount of free memory available to the script prior to garbage collection being run. This means that memory that is awaiting garbage collection counts against the scripts 64KiB allotment. In addition to this, Mono does not enforce the memory restrictions as strictly as the LSO VM did{{Footnote|http://www.langnetsymposium.com/2009/talks/17-JimPurbrick-SecondLife.html}} (with LSO it was &amp;lt;u&amp;gt;impossible&amp;lt;/u&amp;gt; to exceed the 16KiB memory cap), consequently it is possible to utilize more of the free memory{{Footnote|In LSO, all types are immutable, every operation results in Heap values being duplicated, meaning &amp;lt;code&amp;gt;a = a + a;&amp;lt;/code&amp;gt; resulting in 3 values of |In LSO, all types are immutable, every operation results in Heap values being duplicated, meaning a = a + a; resulting in 3 values of }}.&lt;br /&gt;
&lt;br /&gt;
===LSO===&lt;br /&gt;
&lt;br /&gt;
In LSO, the value returned by this function is the amount of memory that the Stack can use of the Heap has yet to allocate for itself.&lt;br /&gt;
&lt;br /&gt;
The LSL memory space is divided into four sections: Byte-code, Stack, Free Memory, Heap. Free Memory isn&#039;t an allocated block of memory, it&#039;s just the space between Stack and Heap. The size of all four sections combined is 16384 bytes (16KiB).&lt;br /&gt;
&lt;br /&gt;
[[String]]s, [[list]]s and [[key]]s are stored in the Heap. Heap pointers (for [[string]]s, [[list]]s &amp;amp; [[key]]s), [[integer]]s, [[float]]s, [[vector]]s and [[rotation]]s are all temporarily stored in the stack as the script executes.&lt;br /&gt;
&lt;br /&gt;
As the script executes the Stack grows and shrinks in size depending upon the complexity of the expressions being executed. Likewise the Heap grows as the script executes but unlike the Stack, it never shrinks in size. When there is no free memory left for Stack or Heap to use they collide and a Stack-Heap Collision error is thrown causing the script to crash.&lt;br /&gt;
&lt;br /&gt;
The Heap can become fragmented and blocks of memory in it can become unusable (due to their size). There is no defragment function{{Footnote|Due to the design of the LSO VM, a defragment function is impossible.}} but there are scripting techniques that can be used to reduce fragmentation.&lt;br /&gt;
|caveats=&lt;br /&gt;
*The number of free bytes the Heap can use may be greater but not less.&lt;br /&gt;
|constants&lt;br /&gt;
|examples=&lt;br /&gt;
Calling llGetFreeMemory can look like this:&lt;br /&gt;
&amp;lt;lsl&amp;gt;&lt;br /&gt;
integer free_memory = llGetFreeMemory();&lt;br /&gt;
llOwnerSay((string)free_memory + &amp;quot; bytes of free memory available for allocation.&amp;quot;);&lt;br /&gt;
&amp;lt;/lsl&amp;gt;&lt;br /&gt;
|helpers&lt;br /&gt;
|also_functions&lt;br /&gt;
|also_events&lt;br /&gt;
|also_tests&lt;br /&gt;
|also_articles&lt;br /&gt;
|notes=See also: the &amp;quot;Script run-time error&amp;quot; &amp;quot;Stack-Heap Collision&amp;quot; among the [[LSL Errors]]&lt;br /&gt;
|lso=This function does not count free memory, and the name of this function makes this function difficult for people to learn. People say this function may be redefined or superseded by another more useful function when the LSL VM moves to [[Mono]].&lt;br /&gt;
&lt;br /&gt;
We can concisely specify llGetFreeMemory in the context of the classic Unix model for a parallel task/ thread/ process. Think of the task of the script always holding 16384 bytes (16 KiB). Let the byte code and then stack grow up from the bottom, let the heap grow down from the top. llGetFreeMemory then returns the &amp;quot;historic lowest heap pointer minus the stack end pointer&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
llGetFreeMemory does not count the bytes freed, llGetFreeMemory instead counts all the bytes never yet used.&lt;br /&gt;
|cat1=Script&lt;br /&gt;
|cat2&lt;br /&gt;
|cat3&lt;br /&gt;
|cat4&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Apotheus Silverman</name></author>
	</entry>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=Viewer_2_Microsoft_Windows_Builds&amp;diff=986982</id>
		<title>Viewer 2 Microsoft Windows Builds</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=Viewer_2_Microsoft_Windows_Builds&amp;diff=986982"/>
		<updated>2010-07-23T22:58:01Z</updated>

		<summary type="html">&lt;p&gt;Apotheus Silverman: /* Boost */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{multi-lang}}&lt;br /&gt;
{{CompileNav}}&lt;br /&gt;
&lt;br /&gt;
THESE INSTRUCTIONS ARE NOT YET COMPLETE OR DEBUGGED as of 18 April 2010.  &lt;br /&gt;
&lt;br /&gt;
When finished, we hope this page will constitute a complete recipe for compiling viewer 2 from source on a Windows machine.  &lt;br /&gt;
&lt;br /&gt;
Philosophy: to keep it brief, this page should only include steps we KNOW ARE NEEDED, not random hints.  Extra details or open issues can go on the talk page.&lt;br /&gt;
&lt;br /&gt;
Following this recipe will probably take 6 to 12 hours of wall-clock time, and 2 to 6 hours of your time, if you&#039;re starting from a fresh Windows XP/Vista/7 system.&lt;br /&gt;
&lt;br /&gt;
== Establish your programming environment ==&lt;br /&gt;
This is needed for compiling any viewer based on the LL open source code, but only needs to be done once.&lt;br /&gt;
&lt;br /&gt;
* Obtain Visual Studio (2005, 2008, 2010) (Express is OK)&lt;br /&gt;
** [http://www.microsoft.com/express/download/ Click here to download Visual C++ Express - current version is VS2010]&lt;br /&gt;
** Note: LL still uses VS2005 internally, which uses the VC80 libraries.  VS2008 uses the VC90 libraries. VS2010 TBD (test with the VC90 libraries new ones for VC100 may need to be made).&lt;br /&gt;
* Install Microsoft Platform &amp;amp; DirectX SDKs&lt;br /&gt;
** Download and install [http://www.microsoft.com/downloads/details.aspx?FamilyID=F26B1AA4-741A-433A-9BE5-FA919850BDBF&amp;amp;displaylang=en Windows SDK for Windows Server 2008 and .NET Framework 3.5]&lt;br /&gt;
** Download and install [http://www.microsoft.com/downloads/details.aspx?FamilyID=ea4894b5-e98d-44f6-842d-e32147237638&amp;amp;DisplayLang=en DirectX SDK (August 2008)]&lt;br /&gt;
&lt;br /&gt;
* Install other development tools&lt;br /&gt;
** &#039;&#039;&#039;UniCode NSIS&#039;&#039;&#039;([http://www.scratchpaper.com/home/downloads download Unicode NSIS])&lt;br /&gt;
***  This is the package installer used to build Setup.exe. &amp;lt;b&amp;gt;Note&amp;lt;/b&amp;gt;: As of this writing the file is downloaded with an *.exec extension that needs renamed *.exe.--[[User:Nicky Perian|Nicky Perian]] 16:22, 30 March 2010 (UTC)&lt;br /&gt;
** &#039;&#039;&#039;CMake&#039;&#039;&#039; ([http://www.cmake.org/HTML/Download.html download CMake])&lt;br /&gt;
*** must be version 2.6.2 or higher (and ensure any older versions aren&#039;t in your PATH environment variables)&lt;br /&gt;
** &#039;&#039;&#039;Cygwin&#039;&#039;&#039; ([http://www.cygwin.com/ download Cygwin])&lt;br /&gt;
*** When you run the cygwin setup utility make sure you have selected to install &#039;&#039;&#039;patchutils&#039;&#039;&#039;, &#039;&#039;&#039;flex&#039;&#039;&#039;, and &#039;&#039;&#039;bison&#039;&#039;&#039; (all located under &amp;quot;devel&amp;quot;) which are not part of the default install.&lt;br /&gt;
** &#039;&#039;&#039;Python&#039;&#039;&#039; (download either [http://www.python.org/download/ Python.org Standard Python] or  [http://www.activestate.com/Products/ActivePython/?mp=1 ActivePython]&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;SVN software:&#039;&#039;&#039;(added by [[User:WolfPup Lowenhar|WolfPup Lowenhar]] 02:16, 19 April 2010 (UTC) )&lt;br /&gt;
**&#039;&#039;&#039;TortoiseSVN:&#039;&#039;&#039; http://tortoisesvn.net/&lt;br /&gt;
***&#039;&#039;&#039;Download Page:&#039;&#039;&#039;&lt;br /&gt;
****[http://tortoisesvn.net/downloads TortoiseSVN Downloads](contains link to 32-bit and 64-bit intsallers)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you use SVN software I suggest actually using the same file tree as LL does that way it will be easier to talk about some thing in a particular folder or file with your fellow builders.&lt;br /&gt;
&lt;br /&gt;
== Download and compile libraries that must be manually added to each LL source release ==&lt;br /&gt;
&lt;br /&gt;
It is probably a good idea to build an empty directory tree for the files below and first copy the files there and once completed, copy the whole tree to the actual source folder. Then, if you obtain a new batch of source code, you can save some steps.&lt;br /&gt;
&lt;br /&gt;
 rem OLIBS.CMD to build a folder tree for 3rd party libraries and includes&lt;br /&gt;
 md olibs&lt;br /&gt;
 md olibs\linden\&lt;br /&gt;
 md olibs\linden\libraries&lt;br /&gt;
 md olibs\linden\libraries\include&lt;br /&gt;
 md olibs\linden\libraries\i686-win32&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\lib&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\lib\release&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\lib\debug&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\include&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\include\GL&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\include\quicktime&lt;br /&gt;
 md olibs\linden\indra&lt;br /&gt;
 md olibs\linden\indra\newview&lt;br /&gt;
&lt;br /&gt;
 SVN folder tree - for simplicity of copying files to your build folder&lt;br /&gt;
   trunk\indra\newview&lt;br /&gt;
   trunk\libraries\i686-win32\include\GL&lt;br /&gt;
   trunk\libraries\i686-win32\include\quicktime&lt;br /&gt;
   trunk\libraries\i686-win32\lib\debug&lt;br /&gt;
   trunk\libraries\i686-win32\lib\release&lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
=== Quicktime ===&lt;br /&gt;
&lt;br /&gt;
* Download &amp;amp; install the [http://developer.apple.com/quicktime/download/ Quicktime SDK for Windows] (login may be necessary).&lt;br /&gt;
* copy &amp;quot;QuicktimeSDK\Libraries\QTMLClient.lib&amp;quot; to &amp;quot;olibs\linden\libraries\i686-win32\lib\release&amp;quot; and to &amp;quot;olibs\linden\libraries\i686-win32\lib\debug&amp;quot;&lt;br /&gt;
* Copy the contents of &amp;quot;QuicktimeSDK\CIncludes&amp;quot; into &amp;quot;olibs\linden\libraries\i686-win32\include\quicktime&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Fmod ===&lt;br /&gt;
* Download &amp;amp; extract [http://www.fmod.org/files/fmod3/fmodapi375win.zip FMOD3.75 API for Windows]. (later versions, like FMOD Ex, are incompatible).&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\inc\fmod.h&amp;quot; to &amp;quot;olibs\linden\libraries\include&amp;quot;&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\inc\fmod_errors.h&amp;quot; to &amp;quot;olibs\linden\libraries\include&amp;quot;&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\inc\fmoddyn.h&amp;quot; to &amp;quot;olibs\linden\libraries\include&amp;quot;&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\lib\fmodvc.lib&amp;quot; to &amp;quot;olibs\linden\libraries\i686-win32\lib\release&amp;quot; and to &amp;quot;olibs\linden\libraries\i686-win32\lib\debug&amp;quot;&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\fmod.dll&amp;quot; to &amp;quot;olibs\linden\indra\newview&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Boost ===&lt;br /&gt;
&lt;br /&gt;
Only needed if not using VS2005.&lt;br /&gt;
&lt;br /&gt;
* Grab the files that Robin Cornelius has precompiled at &lt;br /&gt;
http://www.byteme.org.uk/downloads/boost_1_39_VC90_no_scl_shared_crt_static_link.zip&lt;br /&gt;
* If you get the zip file from Robin Cornelius copy the libraries folder into the the tree you made above for  fmod and QuickTime files that way you have a ready back up of those files for if you update your build directory from the SVN server.&lt;br /&gt;
* or alternatively follow the instructions from the 25/Feb/10 and 15/Apr/10 entries of http://jira.secondlife.com/browse/VWR-9541&lt;br /&gt;
&lt;br /&gt;
((TBD: verify, simplify, fix))&lt;br /&gt;
&lt;br /&gt;
=== cares ===&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
== Set up your source code tree ==&lt;br /&gt;
&lt;br /&gt;
LL distributes the source code in three parts: the source package, the artwork package, and the library package.   You should choose whether to use a snapshot or SVN checkout.  You&#039;ll need art and libraries from a snapshot if you use the SVN method.&lt;br /&gt;
&lt;br /&gt;
* Unzip or checkout your source tree into a directory that has as short full pathname as possible, with NO SPACES in it, to avoid trouble in the build scripts. A sugestion would be to use the same dev tree as LL as all folder names are short and do not have any spaces.&lt;br /&gt;
&lt;br /&gt;
* Example:  ((specific snapshot example TBD; SVN example also ))&lt;br /&gt;
&lt;br /&gt;
* Copy your &amp;quot;olibs&amp;quot; from above into the source tree.&lt;br /&gt;
&lt;br /&gt;
== Fix known problems with the source code tree ==&lt;br /&gt;
&lt;br /&gt;
TBD - edits to scripts that must be made for windows VC90 builds to succeed?&lt;br /&gt;
&lt;br /&gt;
Known Problems:&lt;br /&gt;
* /indra/cmake/Boost.cmake file has to be edited as shown in [http://jira.secondlife.com/browse/VWR-9541?focusedCommentId=168967&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_168967 VWR-9541] in order to use the boost files in VS2008.&lt;br /&gt;
&lt;br /&gt;
== Initial build steps using develop.py and CMake ==&lt;br /&gt;
&lt;br /&gt;
You may notice that there&#039;s no Visual Studio project file as part of the distributed source tree.  That&#039;s because it is GENERATED in this step using command-line tools.  Only after this step can you begin using the IDE.&lt;br /&gt;
&lt;br /&gt;
* open a Command Prompt window&lt;br /&gt;
&lt;br /&gt;
*Get public tarballs(artwork and other needed files)[ added by [[User:WolfPup Lowenhar|WolfPup Lowenhar]] 03:16, 1 May 2010 (UTC) ]&lt;br /&gt;
** From the command line, &#039;&#039;&#039;cd into the trunk\scripts subdirectory&#039;&#039;&#039;&lt;br /&gt;
** Run &amp;lt;code&amp;gt;&amp;quot;python public_fetch_tarballs.py&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
** &amp;quot;trunk&amp;quot; should now have three LICENSE files in it.&lt;br /&gt;
&lt;br /&gt;
* Run develop.py --&lt;br /&gt;
** From the command line, &#039;&#039;&#039;cd into the indra subdirectory&#039;&#039;&#039; &lt;br /&gt;
** Run &amp;lt;code&amp;gt;&amp;quot;develop.py -G VC90&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;python develop.py -G VC90&amp;quot;&amp;lt;/code&amp;gt; NOTE: use &amp;lt;code&amp;gt; -G VC80 &amp;lt;/code&amp;gt; if you are using VS2005&lt;br /&gt;
** The &amp;lt;code&amp;gt;develop.py&amp;lt;/code&amp;gt; script will create and populate a build directory for you.  It should be in &amp;lt;code&amp;gt;&#039;build-vc90&#039;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&#039;build-vc80&#039;&amp;lt;/code&amp;gt; if using VS2005&lt;br /&gt;
&lt;br /&gt;
((TBD: how to tell if you succeeded))&lt;br /&gt;
&lt;br /&gt;
When it completes you will get your command prompt back and it should say something like:&lt;br /&gt;
&lt;br /&gt;
 Trying to set active config to &amp;quot;RelWithDebInfo&amp;quot;&lt;br /&gt;
   Success!&lt;br /&gt;
 Trying to set &amp;quot;secondlife-bin&amp;quot; to the startup project&lt;br /&gt;
   Success!&lt;br /&gt;
 got ret 0 from tools\vstool\VSTool.exe --solution build-VC80\SecondLife.sln --config RelWithDebInfo --startup secondlife-bin&lt;br /&gt;
&lt;br /&gt;
== Compile using the IDE ==&lt;br /&gt;
&lt;br /&gt;
* Run Visual Studio.&lt;br /&gt;
* Configure Visual Studio.&lt;br /&gt;
**Use Tools&amp;gt;Options to get the Options window open.&lt;br /&gt;
**Goto Projects and Solutions&amp;gt;VC++ Directories and set the following:&lt;br /&gt;
 Executable Files:&lt;br /&gt;
 $(SystemRoot)&lt;br /&gt;
 $(SystemRoot)\System32&lt;br /&gt;
 $(SystemRoot)\System32\wbem&lt;br /&gt;
 $(VCInstallDir)bin&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\bin&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\common\bin&lt;br /&gt;
 $(VSInstallDir)Common7\Tools\bin&lt;br /&gt;
 $(VSInstallDir)Common7\tools&lt;br /&gt;
 $(VSInstallDir)Common7\ide&lt;br /&gt;
 $(ProgramFiles)\HTML Help Workshop&lt;br /&gt;
 $(FrameworkSDKDir)bin&lt;br /&gt;
 $(FrameworkDir)$(FrameworkVersion)&lt;br /&gt;
 $(VSInstallDir)&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin&lt;br /&gt;
 C:\Python26&lt;br /&gt;
 C:\Program Files\NSIS&lt;br /&gt;
 $(SystemRoot)\SysWow64   (needed in Vista and 7 64-bit version)&lt;br /&gt;
 $(FxCopDir)&lt;br /&gt;
 $(PATH)&lt;br /&gt;
 C:\cygwin\bin&lt;br /&gt;
&lt;br /&gt;
 Included Files:&lt;br /&gt;
 $(VCInstallDir)include&lt;br /&gt;
 $(VCInstallDir)atlmfc\include&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\include&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\common\include&lt;br /&gt;
 $(FrameworkSDKDir)include&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Include&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\gl&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Samples\winui\TSF\tsfapp&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Include&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\gl&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Samples\winui\TSF\tsfapp&lt;br /&gt;
 C:\Program Files\Microsoft DirectX SDK (February 2010)\Include&lt;br /&gt;
&lt;br /&gt;
 Library Files:&lt;br /&gt;
 $(VCInstallDir)lib&lt;br /&gt;
 $(VCInstallDir)atlmfc\lib&lt;br /&gt;
 $(VCInstallDir)atlmfc\lib\i386&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\lib&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\common\lib&lt;br /&gt;
 $(FrameworkSDKDir)lib&lt;br /&gt;
 $(VSInstallDir)&lt;br /&gt;
 $(VSInstallDir)lib&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Lib&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Lib&lt;br /&gt;
 C:\Program Files\Microsoft DirectX SDK (February 2010)\Lib\x86&lt;br /&gt;
&lt;br /&gt;
* Use &amp;quot;File -&amp;gt; Open -&amp;gt; Project/Solution&amp;quot;, navigate to linden/indra/build-VC90/Viewer.vcproj, and open it.&lt;br /&gt;
** if you can&#039;t find this file, perhaps your previous run of develop.py failed.&lt;br /&gt;
* In the MSVS toolbar, just to the right of the triangular &amp;quot;Start Debugging&amp;quot; arrow, is a text box whose tooltip is &amp;quot;Solution Configurations&amp;quot;. Select RelWithDebugInfo.&lt;br /&gt;
* If ALL_BUILD is not set as your StartUp Project (the StartUp Project is displayed in bold font), right-click on ALL_BUILD and choose &amp;quot;Set as StartUp Project&amp;quot;.&lt;br /&gt;
* Right-click on ALL_BUILD and choose &amp;quot;Properties&amp;quot;. In &amp;quot;Configuration Properties -&amp;gt; Debugging&amp;quot;, find &amp;quot;Working Directory&amp;quot; and navigate to &amp;quot;linden\indra\newview&amp;quot;. &lt;br /&gt;
* Build -&amp;gt; Build Solution (F7)&lt;br /&gt;
&lt;br /&gt;
== Iteratively fix things until the compile succeeds ==&lt;br /&gt;
&lt;br /&gt;
((TBD - add any fixup steps here.  e.g. does fmod375.dll need to be moved into RelWithDbgInfo at this step?))&lt;br /&gt;
&lt;br /&gt;
* report your experiences, if useful, on the talk page, https://wiki.secondlife.com/wiki/Talk:Viewer_2_Microsoft_Windows_Builds&lt;br /&gt;
* ask for help on the SL &amp;quot;Snowglobe&amp;quot; group or the opensource-dev mailing list.&lt;br /&gt;
&lt;br /&gt;
== Common Issues/Bugs/Glitches And Solutions ==&lt;br /&gt;
Applies to Visual C++ 2005 Express:&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
If you run into an issue when running develop.py similar to this:&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
1&amp;gt;Linking...&amp;lt;br/&amp;gt;&lt;br /&gt;
1&amp;gt;link: extra operand `/ERRORREPORT:QUEUE&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
1&amp;gt;Try `link --help&#039; for more information.&amp;lt;br/&amp;gt;&lt;br /&gt;
1&amp;gt;Project : error PRJ0002 : Error result 1 returned from &#039;C:\cygwin\bin\link.exe&#039;.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
You may have not configured Visual Studio properly. The articles in this wiki in regards to the setup of executable paths do not specify an order or priority, but you must make sure that the CYGWIN executable path is set lower in the list than the VC++ paths, otherwise develop.py winds up executing the CygWin Link.exe which won&#039;t work.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This issue has also been seen when using the Windows Command Prompt instead of the command prompt within VC++ (Visual Studio 2010?).&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
These instructions are condensed from about a dozen previous pages of info:&lt;br /&gt;
*https://wiki.secondlife.com/wiki/Microsoft_Windows_Builds&lt;br /&gt;
*https://wiki.secondlife.com/wiki/Compiling_the_Viewer_%28MSVS2008%29&lt;br /&gt;
*https://wiki.secondlife.com/wiki/User:Jodiah_Jensen#UPDATING_BOOST_LIBRARIES_TO_WORK_WITH_VS2008&lt;br /&gt;
** now partially incorrect&lt;br /&gt;
*http://jira.secondlife.com/browse/VWR-9541&lt;br /&gt;
&lt;br /&gt;
((add other references here))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Compiling viewer]]&lt;/div&gt;</summary>
		<author><name>Apotheus Silverman</name></author>
	</entry>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=Viewer_2_Microsoft_Windows_Builds&amp;diff=986772</id>
		<title>Viewer 2 Microsoft Windows Builds</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=Viewer_2_Microsoft_Windows_Builds&amp;diff=986772"/>
		<updated>2010-07-22T20:34:35Z</updated>

		<summary type="html">&lt;p&gt;Apotheus Silverman: /* Compile using the IDE */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{multi-lang}}&lt;br /&gt;
{{CompileNav}}&lt;br /&gt;
&lt;br /&gt;
THESE INSTRUCTIONS ARE NOT YET COMPLETE OR DEBUGGED as of 18 April 2010.  &lt;br /&gt;
&lt;br /&gt;
When finished, we hope this page will constitute a complete recipe for compiling viewer 2 from source on a Windows machine.  &lt;br /&gt;
&lt;br /&gt;
Philosophy: to keep it brief, this page should only include steps we KNOW ARE NEEDED, not random hints.  Extra details or open issues can go on the talk page.&lt;br /&gt;
&lt;br /&gt;
Following this recipe will probably take 6 to 12 hours of wall-clock time, and 2 to 6 hours of your time, if you&#039;re starting from a fresh Windows XP/Vista/7 system.&lt;br /&gt;
&lt;br /&gt;
== Establish your programming environment ==&lt;br /&gt;
This is needed for compiling any viewer based on the LL open source code, but only needs to be done once.&lt;br /&gt;
&lt;br /&gt;
* Obtain Visual Studio (2005, 2008, 2010) (Express is OK)&lt;br /&gt;
** [http://www.microsoft.com/express/download/ Click here to download Visual C++ Express - current version is VS2010]&lt;br /&gt;
** Note: LL still uses VS2005 internally, which uses the VC80 libraries.  VS2008 uses the VC90 libraries. VS2010 TBD (test with the VC90 libraries new ones for VC100 may need to be made).&lt;br /&gt;
* Install Microsoft Platform &amp;amp; DirectX SDKs&lt;br /&gt;
** Download and install [http://www.microsoft.com/downloads/details.aspx?FamilyID=F26B1AA4-741A-433A-9BE5-FA919850BDBF&amp;amp;displaylang=en Windows SDK for Windows Server 2008 and .NET Framework 3.5]&lt;br /&gt;
** Download and install [http://www.microsoft.com/downloads/details.aspx?FamilyID=ea4894b5-e98d-44f6-842d-e32147237638&amp;amp;DisplayLang=en DirectX SDK (August 2008)]&lt;br /&gt;
&lt;br /&gt;
* Install other development tools&lt;br /&gt;
** &#039;&#039;&#039;UniCode NSIS&#039;&#039;&#039;([http://www.scratchpaper.com/home/downloads download Unicode NSIS])&lt;br /&gt;
***  This is the package installer used to build Setup.exe. &amp;lt;b&amp;gt;Note&amp;lt;/b&amp;gt;: As of this writing the file is downloaded with an *.exec extension that needs renamed *.exe.--[[User:Nicky Perian|Nicky Perian]] 16:22, 30 March 2010 (UTC)&lt;br /&gt;
** &#039;&#039;&#039;CMake&#039;&#039;&#039; ([http://www.cmake.org/HTML/Download.html download CMake])&lt;br /&gt;
*** must be version 2.6.2 or higher (and ensure any older versions aren&#039;t in your PATH environment variables)&lt;br /&gt;
** &#039;&#039;&#039;Cygwin&#039;&#039;&#039; ([http://www.cygwin.com/ download Cygwin])&lt;br /&gt;
*** When you run the cygwin setup utility make sure you have selected to install &#039;&#039;&#039;patchutils&#039;&#039;&#039;, &#039;&#039;&#039;flex&#039;&#039;&#039;, and &#039;&#039;&#039;bison&#039;&#039;&#039; (all located under &amp;quot;devel&amp;quot;) which are not part of the default install.&lt;br /&gt;
** &#039;&#039;&#039;Python&#039;&#039;&#039; (download either [http://www.python.org/download/ Python.org Standard Python] or  [http://www.activestate.com/Products/ActivePython/?mp=1 ActivePython]&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;SVN software:&#039;&#039;&#039;(added by [[User:WolfPup Lowenhar|WolfPup Lowenhar]] 02:16, 19 April 2010 (UTC) )&lt;br /&gt;
**&#039;&#039;&#039;TortoiseSVN:&#039;&#039;&#039; http://tortoisesvn.net/&lt;br /&gt;
***&#039;&#039;&#039;Download Page:&#039;&#039;&#039;&lt;br /&gt;
****[http://tortoisesvn.net/downloads TortoiseSVN Downloads](contains link to 32-bit and 64-bit intsallers)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you use SVN software I suggest actually using the same file tree as LL does that way it will be easier to talk about some thing in a particular folder or file with your fellow builders.&lt;br /&gt;
&lt;br /&gt;
== Download and compile libraries that must be manually added to each LL source release ==&lt;br /&gt;
&lt;br /&gt;
It is probably a good idea to build an empty directory tree for the files below and first copy the files there and once completed, copy the whole tree to the actual source folder. Then, if you obtain a new batch of source code, you can save some steps.&lt;br /&gt;
&lt;br /&gt;
 rem OLIBS.CMD to build a folder tree for 3rd party libraries and includes&lt;br /&gt;
 md olibs&lt;br /&gt;
 md olibs\linden\&lt;br /&gt;
 md olibs\linden\libraries&lt;br /&gt;
 md olibs\linden\libraries\include&lt;br /&gt;
 md olibs\linden\libraries\i686-win32&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\lib&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\lib\release&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\lib\debug&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\include&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\include\GL&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\include\quicktime&lt;br /&gt;
 md olibs\linden\indra&lt;br /&gt;
 md olibs\linden\indra\newview&lt;br /&gt;
&lt;br /&gt;
 SVN folder tree - for simplicity of copying files to your build folder&lt;br /&gt;
   trunk\indra\newview&lt;br /&gt;
   trunk\libraries\i686-win32\include\GL&lt;br /&gt;
   trunk\libraries\i686-win32\include\quicktime&lt;br /&gt;
   trunk\libraries\i686-win32\lib\debug&lt;br /&gt;
   trunk\libraries\i686-win32\lib\release&lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
=== Quicktime ===&lt;br /&gt;
&lt;br /&gt;
* Download &amp;amp; install the [http://developer.apple.com/quicktime/download/ Quicktime SDK for Windows] (login may be necessary).&lt;br /&gt;
* copy &amp;quot;QuicktimeSDK\Libraries\QTMLClient.lib&amp;quot; to &amp;quot;olibs\linden\libraries\i686-win32\lib\release&amp;quot; and to &amp;quot;olibs\linden\libraries\i686-win32\lib\debug&amp;quot;&lt;br /&gt;
* Copy the contents of &amp;quot;QuicktimeSDK\CIncludes&amp;quot; into &amp;quot;olibs\linden\libraries\i686-win32\include\quicktime&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Fmod ===&lt;br /&gt;
* Download &amp;amp; extract [http://www.fmod.org/files/fmod3/fmodapi375win.zip FMOD3.75 API for Windows]. (later versions, like FMOD Ex, are incompatible).&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\inc\fmod.h&amp;quot; to &amp;quot;olibs\linden\libraries\include&amp;quot;&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\inc\fmod_errors.h&amp;quot; to &amp;quot;olibs\linden\libraries\include&amp;quot;&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\inc\fmoddyn.h&amp;quot; to &amp;quot;olibs\linden\libraries\include&amp;quot;&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\lib\fmodvc.lib&amp;quot; to &amp;quot;olibs\linden\libraries\i686-win32\lib\release&amp;quot; and to &amp;quot;olibs\linden\libraries\i686-win32\lib\debug&amp;quot;&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\fmod.dll&amp;quot; to &amp;quot;olibs\linden\indra\newview&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Boost ===&lt;br /&gt;
&lt;br /&gt;
* Grab the files that Robin Cornelius has precompiled at &lt;br /&gt;
http://www.byteme.org.uk/downloads/boost_1_39_VC90_no_scl_shared_crt_static_link.zip&lt;br /&gt;
* If you get the zip file from Robin Cornelius copy the libraries folder into the the tree you made above for  fmod and QuickTime files that way you have a ready back up of those files for if you update your build directory from the SVN server.&lt;br /&gt;
* or alternatively follow the instructions from the 25/Feb/10 and 15/Apr/10 entries of http://jira.secondlife.com/browse/VWR-9541&lt;br /&gt;
&lt;br /&gt;
((TBD: verify, simplify, fix))&lt;br /&gt;
&lt;br /&gt;
=== cares ===&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
== Set up your source code tree ==&lt;br /&gt;
&lt;br /&gt;
LL distributes the source code in three parts: the source package, the artwork package, and the library package.   You should choose whether to use a snapshot or SVN checkout.  You&#039;ll need art and libraries from a snapshot if you use the SVN method.&lt;br /&gt;
&lt;br /&gt;
* Unzip or checkout your source tree into a directory that has as short full pathname as possible, with NO SPACES in it, to avoid trouble in the build scripts. A sugestion would be to use the same dev tree as LL as all folder names are short and do not have any spaces.&lt;br /&gt;
&lt;br /&gt;
* Example:  ((specific snapshot example TBD; SVN example also ))&lt;br /&gt;
&lt;br /&gt;
* Copy your &amp;quot;olibs&amp;quot; from above into the source tree.&lt;br /&gt;
&lt;br /&gt;
== Fix known problems with the source code tree ==&lt;br /&gt;
&lt;br /&gt;
TBD - edits to scripts that must be made for windows VC90 builds to succeed?&lt;br /&gt;
&lt;br /&gt;
Known Problems:&lt;br /&gt;
* /indra/cmake/Boost.cmake file has to be edited as shown in [http://jira.secondlife.com/browse/VWR-9541?focusedCommentId=168967&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_168967 VWR-9541] in order to use the boost files in VS2008.&lt;br /&gt;
&lt;br /&gt;
== Initial build steps using develop.py and CMake ==&lt;br /&gt;
&lt;br /&gt;
You may notice that there&#039;s no Visual Studio project file as part of the distributed source tree.  That&#039;s because it is GENERATED in this step using command-line tools.  Only after this step can you begin using the IDE.&lt;br /&gt;
&lt;br /&gt;
* open a Command Prompt window&lt;br /&gt;
&lt;br /&gt;
*Get public tarballs(artwork and other needed files)[ added by [[User:WolfPup Lowenhar|WolfPup Lowenhar]] 03:16, 1 May 2010 (UTC) ]&lt;br /&gt;
** From the command line, &#039;&#039;&#039;cd into the trunk\scripts subdirectory&#039;&#039;&#039;&lt;br /&gt;
** Run &amp;lt;code&amp;gt;&amp;quot;python public_fetch_tarballs.py&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
** &amp;quot;trunk&amp;quot; should now have three LICENSE files in it.&lt;br /&gt;
&lt;br /&gt;
* Run develop.py --&lt;br /&gt;
** From the command line, &#039;&#039;&#039;cd into the indra subdirectory&#039;&#039;&#039; &lt;br /&gt;
** Run &amp;lt;code&amp;gt;&amp;quot;develop.py -G VC90&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;python develop.py -G VC90&amp;quot;&amp;lt;/code&amp;gt; NOTE: use &amp;lt;code&amp;gt; -G VC80 &amp;lt;/code&amp;gt; if you are using VS2005&lt;br /&gt;
** The &amp;lt;code&amp;gt;develop.py&amp;lt;/code&amp;gt; script will create and populate a build directory for you.  It should be in &amp;lt;code&amp;gt;&#039;build-vc90&#039;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&#039;build-vc80&#039;&amp;lt;/code&amp;gt; if using VS2005&lt;br /&gt;
&lt;br /&gt;
((TBD: how to tell if you succeeded))&lt;br /&gt;
&lt;br /&gt;
When it completes you will get your command prompt back and it should say something like:&lt;br /&gt;
&lt;br /&gt;
 Trying to set active config to &amp;quot;RelWithDebInfo&amp;quot;&lt;br /&gt;
   Success!&lt;br /&gt;
 Trying to set &amp;quot;secondlife-bin&amp;quot; to the startup project&lt;br /&gt;
   Success!&lt;br /&gt;
 got ret 0 from tools\vstool\VSTool.exe --solution build-VC80\SecondLife.sln --config RelWithDebInfo --startup secondlife-bin&lt;br /&gt;
&lt;br /&gt;
== Compile using the IDE ==&lt;br /&gt;
&lt;br /&gt;
* Run Visual Studio.&lt;br /&gt;
* Configure Visual Studio.&lt;br /&gt;
**Use Tools&amp;gt;Options to get the Options window open.&lt;br /&gt;
**Goto Projects and Solutions&amp;gt;VC++ Directories and set the following:&lt;br /&gt;
 Executable Files:&lt;br /&gt;
 $(SystemRoot)&lt;br /&gt;
 $(SystemRoot)\System32&lt;br /&gt;
 $(SystemRoot)\System32\wbem&lt;br /&gt;
 $(VCInstallDir)bin&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\bin&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\common\bin&lt;br /&gt;
 $(VSInstallDir)Common7\Tools\bin&lt;br /&gt;
 $(VSInstallDir)Common7\tools&lt;br /&gt;
 $(VSInstallDir)Common7\ide&lt;br /&gt;
 $(ProgramFiles)\HTML Help Workshop&lt;br /&gt;
 $(FrameworkSDKDir)bin&lt;br /&gt;
 $(FrameworkDir)$(FrameworkVersion)&lt;br /&gt;
 $(VSInstallDir)&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin&lt;br /&gt;
 C:\Python26&lt;br /&gt;
 C:\Program Files\NSIS&lt;br /&gt;
 $(SystemRoot)\SysWow64   (needed in Vista and 7 64-bit version)&lt;br /&gt;
 $(FxCopDir)&lt;br /&gt;
 $(PATH)&lt;br /&gt;
 C:\cygwin\bin&lt;br /&gt;
&lt;br /&gt;
 Included Files:&lt;br /&gt;
 $(VCInstallDir)include&lt;br /&gt;
 $(VCInstallDir)atlmfc\include&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\include&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\common\include&lt;br /&gt;
 $(FrameworkSDKDir)include&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Include&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\gl&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Samples\winui\TSF\tsfapp&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Include&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\gl&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Samples\winui\TSF\tsfapp&lt;br /&gt;
 C:\Program Files\Microsoft DirectX SDK (February 2010)\Include&lt;br /&gt;
&lt;br /&gt;
 Library Files:&lt;br /&gt;
 $(VCInstallDir)lib&lt;br /&gt;
 $(VCInstallDir)atlmfc\lib&lt;br /&gt;
 $(VCInstallDir)atlmfc\lib\i386&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\lib&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\common\lib&lt;br /&gt;
 $(FrameworkSDKDir)lib&lt;br /&gt;
 $(VSInstallDir)&lt;br /&gt;
 $(VSInstallDir)lib&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Lib&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Lib&lt;br /&gt;
 C:\Program Files\Microsoft DirectX SDK (February 2010)\Lib\x86&lt;br /&gt;
&lt;br /&gt;
* Use &amp;quot;File -&amp;gt; Open -&amp;gt; Project/Solution&amp;quot;, navigate to linden/indra/build-VC90/Viewer.vcproj, and open it.&lt;br /&gt;
** if you can&#039;t find this file, perhaps your previous run of develop.py failed.&lt;br /&gt;
* In the MSVS toolbar, just to the right of the triangular &amp;quot;Start Debugging&amp;quot; arrow, is a text box whose tooltip is &amp;quot;Solution Configurations&amp;quot;. Select RelWithDebugInfo.&lt;br /&gt;
* If ALL_BUILD is not set as your StartUp Project (the StartUp Project is displayed in bold font), right-click on ALL_BUILD and choose &amp;quot;Set as StartUp Project&amp;quot;.&lt;br /&gt;
* Right-click on ALL_BUILD and choose &amp;quot;Properties&amp;quot;. In &amp;quot;Configuration Properties -&amp;gt; Debugging&amp;quot;, find &amp;quot;Working Directory&amp;quot; and navigate to &amp;quot;linden\indra\newview&amp;quot;. &lt;br /&gt;
* Build -&amp;gt; Build Solution (F7)&lt;br /&gt;
&lt;br /&gt;
== Iteratively fix things until the compile succeeds ==&lt;br /&gt;
&lt;br /&gt;
((TBD - add any fixup steps here.  e.g. does fmod375.dll need to be moved into RelWithDbgInfo at this step?))&lt;br /&gt;
&lt;br /&gt;
* report your experiences, if useful, on the talk page, https://wiki.secondlife.com/wiki/Talk:Viewer_2_Microsoft_Windows_Builds&lt;br /&gt;
* ask for help on the SL &amp;quot;Snowglobe&amp;quot; group or the opensource-dev mailing list.&lt;br /&gt;
&lt;br /&gt;
== Common Issues/Bugs/Glitches And Solutions ==&lt;br /&gt;
Applies to Visual C++ 2005 Express:&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
If you run into an issue when running develop.py similar to this:&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
1&amp;gt;Linking...&amp;lt;br/&amp;gt;&lt;br /&gt;
1&amp;gt;link: extra operand `/ERRORREPORT:QUEUE&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
1&amp;gt;Try `link --help&#039; for more information.&amp;lt;br/&amp;gt;&lt;br /&gt;
1&amp;gt;Project : error PRJ0002 : Error result 1 returned from &#039;C:\cygwin\bin\link.exe&#039;.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
You may have not configured Visual Studio properly. The articles in this wiki in regards to the setup of executable paths do not specify an order or priority, but you must make sure that the CYGWIN executable path is set lower in the list than the VC++ paths, otherwise develop.py winds up executing the CygWin Link.exe which won&#039;t work.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This issue has also been seen when using the Windows Command Prompt instead of the command prompt within VC++ (Visual Studio 2010?).&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
These instructions are condensed from about a dozen previous pages of info:&lt;br /&gt;
*https://wiki.secondlife.com/wiki/Microsoft_Windows_Builds&lt;br /&gt;
*https://wiki.secondlife.com/wiki/Compiling_the_Viewer_%28MSVS2008%29&lt;br /&gt;
*https://wiki.secondlife.com/wiki/User:Jodiah_Jensen#UPDATING_BOOST_LIBRARIES_TO_WORK_WITH_VS2008&lt;br /&gt;
** now partially incorrect&lt;br /&gt;
*http://jira.secondlife.com/browse/VWR-9541&lt;br /&gt;
&lt;br /&gt;
((add other references here))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Compiling viewer]]&lt;/div&gt;</summary>
		<author><name>Apotheus Silverman</name></author>
	</entry>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=Viewer_2_Microsoft_Windows_Builds&amp;diff=986552</id>
		<title>Viewer 2 Microsoft Windows Builds</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=Viewer_2_Microsoft_Windows_Builds&amp;diff=986552"/>
		<updated>2010-07-22T18:33:29Z</updated>

		<summary type="html">&lt;p&gt;Apotheus Silverman: /* Fix known problems with the source code tree */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{multi-lang}}&lt;br /&gt;
{{CompileNav}}&lt;br /&gt;
&lt;br /&gt;
THESE INSTRUCTIONS ARE NOT YET COMPLETE OR DEBUGGED as of 18 April 2010.  &lt;br /&gt;
&lt;br /&gt;
When finished, we hope this page will constitute a complete recipe for compiling viewer 2 from source on a Windows machine.  &lt;br /&gt;
&lt;br /&gt;
Philosophy: to keep it brief, this page should only include steps we KNOW ARE NEEDED, not random hints.  Extra details or open issues can go on the talk page.&lt;br /&gt;
&lt;br /&gt;
Following this recipe will probably take 6 to 12 hours of wall-clock time, and 2 to 6 hours of your time, if you&#039;re starting from a fresh Windows XP/Vista/7 system.&lt;br /&gt;
&lt;br /&gt;
== Establish your programming environment ==&lt;br /&gt;
This is needed for compiling any viewer based on the LL open source code, but only needs to be done once.&lt;br /&gt;
&lt;br /&gt;
* Obtain Visual Studio (2005, 2008, 2010) (Express is OK)&lt;br /&gt;
** [http://www.microsoft.com/express/download/ Click here to download Visual C++ Express - current version is VS2010]&lt;br /&gt;
** Note: LL still uses VS2005 internally, which uses the VC80 libraries.  VS2008 uses the VC90 libraries. VS2010 TBD (test with the VC90 libraries new ones for VC100 may need to be made).&lt;br /&gt;
* Install Microsoft Platform &amp;amp; DirectX SDKs&lt;br /&gt;
** Download and install [http://www.microsoft.com/downloads/details.aspx?FamilyID=F26B1AA4-741A-433A-9BE5-FA919850BDBF&amp;amp;displaylang=en Windows SDK for Windows Server 2008 and .NET Framework 3.5]&lt;br /&gt;
** Download and install [http://www.microsoft.com/downloads/details.aspx?FamilyID=ea4894b5-e98d-44f6-842d-e32147237638&amp;amp;DisplayLang=en DirectX SDK (August 2008)]&lt;br /&gt;
&lt;br /&gt;
* Install other development tools&lt;br /&gt;
** &#039;&#039;&#039;UniCode NSIS&#039;&#039;&#039;([http://www.scratchpaper.com/home/downloads download Unicode NSIS])&lt;br /&gt;
***  This is the package installer used to build Setup.exe. &amp;lt;b&amp;gt;Note&amp;lt;/b&amp;gt;: As of this writing the file is downloaded with an *.exec extension that needs renamed *.exe.--[[User:Nicky Perian|Nicky Perian]] 16:22, 30 March 2010 (UTC)&lt;br /&gt;
** &#039;&#039;&#039;CMake&#039;&#039;&#039; ([http://www.cmake.org/HTML/Download.html download CMake])&lt;br /&gt;
*** must be version 2.6.2 or higher (and ensure any older versions aren&#039;t in your PATH environment variables)&lt;br /&gt;
** &#039;&#039;&#039;Cygwin&#039;&#039;&#039; ([http://www.cygwin.com/ download Cygwin])&lt;br /&gt;
*** When you run the cygwin setup utility make sure you have selected to install &#039;&#039;&#039;patchutils&#039;&#039;&#039;, &#039;&#039;&#039;flex&#039;&#039;&#039;, and &#039;&#039;&#039;bison&#039;&#039;&#039; (all located under &amp;quot;devel&amp;quot;) which are not part of the default install.&lt;br /&gt;
** &#039;&#039;&#039;Python&#039;&#039;&#039; (download either [http://www.python.org/download/ Python.org Standard Python] or  [http://www.activestate.com/Products/ActivePython/?mp=1 ActivePython]&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;SVN software:&#039;&#039;&#039;(added by [[User:WolfPup Lowenhar|WolfPup Lowenhar]] 02:16, 19 April 2010 (UTC) )&lt;br /&gt;
**&#039;&#039;&#039;TortoiseSVN:&#039;&#039;&#039; http://tortoisesvn.net/&lt;br /&gt;
***&#039;&#039;&#039;Download Page:&#039;&#039;&#039;&lt;br /&gt;
****[http://tortoisesvn.net/downloads TortoiseSVN Downloads](contains link to 32-bit and 64-bit intsallers)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you use SVN software I suggest actually using the same file tree as LL does that way it will be easier to talk about some thing in a particular folder or file with your fellow builders.&lt;br /&gt;
&lt;br /&gt;
== Download and compile libraries that must be manually added to each LL source release ==&lt;br /&gt;
&lt;br /&gt;
It is probably a good idea to build an empty directory tree for the files below and first copy the files there and once completed, copy the whole tree to the actual source folder. Then, if you obtain a new batch of source code, you can save some steps.&lt;br /&gt;
&lt;br /&gt;
 rem OLIBS.CMD to build a folder tree for 3rd party libraries and includes&lt;br /&gt;
 md olibs&lt;br /&gt;
 md olibs\linden\&lt;br /&gt;
 md olibs\linden\libraries&lt;br /&gt;
 md olibs\linden\libraries\include&lt;br /&gt;
 md olibs\linden\libraries\i686-win32&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\lib&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\lib\release&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\lib\debug&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\include&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\include\GL&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\include\quicktime&lt;br /&gt;
 md olibs\linden\indra&lt;br /&gt;
 md olibs\linden\indra\newview&lt;br /&gt;
&lt;br /&gt;
 SVN folder tree - for simplicity of copying files to your build folder&lt;br /&gt;
   trunk\indra\newview&lt;br /&gt;
   trunk\libraries\i686-win32\include\GL&lt;br /&gt;
   trunk\libraries\i686-win32\include\quicktime&lt;br /&gt;
   trunk\libraries\i686-win32\lib\debug&lt;br /&gt;
   trunk\libraries\i686-win32\lib\release&lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
=== Quicktime ===&lt;br /&gt;
&lt;br /&gt;
* Download &amp;amp; install the [http://developer.apple.com/quicktime/download/ Quicktime SDK for Windows] (login may be necessary).&lt;br /&gt;
* copy &amp;quot;QuicktimeSDK\Libraries\QTMLClient.lib&amp;quot; to &amp;quot;olibs\linden\libraries\i686-win32\lib\release&amp;quot; and to &amp;quot;olibs\linden\libraries\i686-win32\lib\debug&amp;quot;&lt;br /&gt;
* Copy the contents of &amp;quot;QuicktimeSDK\CIncludes&amp;quot; into &amp;quot;olibs\linden\libraries\i686-win32\include\quicktime&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Fmod ===&lt;br /&gt;
* Download &amp;amp; extract [http://www.fmod.org/files/fmod3/fmodapi375win.zip FMOD3.75 API for Windows]. (later versions, like FMOD Ex, are incompatible).&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\inc\fmod.h&amp;quot; to &amp;quot;olibs\linden\libraries\include&amp;quot;&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\inc\fmod_errors.h&amp;quot; to &amp;quot;olibs\linden\libraries\include&amp;quot;&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\inc\fmoddyn.h&amp;quot; to &amp;quot;olibs\linden\libraries\include&amp;quot;&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\lib\fmodvc.lib&amp;quot; to &amp;quot;olibs\linden\libraries\i686-win32\lib\release&amp;quot; and to &amp;quot;olibs\linden\libraries\i686-win32\lib\debug&amp;quot;&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\fmod.dll&amp;quot; to &amp;quot;olibs\linden\indra\newview&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Boost ===&lt;br /&gt;
&lt;br /&gt;
* Grab the files that Robin Cornelius has precompiled at &lt;br /&gt;
http://www.byteme.org.uk/downloads/boost_1_39_VC90_no_scl_shared_crt_static_link.zip&lt;br /&gt;
* If you get the zip file from Robin Cornelius copy the libraries folder into the the tree you made above for  fmod and QuickTime files that way you have a ready back up of those files for if you update your build directory from the SVN server.&lt;br /&gt;
* or alternatively follow the instructions from the 25/Feb/10 and 15/Apr/10 entries of http://jira.secondlife.com/browse/VWR-9541&lt;br /&gt;
&lt;br /&gt;
((TBD: verify, simplify, fix))&lt;br /&gt;
&lt;br /&gt;
=== cares ===&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
== Set up your source code tree ==&lt;br /&gt;
&lt;br /&gt;
LL distributes the source code in three parts: the source package, the artwork package, and the library package.   You should choose whether to use a snapshot or SVN checkout.  You&#039;ll need art and libraries from a snapshot if you use the SVN method.&lt;br /&gt;
&lt;br /&gt;
* Unzip or checkout your source tree into a directory that has as short full pathname as possible, with NO SPACES in it, to avoid trouble in the build scripts. A sugestion would be to use the same dev tree as LL as all folder names are short and do not have any spaces.&lt;br /&gt;
&lt;br /&gt;
* Example:  ((specific snapshot example TBD; SVN example also ))&lt;br /&gt;
&lt;br /&gt;
* Copy your &amp;quot;olibs&amp;quot; from above into the source tree.&lt;br /&gt;
&lt;br /&gt;
== Fix known problems with the source code tree ==&lt;br /&gt;
&lt;br /&gt;
TBD - edits to scripts that must be made for windows VC90 builds to succeed?&lt;br /&gt;
&lt;br /&gt;
Known Problems:&lt;br /&gt;
* /indra/cmake/Boost.cmake file has to be edited as shown in [http://jira.secondlife.com/browse/VWR-9541?focusedCommentId=168967&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_168967 VWR-9541] in order to use the boost files in VS2008.&lt;br /&gt;
&lt;br /&gt;
== Initial build steps using develop.py and CMake ==&lt;br /&gt;
&lt;br /&gt;
You may notice that there&#039;s no Visual Studio project file as part of the distributed source tree.  That&#039;s because it is GENERATED in this step using command-line tools.  Only after this step can you begin using the IDE.&lt;br /&gt;
&lt;br /&gt;
* open a Command Prompt window&lt;br /&gt;
&lt;br /&gt;
*Get public tarballs(artwork and other needed files)[ added by [[User:WolfPup Lowenhar|WolfPup Lowenhar]] 03:16, 1 May 2010 (UTC) ]&lt;br /&gt;
** From the command line, &#039;&#039;&#039;cd into the trunk\scripts subdirectory&#039;&#039;&#039;&lt;br /&gt;
** Run &amp;lt;code&amp;gt;&amp;quot;python public_fetch_tarballs.py&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
** &amp;quot;trunk&amp;quot; should now have three LICENSE files in it.&lt;br /&gt;
&lt;br /&gt;
* Run develop.py --&lt;br /&gt;
** From the command line, &#039;&#039;&#039;cd into the indra subdirectory&#039;&#039;&#039; &lt;br /&gt;
** Run &amp;lt;code&amp;gt;&amp;quot;develop.py -G VC90&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;python develop.py -G VC90&amp;quot;&amp;lt;/code&amp;gt; NOTE: use &amp;lt;code&amp;gt; -G VC80 &amp;lt;/code&amp;gt; if you are using VS2005&lt;br /&gt;
** The &amp;lt;code&amp;gt;develop.py&amp;lt;/code&amp;gt; script will create and populate a build directory for you.  It should be in &amp;lt;code&amp;gt;&#039;build-vc90&#039;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&#039;build-vc80&#039;&amp;lt;/code&amp;gt; if using VS2005&lt;br /&gt;
&lt;br /&gt;
((TBD: how to tell if you succeeded))&lt;br /&gt;
&lt;br /&gt;
When it completes you will get your command prompt back and it should say something like:&lt;br /&gt;
&lt;br /&gt;
 Trying to set active config to &amp;quot;RelWithDebInfo&amp;quot;&lt;br /&gt;
   Success!&lt;br /&gt;
 Trying to set &amp;quot;secondlife-bin&amp;quot; to the startup project&lt;br /&gt;
   Success!&lt;br /&gt;
 got ret 0 from tools\vstool\VSTool.exe --solution build-VC80\SecondLife.sln --config RelWithDebInfo --startup secondlife-bin&lt;br /&gt;
&lt;br /&gt;
== Compile using the IDE ==&lt;br /&gt;
&lt;br /&gt;
* Run Visual Studio.&lt;br /&gt;
* Configure Visual Stidio.&lt;br /&gt;
**Use Tools&amp;gt;Options to get the Options window open.&lt;br /&gt;
**Goto Projects and Solutions&amp;gt;VC++ Directories and set the following:&lt;br /&gt;
 Executable Files:&lt;br /&gt;
 $(SystemRoot)&lt;br /&gt;
 $(SystemRoot)\System32&lt;br /&gt;
 $(SystemRoot)\System32\wbem&lt;br /&gt;
 $(VCInstallDir)bin&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\bin&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\common\bin&lt;br /&gt;
 $(VSInstallDir)Common7\Tools\bin&lt;br /&gt;
 $(VSInstallDir)Common7\tools&lt;br /&gt;
 $(VSInstallDir)Common7\ide&lt;br /&gt;
 $(ProgramFiles)\HTML Help Workshop&lt;br /&gt;
 $(FrameworkSDKDir)bin&lt;br /&gt;
 $(FrameworkDir)$(FrameworkVersion)&lt;br /&gt;
 $(VSInstallDir)&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin&lt;br /&gt;
 C:\Python26&lt;br /&gt;
 C:\Program Files\NSIS&lt;br /&gt;
 $(SystemRoot)\SysWow64   (needed in Vista and 7 64-bit version)&lt;br /&gt;
 $(FxCopDir)&lt;br /&gt;
 $(PATH)&lt;br /&gt;
 C:\cygwin\bin&lt;br /&gt;
&lt;br /&gt;
 Included Files:&lt;br /&gt;
 $(VCInstallDir)include&lt;br /&gt;
 $(VCInstallDir)atlmfc\include&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\include&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\common\include&lt;br /&gt;
 $(FrameworkSDKDir)include&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Include&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\gl&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Samples\winui\TSF\tsfapp&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Include&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\gl&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Samples\winui\TSF\tsfapp&lt;br /&gt;
 C:\Program Files\Microsoft DirectX SDK (February 2010)\Include&lt;br /&gt;
&lt;br /&gt;
 Library Files:&lt;br /&gt;
 $(VCInstallDir)lib&lt;br /&gt;
 $(VCInstallDir)atlmfc\lib&lt;br /&gt;
 $(VCInstallDir)atlmfc\lib\i386&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\lib&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\common\lib&lt;br /&gt;
 $(FrameworkSDKDir)lib&lt;br /&gt;
 $(VSInstallDir)&lt;br /&gt;
 $(VSInstallDir)lib&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Lib&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Lib&lt;br /&gt;
 C:\Program Files\Microsoft DirectX SDK (February 2010)\Lib\x86&lt;br /&gt;
&lt;br /&gt;
* Use &amp;quot;File -&amp;gt; Open -&amp;gt; Project/Solution&amp;quot;, navigate to linden/indra/build-VC90/Viewer.vcproj, and open it.&lt;br /&gt;
** if you can&#039;t find this file, perhaps your previous run of develop.py failed.&lt;br /&gt;
* Project ALL_BUILD and configuration RelWithDebugInfo should be selected, and the working directory for ALL_BUILD should be &amp;quot;linden\indra\newview&amp;quot;.&lt;br /&gt;
* Build -&amp;gt; Build Solution (F7)&lt;br /&gt;
&lt;br /&gt;
== Iteratively fix things until the compile succeeds ==&lt;br /&gt;
&lt;br /&gt;
((TBD - add any fixup steps here.  e.g. does fmod375.dll need to be moved into RelWithDbgInfo at this step?))&lt;br /&gt;
&lt;br /&gt;
* report your experiences, if useful, on the talk page, https://wiki.secondlife.com/wiki/Talk:Viewer_2_Microsoft_Windows_Builds&lt;br /&gt;
* ask for help on the SL &amp;quot;Snowglobe&amp;quot; group or the opensource-dev mailing list.&lt;br /&gt;
&lt;br /&gt;
== Common Issues/Bugs/Glitches And Solutions ==&lt;br /&gt;
Applies to Visual C++ 2005 Express:&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
If you run into an issue when running develop.py similar to this:&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
1&amp;gt;Linking...&amp;lt;br/&amp;gt;&lt;br /&gt;
1&amp;gt;link: extra operand `/ERRORREPORT:QUEUE&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
1&amp;gt;Try `link --help&#039; for more information.&amp;lt;br/&amp;gt;&lt;br /&gt;
1&amp;gt;Project : error PRJ0002 : Error result 1 returned from &#039;C:\cygwin\bin\link.exe&#039;.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
You may have not configured Visual Studio properly. The articles in this wiki in regards to the setup of executable paths do not specify an order or priority, but you must make sure that the CYGWIN executable path is set lower in the list than the VC++ paths, otherwise develop.py winds up executing the CygWin Link.exe which won&#039;t work.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This issue has also been seen when using the Windows Command Prompt instead of the command prompt within VC++ (Visual Studio 2010?).&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
These instructions are condensed from about a dozen previous pages of info:&lt;br /&gt;
*https://wiki.secondlife.com/wiki/Microsoft_Windows_Builds&lt;br /&gt;
*https://wiki.secondlife.com/wiki/Compiling_the_Viewer_%28MSVS2008%29&lt;br /&gt;
*https://wiki.secondlife.com/wiki/User:Jodiah_Jensen#UPDATING_BOOST_LIBRARIES_TO_WORK_WITH_VS2008&lt;br /&gt;
** now partially incorrect&lt;br /&gt;
*http://jira.secondlife.com/browse/VWR-9541&lt;br /&gt;
&lt;br /&gt;
((add other references here))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Compiling viewer]]&lt;/div&gt;</summary>
		<author><name>Apotheus Silverman</name></author>
	</entry>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=Viewer_2_Microsoft_Windows_Builds&amp;diff=986512</id>
		<title>Viewer 2 Microsoft Windows Builds</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=Viewer_2_Microsoft_Windows_Builds&amp;diff=986512"/>
		<updated>2010-07-22T18:16:32Z</updated>

		<summary type="html">&lt;p&gt;Apotheus Silverman: /* Fmod */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{multi-lang}}&lt;br /&gt;
{{CompileNav}}&lt;br /&gt;
&lt;br /&gt;
THESE INSTRUCTIONS ARE NOT YET COMPLETE OR DEBUGGED as of 18 April 2010.  &lt;br /&gt;
&lt;br /&gt;
When finished, we hope this page will constitute a complete recipe for compiling viewer 2 from source on a Windows machine.  &lt;br /&gt;
&lt;br /&gt;
Philosophy: to keep it brief, this page should only include steps we KNOW ARE NEEDED, not random hints.  Extra details or open issues can go on the talk page.&lt;br /&gt;
&lt;br /&gt;
Following this recipe will probably take 6 to 12 hours of wall-clock time, and 2 to 6 hours of your time, if you&#039;re starting from a fresh Windows XP/Vista/7 system.&lt;br /&gt;
&lt;br /&gt;
== Establish your programming environment ==&lt;br /&gt;
This is needed for compiling any viewer based on the LL open source code, but only needs to be done once.&lt;br /&gt;
&lt;br /&gt;
* Obtain Visual Studio (2005, 2008, 2010) (Express is OK)&lt;br /&gt;
** [http://www.microsoft.com/express/download/ Click here to download Visual C++ Express - current version is VS2010]&lt;br /&gt;
** Note: LL still uses VS2005 internally, which uses the VC80 libraries.  VS2008 uses the VC90 libraries. VS2010 TBD (test with the VC90 libraries new ones for VC100 may need to be made).&lt;br /&gt;
* Install Microsoft Platform &amp;amp; DirectX SDKs&lt;br /&gt;
** Download and install [http://www.microsoft.com/downloads/details.aspx?FamilyID=F26B1AA4-741A-433A-9BE5-FA919850BDBF&amp;amp;displaylang=en Windows SDK for Windows Server 2008 and .NET Framework 3.5]&lt;br /&gt;
** Download and install [http://www.microsoft.com/downloads/details.aspx?FamilyID=ea4894b5-e98d-44f6-842d-e32147237638&amp;amp;DisplayLang=en DirectX SDK (August 2008)]&lt;br /&gt;
&lt;br /&gt;
* Install other development tools&lt;br /&gt;
** &#039;&#039;&#039;UniCode NSIS&#039;&#039;&#039;([http://www.scratchpaper.com/home/downloads download Unicode NSIS])&lt;br /&gt;
***  This is the package installer used to build Setup.exe. &amp;lt;b&amp;gt;Note&amp;lt;/b&amp;gt;: As of this writing the file is downloaded with an *.exec extension that needs renamed *.exe.--[[User:Nicky Perian|Nicky Perian]] 16:22, 30 March 2010 (UTC)&lt;br /&gt;
** &#039;&#039;&#039;CMake&#039;&#039;&#039; ([http://www.cmake.org/HTML/Download.html download CMake])&lt;br /&gt;
*** must be version 2.6.2 or higher (and ensure any older versions aren&#039;t in your PATH environment variables)&lt;br /&gt;
** &#039;&#039;&#039;Cygwin&#039;&#039;&#039; ([http://www.cygwin.com/ download Cygwin])&lt;br /&gt;
*** When you run the cygwin setup utility make sure you have selected to install &#039;&#039;&#039;patchutils&#039;&#039;&#039;, &#039;&#039;&#039;flex&#039;&#039;&#039;, and &#039;&#039;&#039;bison&#039;&#039;&#039; (all located under &amp;quot;devel&amp;quot;) which are not part of the default install.&lt;br /&gt;
** &#039;&#039;&#039;Python&#039;&#039;&#039; (download either [http://www.python.org/download/ Python.org Standard Python] or  [http://www.activestate.com/Products/ActivePython/?mp=1 ActivePython]&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;SVN software:&#039;&#039;&#039;(added by [[User:WolfPup Lowenhar|WolfPup Lowenhar]] 02:16, 19 April 2010 (UTC) )&lt;br /&gt;
**&#039;&#039;&#039;TortoiseSVN:&#039;&#039;&#039; http://tortoisesvn.net/&lt;br /&gt;
***&#039;&#039;&#039;Download Page:&#039;&#039;&#039;&lt;br /&gt;
****[http://tortoisesvn.net/downloads TortoiseSVN Downloads](contains link to 32-bit and 64-bit intsallers)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you use SVN software I suggest actually using the same file tree as LL does that way it will be easier to talk about some thing in a particular folder or file with your fellow builders.&lt;br /&gt;
&lt;br /&gt;
== Download and compile libraries that must be manually added to each LL source release ==&lt;br /&gt;
&lt;br /&gt;
It is probably a good idea to build an empty directory tree for the files below and first copy the files there and once completed, copy the whole tree to the actual source folder. Then, if you obtain a new batch of source code, you can save some steps.&lt;br /&gt;
&lt;br /&gt;
 rem OLIBS.CMD to build a folder tree for 3rd party libraries and includes&lt;br /&gt;
 md olibs&lt;br /&gt;
 md olibs\linden\&lt;br /&gt;
 md olibs\linden\libraries&lt;br /&gt;
 md olibs\linden\libraries\include&lt;br /&gt;
 md olibs\linden\libraries\i686-win32&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\lib&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\lib\release&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\lib\debug&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\include&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\include\GL&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\include\quicktime&lt;br /&gt;
 md olibs\linden\indra&lt;br /&gt;
 md olibs\linden\indra\newview&lt;br /&gt;
&lt;br /&gt;
 SVN folder tree - for simplicity of copying files to your build folder&lt;br /&gt;
   trunk\indra\newview&lt;br /&gt;
   trunk\libraries\i686-win32\include\GL&lt;br /&gt;
   trunk\libraries\i686-win32\include\quicktime&lt;br /&gt;
   trunk\libraries\i686-win32\lib\debug&lt;br /&gt;
   trunk\libraries\i686-win32\lib\release&lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
=== Quicktime ===&lt;br /&gt;
&lt;br /&gt;
* Download &amp;amp; install the [http://developer.apple.com/quicktime/download/ Quicktime SDK for Windows] (login may be necessary).&lt;br /&gt;
* copy &amp;quot;QuicktimeSDK\Libraries\QTMLClient.lib&amp;quot; to &amp;quot;olibs\linden\libraries\i686-win32\lib\release&amp;quot; and to &amp;quot;olibs\linden\libraries\i686-win32\lib\debug&amp;quot;&lt;br /&gt;
* Copy the contents of &amp;quot;QuicktimeSDK\CIncludes&amp;quot; into &amp;quot;olibs\linden\libraries\i686-win32\include\quicktime&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Fmod ===&lt;br /&gt;
* Download &amp;amp; extract [http://www.fmod.org/files/fmod3/fmodapi375win.zip FMOD3.75 API for Windows]. (later versions, like FMOD Ex, are incompatible).&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\inc\fmod.h&amp;quot; to &amp;quot;olibs\linden\libraries\include&amp;quot;&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\inc\fmod_errors.h&amp;quot; to &amp;quot;olibs\linden\libraries\include&amp;quot;&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\inc\fmoddyn.h&amp;quot; to &amp;quot;olibs\linden\libraries\include&amp;quot;&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\lib\fmodvc.lib&amp;quot; to &amp;quot;olibs\linden\libraries\i686-win32\lib\release&amp;quot; and to &amp;quot;olibs\linden\libraries\i686-win32\lib\debug&amp;quot;&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\fmod.dll&amp;quot; to &amp;quot;olibs\linden\indra\newview&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Boost ===&lt;br /&gt;
&lt;br /&gt;
* Grab the files that Robin Cornelius has precompiled at &lt;br /&gt;
http://www.byteme.org.uk/downloads/boost_1_39_VC90_no_scl_shared_crt_static_link.zip&lt;br /&gt;
* If you get the zip file from Robin Cornelius copy the libraries folder into the the tree you made above for  fmod and QuickTime files that way you have a ready back up of those files for if you update your build directory from the SVN server.&lt;br /&gt;
* or alternatively follow the instructions from the 25/Feb/10 and 15/Apr/10 entries of http://jira.secondlife.com/browse/VWR-9541&lt;br /&gt;
&lt;br /&gt;
((TBD: verify, simplify, fix))&lt;br /&gt;
&lt;br /&gt;
=== cares ===&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
== Set up your source code tree ==&lt;br /&gt;
&lt;br /&gt;
LL distributes the source code in three parts: the source package, the artwork package, and the library package.   You should choose whether to use a snapshot or SVN checkout.  You&#039;ll need art and libraries from a snapshot if you use the SVN method.&lt;br /&gt;
&lt;br /&gt;
* Unzip or checkout your source tree into a directory that has as short full pathname as possible, with NO SPACES in it, to avoid trouble in the build scripts. A sugestion would be to use the same dev tree as LL as all folder names are short and do not have any spaces.&lt;br /&gt;
&lt;br /&gt;
* Example:  ((specific snapshot example TBD; SVN example also ))&lt;br /&gt;
&lt;br /&gt;
* Copy your &amp;quot;olibs&amp;quot; from above into the source tree.&lt;br /&gt;
&lt;br /&gt;
== Fix known problems with the source code tree ==&lt;br /&gt;
&lt;br /&gt;
TBD - edits to scripts that must be made for windows VC90 builds to succeed?&lt;br /&gt;
&lt;br /&gt;
Known Problems:&lt;br /&gt;
* boost.make file has to be edited as shown in the JIRA mentioned in the above section in order to use the boost files in VS2008.&lt;br /&gt;
&lt;br /&gt;
== Initial build steps using develop.py and CMake ==&lt;br /&gt;
&lt;br /&gt;
You may notice that there&#039;s no Visual Studio project file as part of the distributed source tree.  That&#039;s because it is GENERATED in this step using command-line tools.  Only after this step can you begin using the IDE.&lt;br /&gt;
&lt;br /&gt;
* open a Command Prompt window&lt;br /&gt;
&lt;br /&gt;
*Get public tarballs(artwork and other needed files)[ added by [[User:WolfPup Lowenhar|WolfPup Lowenhar]] 03:16, 1 May 2010 (UTC) ]&lt;br /&gt;
** From the command line, &#039;&#039;&#039;cd into the trunk\scripts subdirectory&#039;&#039;&#039;&lt;br /&gt;
** Run &amp;lt;code&amp;gt;&amp;quot;python public_fetch_tarballs.py&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
** &amp;quot;trunk&amp;quot; should now have three LICENSE files in it.&lt;br /&gt;
&lt;br /&gt;
* Run develop.py --&lt;br /&gt;
** From the command line, &#039;&#039;&#039;cd into the indra subdirectory&#039;&#039;&#039; &lt;br /&gt;
** Run &amp;lt;code&amp;gt;&amp;quot;develop.py -G VC90&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;python develop.py -G VC90&amp;quot;&amp;lt;/code&amp;gt; NOTE: use &amp;lt;code&amp;gt; -G VC80 &amp;lt;/code&amp;gt; if you are using VS2005&lt;br /&gt;
** The &amp;lt;code&amp;gt;develop.py&amp;lt;/code&amp;gt; script will create and populate a build directory for you.  It should be in &amp;lt;code&amp;gt;&#039;build-vc90&#039;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&#039;build-vc80&#039;&amp;lt;/code&amp;gt; if using VS2005&lt;br /&gt;
&lt;br /&gt;
((TBD: how to tell if you succeeded))&lt;br /&gt;
&lt;br /&gt;
When it completes you will get your command prompt back and it should say something like:&lt;br /&gt;
&lt;br /&gt;
 Trying to set active config to &amp;quot;RelWithDebInfo&amp;quot;&lt;br /&gt;
   Success!&lt;br /&gt;
 Trying to set &amp;quot;secondlife-bin&amp;quot; to the startup project&lt;br /&gt;
   Success!&lt;br /&gt;
 got ret 0 from tools\vstool\VSTool.exe --solution build-VC80\SecondLife.sln --config RelWithDebInfo --startup secondlife-bin&lt;br /&gt;
&lt;br /&gt;
== Compile using the IDE ==&lt;br /&gt;
&lt;br /&gt;
* Run Visual Studio.&lt;br /&gt;
* Configure Visual Stidio.&lt;br /&gt;
**Use Tools&amp;gt;Options to get the Options window open.&lt;br /&gt;
**Goto Projects and Solutions&amp;gt;VC++ Directories and set the following:&lt;br /&gt;
 Executable Files:&lt;br /&gt;
 $(SystemRoot)&lt;br /&gt;
 $(SystemRoot)\System32&lt;br /&gt;
 $(SystemRoot)\System32\wbem&lt;br /&gt;
 $(VCInstallDir)bin&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\bin&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\common\bin&lt;br /&gt;
 $(VSInstallDir)Common7\Tools\bin&lt;br /&gt;
 $(VSInstallDir)Common7\tools&lt;br /&gt;
 $(VSInstallDir)Common7\ide&lt;br /&gt;
 $(ProgramFiles)\HTML Help Workshop&lt;br /&gt;
 $(FrameworkSDKDir)bin&lt;br /&gt;
 $(FrameworkDir)$(FrameworkVersion)&lt;br /&gt;
 $(VSInstallDir)&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin&lt;br /&gt;
 C:\Python26&lt;br /&gt;
 C:\Program Files\NSIS&lt;br /&gt;
 $(SystemRoot)\SysWow64   (needed in Vista and 7 64-bit version)&lt;br /&gt;
 $(FxCopDir)&lt;br /&gt;
 $(PATH)&lt;br /&gt;
 C:\cygwin\bin&lt;br /&gt;
&lt;br /&gt;
 Included Files:&lt;br /&gt;
 $(VCInstallDir)include&lt;br /&gt;
 $(VCInstallDir)atlmfc\include&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\include&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\common\include&lt;br /&gt;
 $(FrameworkSDKDir)include&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Include&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\gl&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Samples\winui\TSF\tsfapp&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Include&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\gl&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Samples\winui\TSF\tsfapp&lt;br /&gt;
 C:\Program Files\Microsoft DirectX SDK (February 2010)\Include&lt;br /&gt;
&lt;br /&gt;
 Library Files:&lt;br /&gt;
 $(VCInstallDir)lib&lt;br /&gt;
 $(VCInstallDir)atlmfc\lib&lt;br /&gt;
 $(VCInstallDir)atlmfc\lib\i386&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\lib&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\common\lib&lt;br /&gt;
 $(FrameworkSDKDir)lib&lt;br /&gt;
 $(VSInstallDir)&lt;br /&gt;
 $(VSInstallDir)lib&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Lib&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Lib&lt;br /&gt;
 C:\Program Files\Microsoft DirectX SDK (February 2010)\Lib\x86&lt;br /&gt;
&lt;br /&gt;
* Use &amp;quot;File -&amp;gt; Open -&amp;gt; Project/Solution&amp;quot;, navigate to linden/indra/build-VC90/Viewer.vcproj, and open it.&lt;br /&gt;
** if you can&#039;t find this file, perhaps your previous run of develop.py failed.&lt;br /&gt;
* Project ALL_BUILD and configuration RelWithDebugInfo should be selected, and the working directory for ALL_BUILD should be &amp;quot;linden\indra\newview&amp;quot;.&lt;br /&gt;
* Build -&amp;gt; Build Solution (F7)&lt;br /&gt;
&lt;br /&gt;
== Iteratively fix things until the compile succeeds ==&lt;br /&gt;
&lt;br /&gt;
((TBD - add any fixup steps here.  e.g. does fmod375.dll need to be moved into RelWithDbgInfo at this step?))&lt;br /&gt;
&lt;br /&gt;
* report your experiences, if useful, on the talk page, https://wiki.secondlife.com/wiki/Talk:Viewer_2_Microsoft_Windows_Builds&lt;br /&gt;
* ask for help on the SL &amp;quot;Snowglobe&amp;quot; group or the opensource-dev mailing list.&lt;br /&gt;
&lt;br /&gt;
== Common Issues/Bugs/Glitches And Solutions ==&lt;br /&gt;
Applies to Visual C++ 2005 Express:&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
If you run into an issue when running develop.py similar to this:&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
1&amp;gt;Linking...&amp;lt;br/&amp;gt;&lt;br /&gt;
1&amp;gt;link: extra operand `/ERRORREPORT:QUEUE&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
1&amp;gt;Try `link --help&#039; for more information.&amp;lt;br/&amp;gt;&lt;br /&gt;
1&amp;gt;Project : error PRJ0002 : Error result 1 returned from &#039;C:\cygwin\bin\link.exe&#039;.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
You may have not configured Visual Studio properly. The articles in this wiki in regards to the setup of executable paths do not specify an order or priority, but you must make sure that the CYGWIN executable path is set lower in the list than the VC++ paths, otherwise develop.py winds up executing the CygWin Link.exe which won&#039;t work.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This issue has also been seen when using the Windows Command Prompt instead of the command prompt within VC++ (Visual Studio 2010?).&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
These instructions are condensed from about a dozen previous pages of info:&lt;br /&gt;
*https://wiki.secondlife.com/wiki/Microsoft_Windows_Builds&lt;br /&gt;
*https://wiki.secondlife.com/wiki/Compiling_the_Viewer_%28MSVS2008%29&lt;br /&gt;
*https://wiki.secondlife.com/wiki/User:Jodiah_Jensen#UPDATING_BOOST_LIBRARIES_TO_WORK_WITH_VS2008&lt;br /&gt;
** now partially incorrect&lt;br /&gt;
*http://jira.secondlife.com/browse/VWR-9541&lt;br /&gt;
&lt;br /&gt;
((add other references here))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Compiling viewer]]&lt;/div&gt;</summary>
		<author><name>Apotheus Silverman</name></author>
	</entry>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=Viewer_2_Microsoft_Windows_Builds&amp;diff=986502</id>
		<title>Viewer 2 Microsoft Windows Builds</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=Viewer_2_Microsoft_Windows_Builds&amp;diff=986502"/>
		<updated>2010-07-22T18:14:36Z</updated>

		<summary type="html">&lt;p&gt;Apotheus Silverman: /* Quicktime */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{multi-lang}}&lt;br /&gt;
{{CompileNav}}&lt;br /&gt;
&lt;br /&gt;
THESE INSTRUCTIONS ARE NOT YET COMPLETE OR DEBUGGED as of 18 April 2010.  &lt;br /&gt;
&lt;br /&gt;
When finished, we hope this page will constitute a complete recipe for compiling viewer 2 from source on a Windows machine.  &lt;br /&gt;
&lt;br /&gt;
Philosophy: to keep it brief, this page should only include steps we KNOW ARE NEEDED, not random hints.  Extra details or open issues can go on the talk page.&lt;br /&gt;
&lt;br /&gt;
Following this recipe will probably take 6 to 12 hours of wall-clock time, and 2 to 6 hours of your time, if you&#039;re starting from a fresh Windows XP/Vista/7 system.&lt;br /&gt;
&lt;br /&gt;
== Establish your programming environment ==&lt;br /&gt;
This is needed for compiling any viewer based on the LL open source code, but only needs to be done once.&lt;br /&gt;
&lt;br /&gt;
* Obtain Visual Studio (2005, 2008, 2010) (Express is OK)&lt;br /&gt;
** [http://www.microsoft.com/express/download/ Click here to download Visual C++ Express - current version is VS2010]&lt;br /&gt;
** Note: LL still uses VS2005 internally, which uses the VC80 libraries.  VS2008 uses the VC90 libraries. VS2010 TBD (test with the VC90 libraries new ones for VC100 may need to be made).&lt;br /&gt;
* Install Microsoft Platform &amp;amp; DirectX SDKs&lt;br /&gt;
** Download and install [http://www.microsoft.com/downloads/details.aspx?FamilyID=F26B1AA4-741A-433A-9BE5-FA919850BDBF&amp;amp;displaylang=en Windows SDK for Windows Server 2008 and .NET Framework 3.5]&lt;br /&gt;
** Download and install [http://www.microsoft.com/downloads/details.aspx?FamilyID=ea4894b5-e98d-44f6-842d-e32147237638&amp;amp;DisplayLang=en DirectX SDK (August 2008)]&lt;br /&gt;
&lt;br /&gt;
* Install other development tools&lt;br /&gt;
** &#039;&#039;&#039;UniCode NSIS&#039;&#039;&#039;([http://www.scratchpaper.com/home/downloads download Unicode NSIS])&lt;br /&gt;
***  This is the package installer used to build Setup.exe. &amp;lt;b&amp;gt;Note&amp;lt;/b&amp;gt;: As of this writing the file is downloaded with an *.exec extension that needs renamed *.exe.--[[User:Nicky Perian|Nicky Perian]] 16:22, 30 March 2010 (UTC)&lt;br /&gt;
** &#039;&#039;&#039;CMake&#039;&#039;&#039; ([http://www.cmake.org/HTML/Download.html download CMake])&lt;br /&gt;
*** must be version 2.6.2 or higher (and ensure any older versions aren&#039;t in your PATH environment variables)&lt;br /&gt;
** &#039;&#039;&#039;Cygwin&#039;&#039;&#039; ([http://www.cygwin.com/ download Cygwin])&lt;br /&gt;
*** When you run the cygwin setup utility make sure you have selected to install &#039;&#039;&#039;patchutils&#039;&#039;&#039;, &#039;&#039;&#039;flex&#039;&#039;&#039;, and &#039;&#039;&#039;bison&#039;&#039;&#039; (all located under &amp;quot;devel&amp;quot;) which are not part of the default install.&lt;br /&gt;
** &#039;&#039;&#039;Python&#039;&#039;&#039; (download either [http://www.python.org/download/ Python.org Standard Python] or  [http://www.activestate.com/Products/ActivePython/?mp=1 ActivePython]&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;SVN software:&#039;&#039;&#039;(added by [[User:WolfPup Lowenhar|WolfPup Lowenhar]] 02:16, 19 April 2010 (UTC) )&lt;br /&gt;
**&#039;&#039;&#039;TortoiseSVN:&#039;&#039;&#039; http://tortoisesvn.net/&lt;br /&gt;
***&#039;&#039;&#039;Download Page:&#039;&#039;&#039;&lt;br /&gt;
****[http://tortoisesvn.net/downloads TortoiseSVN Downloads](contains link to 32-bit and 64-bit intsallers)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you use SVN software I suggest actually using the same file tree as LL does that way it will be easier to talk about some thing in a particular folder or file with your fellow builders.&lt;br /&gt;
&lt;br /&gt;
== Download and compile libraries that must be manually added to each LL source release ==&lt;br /&gt;
&lt;br /&gt;
It is probably a good idea to build an empty directory tree for the files below and first copy the files there and once completed, copy the whole tree to the actual source folder. Then, if you obtain a new batch of source code, you can save some steps.&lt;br /&gt;
&lt;br /&gt;
 rem OLIBS.CMD to build a folder tree for 3rd party libraries and includes&lt;br /&gt;
 md olibs&lt;br /&gt;
 md olibs\linden\&lt;br /&gt;
 md olibs\linden\libraries&lt;br /&gt;
 md olibs\linden\libraries\include&lt;br /&gt;
 md olibs\linden\libraries\i686-win32&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\lib&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\lib\release&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\lib\debug&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\include&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\include\GL&lt;br /&gt;
 md olibs\linden\libraries\i686-win32\include\quicktime&lt;br /&gt;
 md olibs\linden\indra&lt;br /&gt;
 md olibs\linden\indra\newview&lt;br /&gt;
&lt;br /&gt;
 SVN folder tree - for simplicity of copying files to your build folder&lt;br /&gt;
   trunk\indra\newview&lt;br /&gt;
   trunk\libraries\i686-win32\include\GL&lt;br /&gt;
   trunk\libraries\i686-win32\include\quicktime&lt;br /&gt;
   trunk\libraries\i686-win32\lib\debug&lt;br /&gt;
   trunk\libraries\i686-win32\lib\release&lt;br /&gt;
             &lt;br /&gt;
&lt;br /&gt;
=== Quicktime ===&lt;br /&gt;
&lt;br /&gt;
* Download &amp;amp; install the [http://developer.apple.com/quicktime/download/ Quicktime SDK for Windows] (login may be necessary).&lt;br /&gt;
* copy &amp;quot;QuicktimeSDK\Libraries\QTMLClient.lib&amp;quot; to &amp;quot;olibs\linden\libraries\i686-win32\lib\release&amp;quot; and to &amp;quot;olibs\linden\libraries\i686-win32\lib\debug&amp;quot;&lt;br /&gt;
* Copy the contents of &amp;quot;QuicktimeSDK\CIncludes&amp;quot; into &amp;quot;olibs\linden\libraries\i686-win32\include\quicktime&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Fmod ===&lt;br /&gt;
* Download &amp;amp; extract [http://www.fmod.org/files/fmod3/fmodapi375win.zip FMOD3.75 API for Windows]. (later versions, like FMOD Ex, are incompatible).&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\inc\fmod.h&amp;quot; to &amp;quot;linden\libraries\include&amp;quot;&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\inc\fmod_errors.h&amp;quot; to &amp;quot;linden\libraries\include&amp;quot;&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\inc\fmoddyn.h&amp;quot; to &amp;quot;linden\libraries\include&amp;quot;&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\lib\fmodvc.lib&amp;quot; to &amp;quot;linden\libraries\i686-win32\lib\release&amp;quot; and to &amp;quot;linden\libraries\i686-win32\lib\debug&amp;quot;&lt;br /&gt;
* Copy &amp;quot;fmodapi375win\api\fmod.dll&amp;quot; to &amp;quot;linden\indra\newview&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Boost ===&lt;br /&gt;
&lt;br /&gt;
* Grab the files that Robin Cornelius has precompiled at &lt;br /&gt;
http://www.byteme.org.uk/downloads/boost_1_39_VC90_no_scl_shared_crt_static_link.zip&lt;br /&gt;
* If you get the zip file from Robin Cornelius copy the libraries folder into the the tree you made above for  fmod and QuickTime files that way you have a ready back up of those files for if you update your build directory from the SVN server.&lt;br /&gt;
* or alternatively follow the instructions from the 25/Feb/10 and 15/Apr/10 entries of http://jira.secondlife.com/browse/VWR-9541&lt;br /&gt;
&lt;br /&gt;
((TBD: verify, simplify, fix))&lt;br /&gt;
&lt;br /&gt;
=== cares ===&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
== Set up your source code tree ==&lt;br /&gt;
&lt;br /&gt;
LL distributes the source code in three parts: the source package, the artwork package, and the library package.   You should choose whether to use a snapshot or SVN checkout.  You&#039;ll need art and libraries from a snapshot if you use the SVN method.&lt;br /&gt;
&lt;br /&gt;
* Unzip or checkout your source tree into a directory that has as short full pathname as possible, with NO SPACES in it, to avoid trouble in the build scripts. A sugestion would be to use the same dev tree as LL as all folder names are short and do not have any spaces.&lt;br /&gt;
&lt;br /&gt;
* Example:  ((specific snapshot example TBD; SVN example also ))&lt;br /&gt;
&lt;br /&gt;
* Copy your &amp;quot;olibs&amp;quot; from above into the source tree.&lt;br /&gt;
&lt;br /&gt;
== Fix known problems with the source code tree ==&lt;br /&gt;
&lt;br /&gt;
TBD - edits to scripts that must be made for windows VC90 builds to succeed?&lt;br /&gt;
&lt;br /&gt;
Known Problems:&lt;br /&gt;
* boost.make file has to be edited as shown in the JIRA mentioned in the above section in order to use the boost files in VS2008.&lt;br /&gt;
&lt;br /&gt;
== Initial build steps using develop.py and CMake ==&lt;br /&gt;
&lt;br /&gt;
You may notice that there&#039;s no Visual Studio project file as part of the distributed source tree.  That&#039;s because it is GENERATED in this step using command-line tools.  Only after this step can you begin using the IDE.&lt;br /&gt;
&lt;br /&gt;
* open a Command Prompt window&lt;br /&gt;
&lt;br /&gt;
*Get public tarballs(artwork and other needed files)[ added by [[User:WolfPup Lowenhar|WolfPup Lowenhar]] 03:16, 1 May 2010 (UTC) ]&lt;br /&gt;
** From the command line, &#039;&#039;&#039;cd into the trunk\scripts subdirectory&#039;&#039;&#039;&lt;br /&gt;
** Run &amp;lt;code&amp;gt;&amp;quot;python public_fetch_tarballs.py&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
** &amp;quot;trunk&amp;quot; should now have three LICENSE files in it.&lt;br /&gt;
&lt;br /&gt;
* Run develop.py --&lt;br /&gt;
** From the command line, &#039;&#039;&#039;cd into the indra subdirectory&#039;&#039;&#039; &lt;br /&gt;
** Run &amp;lt;code&amp;gt;&amp;quot;develop.py -G VC90&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;python develop.py -G VC90&amp;quot;&amp;lt;/code&amp;gt; NOTE: use &amp;lt;code&amp;gt; -G VC80 &amp;lt;/code&amp;gt; if you are using VS2005&lt;br /&gt;
** The &amp;lt;code&amp;gt;develop.py&amp;lt;/code&amp;gt; script will create and populate a build directory for you.  It should be in &amp;lt;code&amp;gt;&#039;build-vc90&#039;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&#039;build-vc80&#039;&amp;lt;/code&amp;gt; if using VS2005&lt;br /&gt;
&lt;br /&gt;
((TBD: how to tell if you succeeded))&lt;br /&gt;
&lt;br /&gt;
When it completes you will get your command prompt back and it should say something like:&lt;br /&gt;
&lt;br /&gt;
 Trying to set active config to &amp;quot;RelWithDebInfo&amp;quot;&lt;br /&gt;
   Success!&lt;br /&gt;
 Trying to set &amp;quot;secondlife-bin&amp;quot; to the startup project&lt;br /&gt;
   Success!&lt;br /&gt;
 got ret 0 from tools\vstool\VSTool.exe --solution build-VC80\SecondLife.sln --config RelWithDebInfo --startup secondlife-bin&lt;br /&gt;
&lt;br /&gt;
== Compile using the IDE ==&lt;br /&gt;
&lt;br /&gt;
* Run Visual Studio.&lt;br /&gt;
* Configure Visual Stidio.&lt;br /&gt;
**Use Tools&amp;gt;Options to get the Options window open.&lt;br /&gt;
**Goto Projects and Solutions&amp;gt;VC++ Directories and set the following:&lt;br /&gt;
 Executable Files:&lt;br /&gt;
 $(SystemRoot)&lt;br /&gt;
 $(SystemRoot)\System32&lt;br /&gt;
 $(SystemRoot)\System32\wbem&lt;br /&gt;
 $(VCInstallDir)bin&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\bin&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\common\bin&lt;br /&gt;
 $(VSInstallDir)Common7\Tools\bin&lt;br /&gt;
 $(VSInstallDir)Common7\tools&lt;br /&gt;
 $(VSInstallDir)Common7\ide&lt;br /&gt;
 $(ProgramFiles)\HTML Help Workshop&lt;br /&gt;
 $(FrameworkSDKDir)bin&lt;br /&gt;
 $(FrameworkDir)$(FrameworkVersion)&lt;br /&gt;
 $(VSInstallDir)&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin&lt;br /&gt;
 C:\Python26&lt;br /&gt;
 C:\Program Files\NSIS&lt;br /&gt;
 $(SystemRoot)\SysWow64   (needed in Vista and 7 64-bit version)&lt;br /&gt;
 $(FxCopDir)&lt;br /&gt;
 $(PATH)&lt;br /&gt;
 C:\cygwin\bin&lt;br /&gt;
&lt;br /&gt;
 Included Files:&lt;br /&gt;
 $(VCInstallDir)include&lt;br /&gt;
 $(VCInstallDir)atlmfc\include&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\include&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\common\include&lt;br /&gt;
 $(FrameworkSDKDir)include&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Include&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Include\gl&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Samples\winui\TSF\tsfapp&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Include&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\gl&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Samples\winui\TSF\tsfapp&lt;br /&gt;
 C:\Program Files\Microsoft DirectX SDK (February 2010)\Include&lt;br /&gt;
&lt;br /&gt;
 Library Files:&lt;br /&gt;
 $(VCInstallDir)lib&lt;br /&gt;
 $(VCInstallDir)atlmfc\lib&lt;br /&gt;
 $(VCInstallDir)atlmfc\lib\i386&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\lib&lt;br /&gt;
 $(VCInstallDir)PlatformSDK\common\lib&lt;br /&gt;
 $(FrameworkSDKDir)lib&lt;br /&gt;
 $(VSInstallDir)&lt;br /&gt;
 $(VSInstallDir)lib&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v7.0\Lib&lt;br /&gt;
 C:\Program Files\Microsoft SDKs\Windows\v6.1\Lib&lt;br /&gt;
 C:\Program Files\Microsoft DirectX SDK (February 2010)\Lib\x86&lt;br /&gt;
&lt;br /&gt;
* Use &amp;quot;File -&amp;gt; Open -&amp;gt; Project/Solution&amp;quot;, navigate to linden/indra/build-VC90/Viewer.vcproj, and open it.&lt;br /&gt;
** if you can&#039;t find this file, perhaps your previous run of develop.py failed.&lt;br /&gt;
* Project ALL_BUILD and configuration RelWithDebugInfo should be selected, and the working directory for ALL_BUILD should be &amp;quot;linden\indra\newview&amp;quot;.&lt;br /&gt;
* Build -&amp;gt; Build Solution (F7)&lt;br /&gt;
&lt;br /&gt;
== Iteratively fix things until the compile succeeds ==&lt;br /&gt;
&lt;br /&gt;
((TBD - add any fixup steps here.  e.g. does fmod375.dll need to be moved into RelWithDbgInfo at this step?))&lt;br /&gt;
&lt;br /&gt;
* report your experiences, if useful, on the talk page, https://wiki.secondlife.com/wiki/Talk:Viewer_2_Microsoft_Windows_Builds&lt;br /&gt;
* ask for help on the SL &amp;quot;Snowglobe&amp;quot; group or the opensource-dev mailing list.&lt;br /&gt;
&lt;br /&gt;
== Common Issues/Bugs/Glitches And Solutions ==&lt;br /&gt;
Applies to Visual C++ 2005 Express:&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
If you run into an issue when running develop.py similar to this:&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
1&amp;gt;Linking...&amp;lt;br/&amp;gt;&lt;br /&gt;
1&amp;gt;link: extra operand `/ERRORREPORT:QUEUE&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
1&amp;gt;Try `link --help&#039; for more information.&amp;lt;br/&amp;gt;&lt;br /&gt;
1&amp;gt;Project : error PRJ0002 : Error result 1 returned from &#039;C:\cygwin\bin\link.exe&#039;.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
You may have not configured Visual Studio properly. The articles in this wiki in regards to the setup of executable paths do not specify an order or priority, but you must make sure that the CYGWIN executable path is set lower in the list than the VC++ paths, otherwise develop.py winds up executing the CygWin Link.exe which won&#039;t work.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
This issue has also been seen when using the Windows Command Prompt instead of the command prompt within VC++ (Visual Studio 2010?).&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
These instructions are condensed from about a dozen previous pages of info:&lt;br /&gt;
*https://wiki.secondlife.com/wiki/Microsoft_Windows_Builds&lt;br /&gt;
*https://wiki.secondlife.com/wiki/Compiling_the_Viewer_%28MSVS2008%29&lt;br /&gt;
*https://wiki.secondlife.com/wiki/User:Jodiah_Jensen#UPDATING_BOOST_LIBRARIES_TO_WORK_WITH_VS2008&lt;br /&gt;
** now partially incorrect&lt;br /&gt;
*http://jira.secondlife.com/browse/VWR-9541&lt;br /&gt;
&lt;br /&gt;
((add other references here))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Compiling viewer]]&lt;/div&gt;</summary>
		<author><name>Apotheus Silverman</name></author>
	</entry>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=Talk:LlHTTPRequest&amp;diff=99483</id>
		<title>Talk:LlHTTPRequest</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=Talk:LlHTTPRequest&amp;diff=99483"/>
		<updated>2008-10-15T19:13:15Z</updated>

		<summary type="html">&lt;p&gt;Apotheus Silverman: New section: HTTP_VERIFY_CERT behavior clarification&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I have a Question ..&lt;br /&gt;
Does POST work ? &lt;br /&gt;
I couldnt get it working&lt;br /&gt;
Anylyn Hax 13:34, 28 July 2007 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following headers will be present, usable by scripts running on the HTTP server if the scripting language allows you to access the headers.&lt;br /&gt;
&lt;br /&gt;
An PHP example on how to check to see if the call came from the main grid:&lt;br /&gt;
 &amp;lt;?php&lt;br /&gt;
     if ($_SERVER[&amp;quot;HTTP_X_SECONDLIFE_SHARD&amp;quot;] == &amp;quot;Production&amp;quot;) {&lt;br /&gt;
         echo &#039;You are using the main grid&#039;;&lt;br /&gt;
     } else {&lt;br /&gt;
         echo &#039;You are not using the main grid&#039;;&lt;br /&gt;
     }&lt;br /&gt;
 ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Odd format for header names ==&lt;br /&gt;
&lt;br /&gt;
Why are the headers listed as HTTP_SOME_HEADER_NAME, when the sent headers are in the format Some-Header-Name? Is there some benefit to putting false values that match conventions used by CGI, but aren&#039;t actually correct?&lt;br /&gt;
* This is because you are looking at a global property with a lot more information than just headers. Some functions like listed below handle the stripping of the HTTP_ information, but you could also just use substr to remove the HTTP_ [[User:Wouter Hobble|Wouter Hobble]] - 4 July 2008&lt;br /&gt;
&lt;br /&gt;
I am aware that the example given above works, but (assuming that you&#039;re using mod_php) this would too, and reflects the real header names:&lt;br /&gt;
 &amp;lt;?php&lt;br /&gt;
 $headers = apache_request_headers();&lt;br /&gt;
 if($headers[&#039;X-SecondLife-Shard&#039;] == &#039;Production&#039;)&lt;br /&gt;
 {&lt;br /&gt;
     print &amp;quot;You are on the main grid.&amp;quot;;&lt;br /&gt;
 }&lt;br /&gt;
 else&lt;br /&gt;
 {&lt;br /&gt;
     print &amp;quot;You are on a preview grid.&amp;quot;;&lt;br /&gt;
 }&lt;br /&gt;
 ?&amp;gt;&lt;br /&gt;
Additionally, the current information does not show the capitalisation, thus further confusing the matter.&lt;br /&gt;
[[User:Katharine Berry|Katharine Berry]] 09:55, 21 June 2007 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Root Certificates ==&lt;br /&gt;
Can someone add a list of root certificates to this article?&lt;br /&gt;
&lt;br /&gt;
I know that Verisign, Thawt, and RapidSSL are accepted, I know that CACert.org is not.&lt;br /&gt;
&lt;br /&gt;
== HTTP_VERIFY_CERT behavior clarification ==&lt;br /&gt;
&lt;br /&gt;
Even when HTTP_VERIFY_CERT is set to FALSE, if the certificate domain name does not match the URL domain you will get a HTTP 499 response.&lt;/div&gt;</summary>
		<author><name>Apotheus Silverman</name></author>
	</entry>
</feed>