Difference between revisions of "Talk:Viewer 2 Microsoft Windows Builds"

From Second Life Wiki
Jump to navigation Jump to search
m (Added workaround to avoid error message when configuring with VS C++ 2010 EXPRESS version.)
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== Mailing list discussions on compile errors, and more ==
== A few style guidelines ==
 
=== A few style guidelines ===
*The person who is following these instructions for the first time may know little or nothing about VS2010.  Steps should be kept simple and explained in well written English, not in a succinct description that an experienced person would be able to follow.
*The person who is following these instructions for the first time may know little or nothing about VS2010.  Steps should be kept simple and explained in well written English, not in a succinct description that an experienced person would be able to follow.


Line 17: Line 15:


*People following these instructions still "go wrong" and come to #opensl for help.  If you have the skill to contribute to improving these instructions please consider having an IRC client open to #opensl to assist people.
*People following these instructions still "go wrong" and come to #opensl for help.  If you have the skill to contribute to improving these instructions please consider having an IRC client open to #opensl to assist people.
*The full style guideline can be found here [[Style_Guide]].
[[User:Jonathan Yap|Jonathan Yap]] 07:09, 22 June 2012 (PDT)
: I rather want to have summary, such as, the table of configuration, needed commands without step-by-step instruction. Where to go such a article? If you don't plan to have that, we'd better have two page, one is your instruction, and other is "cheat sheet". -- [[User:Mako Nozaki|Mako]] 08:54, 22 June 2012 (PDT)
::And by the wiki nature, I want every people post what they find without "filtering", accepting comments or suggestions on this wiki. If you have any comment about that, please write HERE, '''not IM to me''', to share your thought to all the people who watch this wiki. Thanks. -- [[User:Mako Nozaki|Mako]] 17:58, 22 June 2012 (PDT)
==Mailing list discussions on compile errors, and more==


=== Eliminate annoying IDE popup ===
=== Eliminate annoying IDE popup ===
Line 29: Line 37:
[[User:Jonathan Yap|Jonathan Yap]] 8:43, 31 May 2011 (PDT)
[[User:Jonathan Yap|Jonathan Yap]] 8:43, 31 May 2011 (PDT)


=== Order of installing ===
== Order of installing ==


I got errors during the installation of the directX SDK. the problems occured while it was installing the c++ Runtimes (which have already been installed before). So here is what i did to fix this:
I got errors during the installation of the directX SDK. the problems occured while it was installing the c++ Runtimes (which have already been installed before). So here is what i did to fix this:
Line 41: Line 49:
[[User:Gaia Clary|Gaia Clary]] 21:28, 8 Feb 2012 (CEST)
[[User:Gaia Clary|Gaia Clary]] 21:28, 8 Feb 2012 (CEST)


== C2220 + C4819 in non-English environment ==
: FYI, This is what I find workable. If anyone stuck with the method on the article, try:


