Difference between revisions of "Get source and compile"

From Second Life Wiki
Jump to navigation Jump to search
m (Reverted edits by Lynda Devin (Talk) to last revision by Oz Linden)
Line 2: Line 2:
{{OSWikiContribBox}}
{{OSWikiContribBox}}


Esta informação é para as pessoas que querem trabalhar com o código fonte para o Viewer.
This information is for people who want to work with the source code for the viewer.


== Projeto Snowstorm - PTBR ==
==Project Snowstorm==


Este é o código mais recente Viewer.  
This is the latest Viewer code.
Código espectador é armazenado em um repositório Mercurial (hg) em [https://bitbucket.org/lindenlab bitbucket], Open Source um site de repositório web. Há muitas versões lá; o que você é mais provável interessado em ser.
Viewer code is stored in a Mercurial (hg) repository on [https://bitbucket.org/lindenlab bitbucket], an  Open Source repository web site. There are many versions there; the ones you are most likely interested in being


* [Lançamento Visualizador https://bitbucket.org/lindenlab/viewer-release]  
* [https://bitbucket.org/lindenlab/viewer-release Viewer Release]
* [Https://bitbucket.org/lindenlab/viewer-beta Visualizador Beta]  
* [https://bitbucket.org/lindenlab/viewer-beta Viewer Beta]
* [O https://bitbucket.org/lindenlab/viewer-development constrói último teste developer]  
* [https://bitbucket.org/lindenlab/viewer-development The latest developer test builds]


Você pode procurar o código-fonte usando um navegador web comum, fazer o download para seu computador, ou usar Mercurial para gerenciar o processo para você.  
You can browse the source code using an ordinary web browser, download it to your machine, or use Mercurial to manage the process for you.


Uma das características interessantes do Viewer de Desenvolvimento é que você pode literalmente observar os Lindens trabalhando nas correções, de bugs e novas funcionalidades para o código diante dos seus olhos.  
One of the interesting features of the Viewer-Development branch is that you can literally watch Lindens merging bug fixes and new features into the code before your very eyes.


Outra boa maneira de navegar o código fonte, incluindo diagramas de UML, está usando [http://dimentox.com/snowstorm/ Doxygen].  
Another good way to browse the source code, including UML diagrams, is using  [http://dimentox.com/snowstorm/ Doxygen].


Não deixe de ler [[Criando um repositório de controle de versão.]]  
Be sure to read [[Creating a version control repository]].


=== Controle de Versão - PTBR ===
=== Version Control ===


hg clone http://hg.secondlife.com/viewer-development </ nowiki>
Viewer development uses the Mercurial (hg) distributed version control system.  To clone the current primary development repository, use:


Você é fortemente encorajado á instalar o [[Mercurial FERRAMENTAS | Linden Lab Mercurial Tools]] também.  
<nowiki>hg clone http://hg.secondlife.com/viewer-development</nowiki>


Pará uma Descrição Passo-a-Passo do Fluxo de Trabalho de Controle de Origem do clone inicial (acima),Veja [[Desenvolver Código Visualizador # Passos do Pará enviar UMA alteração |. Passos Pará enviar UMA alteração]]
You are strongly encouraged to install the [[Mercurial Tools|Linden Lab Mercurial Tools]] as well.


== Compilando - PTBR ==
For a step-by-step outline of the source control workflow from the initial clone (above) to integration of your change, see [[Develop Viewer Code#Steps To Submit a Change|Steps To Submit a Change]].


Instruções por plataforma estão disponíveis nestes tópicos:
== Compiling ==
* [[Viewer 2 Microsoft Windows Builds | Windows]]
* [[Compilando o espectador (Mac OS X) | Mac OS X]]
* [[Compilando o espectador (Linux) | Linux]]


=== Notas ===
Per platform instructions are available in these topics:
* [[Viewer 2 Microsoft Windows Builds|Windows]]
* [[Compiling the viewer (Mac OS X)|Mac OS X]]
* [[Compiling the viewer (Linux)|Linux]]


* [[Compilação problemas comuns]], se você tiver erros durante a construção.
=== Notes ===
* [[Melhorar o tempo de compilação]] para obter informações sobre como compilar mais rápido
* [[LLMozLib2]] para a construção de LLMozLib2.


=== Autoconstruir ===
*  [[Common compilation problems]] if you run into errors while building.
[[Autobuild]] é o novo Linden Lab para manter a estrutura e construir tudo, desde espectador a bibliotecas de terceiro.  
*  [[Improving compilation time]] for information on how to compile faster
[[LLMozLib2]] for building LLMozLib2.


Instruções:  
=== Autobuild ===
* [[Criar Visualizador Com Autobuild]]  
[[Autobuild]] is the new Linden Lab framework to maintain and build everything, from viewer to 3rd party libraries.
 
Instructions:
* [[Build Viewer With Autobuild]]
* [[Build_3rd_Party_lib_with_Autobuild]]
* [[Build_3rd_Party_lib_with_Autobuild]]


== Dicas sobre a Execução - PTBR ==  
== Hints on running ==


=== Canais e versões ===
=== Channels and Versions ===


Canais são apenas agrupamentos de versões. Linden Lab utiliza para rastrear e fornecer atualizações para o Projeto, Beta, e lançamentos de Viewer separadamente.  
Channels are just groupings of versions. Linden Lab uses channels to track and supply updates for Project, Beta, and Release Viewers separately.


Se você receber uma mensagem ao tentar iniciar seu visualizador compilado que existe uma atualização necessária, não entre em pânico. Todo o seu trabalho não está perdido. Você (geralmente) não tem para aplicar as alterações para uma versão nova fonte para testar seu código. É aí que vêm dentro canais.  
If you get a message while trying to start your compiled viewer that there is a required update, don't panic. All of your work is not lost. You (usually) don't have to apply your changes to a new source release to test your code. That's where channels come in.


No início da sessão, a combinação de canais mais a versão é verificada contra uma lista. Dentro de cada canal, algumas versões são permitidas e alguns estão bloqueados. Os espectadores são bloqueados que não são seguros (questões de segurança),  
On login, the combination of channel plus version is checked against a list. Within each channel, some versions are allowed and some are blocked. Viewers are blocked that are unsafe (security issues),
incompatíveis (o protocolo foi alterado de alguma forma fundamental), não
incompatible (the protocol has been changed in some fundamental way), not
suportados (tão velho Linden Lab não pode dar ao luxo de fornecer recursos de apoio), ou
supported (so old Linden Lab can't afford to provide support resources), or
(Mais relevantes aqui) estão em um canal de teste (Release Candidate, First  
(most relevant here) are in a test channel (Release Candidate, First
Olhar) e Linden Lab só quer dados de teste a partir da mais recente.  
Look) and Linden Lab only wants test data from the most recent.


Veja [[Channel_and_Version_Requirements Setting_a_Channel_and_Version_for_an_Open_Source_Viewer # | A definição de um canal e uma versão para o Visualizador de código aberto]] para uma explicação de como fazê-lo no código-fonte.  
See [[Channel_and_Version_Requirements#Setting_a_Channel_and_Version_for_an_Open_Source_Viewer | Setting a Channel and Version for an Open Source Viewer]] for an explanation of how to do it in the source code.


Veja [[Canal de Requisitos e Versão]] para uma explicação detalhada e política oficial sobre a forma como trata a Linden Lab com canais e versões no Second Life.  
See [[Channel and Version Requirements]] for a detailed explanation and official policy on how Linden Lab deals with channels and versions in Second Life.


A Política do Visualizador de Terceiros exige que todos os espectadores usam um nome de canal único. Por favor, veja [http://secondlife.com/corporate/tpv.php aqui] para mais informações.  
The Third Party Viewer Policy requires that all viewers use a unique channel name. Please see [http://secondlife.com/corporate/tpv.php here] for more information.


[[Categoria: Compilando Viewer]]
[[Category:Compiling viewer]]

Revision as of 09:44, 22 November 2011

This information is for people who want to work with the source code for the viewer.

Project Snowstorm

This is the latest Viewer code. Viewer code is stored in a Mercurial (hg) repository on bitbucket, an Open Source repository web site. There are many versions there; the ones you are most likely interested in being

You can browse the source code using an ordinary web browser, download it to your machine, or use Mercurial to manage the process for you.

One of the interesting features of the Viewer-Development branch is that you can literally watch Lindens merging bug fixes and new features into the code before your very eyes.

Another good way to browse the source code, including UML diagrams, is using Doxygen.

Be sure to read Creating a version control repository.

Version Control

Viewer development uses the Mercurial (hg) distributed version control system. To clone the current primary development repository, use:

hg clone http://hg.secondlife.com/viewer-development

You are strongly encouraged to install the Linden Lab Mercurial Tools as well.

For a step-by-step outline of the source control workflow from the initial clone (above) to integration of your change, see Steps To Submit a Change.

Compiling

Per platform instructions are available in these topics:

Notes

Autobuild

Autobuild is the new Linden Lab framework to maintain and build everything, from viewer to 3rd party libraries.

Instructions:

Hints on running

Channels and Versions

Channels are just groupings of versions. Linden Lab uses channels to track and supply updates for Project, Beta, and Release Viewers separately.

If you get a message while trying to start your compiled viewer that there is a required update, don't panic. All of your work is not lost. You (usually) don't have to apply your changes to a new source release to test your code. That's where channels come in.

On login, the combination of channel plus version is checked against a list. Within each channel, some versions are allowed and some are blocked. Viewers are blocked that are unsafe (security issues), incompatible (the protocol has been changed in some fundamental way), not supported (so old Linden Lab can't afford to provide support resources), or (most relevant here) are in a test channel (Release Candidate, First Look) and Linden Lab only wants test data from the most recent.

See Setting a Channel and Version for an Open Source Viewer for an explanation of how to do it in the source code.

See Channel and Version Requirements for a detailed explanation and official policy on how Linden Lab deals with channels and versions in Second Life.

The Third Party Viewer Policy requires that all viewers use a unique channel name. Please see here for more information.