When you see the message like this:
:*Install [http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express Visual C++ 2010 Express] (Web install) or [http://go.microsoft.com/?linkid=9709969 Visual C++ 2010 Express] (ISO)
:*Install [http://www.microsoft.com/downloads/en/details.aspx?FamilyID=6B6C21D2-2006-4AFA-9702-529FA782D63B Windows SDK for Windows 7 and .NET Framework 4] (Web install) [Note: uncheck the Redistributable Package option to prevent installation failure] or [http://www.microsoft.com/downloads/en/details.aspx?FamilyID=35aeda01-421d-4ba5-b44b-543dc8c33a20 Windows SDK for Windows 7 and .NET Framework 4] (ISO)
:*Check if any Microsoft Visual C++ 2010 Redistributable Package is installed. If so, uninstall it (both x82/x64).
:*Install  [http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=3021d52b-514e-41d3-ad02-438a3ba730ba DirectX SDK (June 2010)]
:*If you have default installed Direct X SDK, [http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a7b7a05e-6de6-4d3a-a423-37bf0912db84&displaylang=en Microsoft Visual C++ 2010 Redistributable Package] should have been installed as well.
:*Run [http://www.update.microsoft.com/microsoftupdate/v6 Microsoft Update], and keep running it until no updates are needed. This may take 6~8 iterations on older versions of windows.
:** For Windows XP, use the provided link above. After then, use Microsoft Update on your start menu instead of default Windows Update.
:** For Windows Vista and Windows 7, you can use the link above to add Microsoft Update feature to your Windows Update. "Microsoft Update" won't on menu, so you will have to use default Windows Update to update your Visual Studios.
:** During the update cycles make sure you have picked up ”Microsoft Visual Studio 2010 Service Pack 1". If you haven't, get it from [http://www.microsoft.com/downloads/en/confirmation.aspx?FamilyID=75568aa6-8107-475d-948a-ef22627e57a5  here] (Web install) or [http://go.microsoft.com/fwlink/?LinkId=210710 here] (ISO).
:-- [[User:Mako Nozaki|Mako]] 21:34, 22 June 2012 (PDT)


<pre>
== Proposal: Move hints on this talk page to another page ==
error C2220: warning treated as error - no 'object' file generated
warning C4819: The file contains a character that cannot be represented in the current code page (932)
</pre>
(The message depends on the language you use.)
 
The cause is that the compiler fails when it try to treat BOM in some characters. Currently, the header files from COLLADA dom have several type of such characters. You need to dig in Drive:\your_path\build-vc100\packages\include\collada\1.4\dom and change all of them to avoid these errors.
 
:{|border="1" class="lltable"
|-
! Character !! Should be
|-
|”||"
|-
|“||"
|-
|–||-
|-
|‘||'
|-
|’||'
|-
|}
 
If your editor has grep-and-replace feature, you can easily do that. Or, you can use sed, awk or other command line tool as well. In Cygwin or shell kin, cd to the header files directory above and run:
<pre>
for FILE in *.h; do cp $FILE $FILE.bak; sed -e "s/[”“]/\"/g;s/–/-/g;s/[‘’]/'/g" $FILE.bak > $FILE; done
</pre>
 
-- [[User:Mako Nozaki|Mako]] 07:48, 11 June 2012 (PDT)
 
== Missing msvcp100.dll/msvcr100.dll ==
 
Probably when you use Windows7 and VS2010, you may encounter some error message complaining about lacking msvcp100.dll or msvcr100.dll. It seems to have been solved in  [https://jira.secondlife.com/browse/STORM-1150 STORM-1150], but still has problem (maybe because of the double backslash (\\) in result). You will need to do manually copy missing dlls from C:\Windows\System32 to Drive:\your_path\build-vc100\sharedlibs\Release.
 
-- [[User:Mako Nozaki|Mako]] 07:48, 11 June 2012 (PDT)
 
== Please post "Style Guideline" here ==


Another hint. In general, we use the talk page to discuss the article itself, not for catch-all issue. See another talk pages and [[Project:Talk_Page_Guidelines]] for the references. Thus, you might want to create another page for hints, i.e. [[Viewer 2 Microsoft Windows Builds/Hint]] and move tips toward that page, and keep talk page open for people who want to say something about this article and maintenance style itself. -- [[User:Mako Nozaki|Mako]] 06:44, 22 June 2012 (PDT)
: For a starter, I withdrew my two posts about tips under my namespace, [[User:Mako Nozaki/The Solutions Against The Viewer Troubles]] since currently I can't find no suitable place to post this article in main namespace. -- [[User:Mako Nozaki|Mako]] 21:21, 22 June 2012 (PDT)


To help people who are difficult to on the IRC but interested in this article. -- [[User:Mako Nozaki|Mako]] 05:44, 22 June 2012 (PDT)
== Should always re-install Windows operation systems before you start developing viewer? ==


== Proposal: Move hints on this talk page to another page ==
Related to my previous post to the first topic, this instruction seems to anticipate your Windows "cleaned". However, we may have another projects, another environment, stuffs we can't delete. If we stuck in the middle, should we every time catch someone in the IRC or delete all the environment and start from installing operation systems again? I think wiki is for sharing informations so that people don't have to repeat the similar question on the mailing list or IRC.  Just thought. -- [[User:Mako Nozaki|Mako]] 17:40, 22 June 2012 (PDT)


Another hint. In general, we use the talk page to discuss the article itself, not for catch-all issue. See another talk pages and [[Project:Talk_Page_Guidelines]] for the references. Thus, you might want to create another page for hints, i.e. [[Viewer 2 Microsoft Windows Builds/hint]] and move tips toward that page, and keep talk page open for people who want to say something about this article and maintenance style itself. -- 06:44, 22 June 2012 (PDT)
== Visual C++ 2010 Express ==
When using the Express version of Visual C++ 2010, the "autobuild configure" step will fail due to the changes from https://jira.secondlife.com/browse/OPEN-140.
This is because the VSTool.exe application fails to return the expected value. You will receive an error message at the end of the configure step, but it is safe to ignore it.
If you are not comfortable with that error message during the configure-process, simply replace the VSTool.exe file in indra/tools/vstool/VSTool.exe with ANY .exe file that returns 0.

Latest revision as of 00:52, 11 November 2013

A few style guidelines

  • The person who is following these instructions for the first time may know little or nothing about VS2010. Steps should be kept simple and explained in well written English, not in a succinct description that an experienced person would be able to follow.
  • If there is more than one way to do something only describe one of those ways. The philosophy at the start of this wiki page says, in part: to keep it brief, this page should only include steps we KNOW ARE NEEDED, not random hints.
  • A path to, or a menu entry, should be in bold.
  • A field you can change should be highlighted.
  • Instructions should apply to Visual Studio Express. If there is a small difference between Express and Pro assume the Pro user is experienced and can figure it out. Try to avoid instructions such as "If Express do this" or "If Pro do this".
  • These instructions were written collaboratively and tested by the authors for correctness in all four combinations of XP/Windows 7 and Express/Pro. If you are going to make a change to these instructions it is strongly suggested you make sure your change works for all these combinations. As your development environment may not be this extensive you may want to recruit help from people in the #opensl IRC channel who are using other OS and compiler configurations.
  • Also before making a change make sure it is not an issue with your local environment. Check with others to see if they are also having this issue.
  • People following these instructions still "go wrong" and come to #opensl for help. If you have the skill to contribute to improving these instructions please consider having an IRC client open to #opensl to assist people.
  • The full style guideline can be found here Style_Guide.

Jonathan Yap 07:09, 22 June 2012 (PDT)

I rather want to have summary, such as, the table of configuration, needed commands without step-by-step instruction. Where to go such a article? If you don't plan to have that, we'd better have two page, one is your instruction, and other is "cheat sheet". -- Mako 08:54, 22 June 2012 (PDT)
And by the wiki nature, I want every people post what they find without "filtering", accepting comments or suggestions on this wiki. If you have any comment about that, please write HERE, not IM to me, to share your thought to all the people who watch this wiki. Thanks. -- Mako 17:58, 22 June 2012 (PDT)

Mailing list discussions on compile errors, and more

Eliminate annoying IDE popup

If you are compiling with the IDE and keep getting a popup along the lines of "improve microsoft visual studio performance" Either

  • To hide on XP or 2003 Server, right-click on the Task Bar | Select Properties | Select Taskbar tab | select Hide inactive icons | Click Customize | Set the Behavior for item "Improve Microsoft Visual Studio" to "Always hide".

Or

Note: This second method did not work for me.

Jonathan Yap 8:43, 31 May 2011 (PDT)

Order of installing

I got errors during the installation of the directX SDK. the problems occured while it was installing the c++ Runtimes (which have already been installed before). So here is what i did to fix this:

  • remove all 2010 installations
  • install the DirectX SDK (June 2010) (that also installs the redistributable packages)
  • Install the Visual C++ 2010 Express
  • Install Windows SDK for Windows 7 and .NET Framework 4
  • Run Microsoft Update

Gaia Clary 21:28, 8 Feb 2012 (CEST)

FYI, This is what I find workable. If anyone stuck with the method on the article, try:
  • Install Visual C++ 2010 Express (Web install) or Visual C++ 2010 Express (ISO)
  • Install Windows SDK for Windows 7 and .NET Framework 4 (Web install) [Note: uncheck the Redistributable Package option to prevent installation failure] or Windows SDK for Windows 7 and .NET Framework 4 (ISO)
  • Check if any Microsoft Visual C++ 2010 Redistributable Package is installed. If so, uninstall it (both x82/x64).
  • Install DirectX SDK (June 2010)
  • If you have default installed Direct X SDK, Microsoft Visual C++ 2010 Redistributable Package should have been installed as well.
  • Run Microsoft Update, and keep running it until no updates are needed. This may take 6~8 iterations on older versions of windows.
    • For Windows XP, use the provided link above. After then, use Microsoft Update on your start menu instead of default Windows Update.
    • For Windows Vista and Windows 7, you can use the link above to add Microsoft Update feature to your Windows Update. "Microsoft Update" won't on menu, so you will have to use default Windows Update to update your Visual Studios.
    • During the update cycles make sure you have picked up ”Microsoft Visual Studio 2010 Service Pack 1". If you haven't, get it from here (Web install) or here (ISO).
-- Mako 21:34, 22 June 2012 (PDT)

Proposal: Move hints on this talk page to another page

Another hint. In general, we use the talk page to discuss the article itself, not for catch-all issue. See another talk pages and Project:Talk_Page_Guidelines for the references. Thus, you might want to create another page for hints, i.e. Viewer 2 Microsoft Windows Builds/Hint and move tips toward that page, and keep talk page open for people who want to say something about this article and maintenance style itself. -- Mako 06:44, 22 June 2012 (PDT)

For a starter, I withdrew my two posts about tips under my namespace, User:Mako Nozaki/The Solutions Against The Viewer Troubles since currently I can't find no suitable place to post this article in main namespace. -- Mako 21:21, 22 June 2012 (PDT)

Should always re-install Windows operation systems before you start developing viewer?

Related to my previous post to the first topic, this instruction seems to anticipate your Windows "cleaned". However, we may have another projects, another environment, stuffs we can't delete. If we stuck in the middle, should we every time catch someone in the IRC or delete all the environment and start from installing operation systems again? I think wiki is for sharing informations so that people don't have to repeat the similar question on the mailing list or IRC. Just thought. -- Mako 17:40, 22 June 2012 (PDT)

Visual C++ 2010 Express

When using the Express version of Visual C++ 2010, the "autobuild configure" step will fail due to the changes from https://jira.secondlife.com/browse/OPEN-140. This is because the VSTool.exe application fails to return the expected value. You will receive an error message at the end of the configure step, but it is safe to ignore it. If you are not comfortable with that error message during the configure-process, simply replace the VSTool.exe file in indra/tools/vstool/VSTool.exe with ANY .exe file that returns 0.