Panda3D/Manual/Tutorial: Compilando fonte do Panda3d no Windows: diferenças entre revisões
[edição não verificada] | [edição não verificada] |
Sem resumo de edição |
Sem resumo de edição |
||
Linha 1: | Linha 1: | ||
Note: |
Note: A informação abaixo se aplica ao Panda3D 1.6.0 e posterior. Versões anteriores que ainda usam Visual C++ 2005. |
||
⚫ | |||
Step 1: Installing the Requirements |
|||
⚫ | |||
If you don't have it already, download and install Visual C++ from: |
|||
'''Passo 1: Instalando os Requerimentos''' |
|||
Se você ainda não o tiver, baixe e instale Visual C++ de: |
|||
⚫ | |||
⚫ | |||
If you have the Express version and not the full version, you will need to download and install the Microsoft Platform SDK. This version is the only one I found that includes ATL (which is required): |
|||
Se você possuir uma versão expressa e não usa a versão completa, você precisará baixar e instalar a Microsoft Plataform SDK. Essa versão é a única que encontrei que inclui ATL (que é requerido): |
|||
⚫ | |||
⚫ | |||
Next download and install the DirectX SDK from: |
|||
Em seguida baixe e instale o DirectX SDK de: |
|||
⚫ | |||
⚫ | |||
If all goes well you are all set to use makepanda to compile panda. |
|||
Step 2: Download the source |
|||
Se tudo der certo você está pronto para usar makepanda para compilar panda. |
|||
Download the latest version of the Panda 3D source available at: |
|||
'''Passo 2: Baixe a fonte''' |
|||
⚫ | |||
Baixe a última versão da fonte Panda3D de: |
|||
Extract to an easily accessible place on your HDD (example: C:\panda_source) |
|||
Step 3: Open a command prompt |
|||
⚫ | |||
Easiest way is: START->RUN and type cmd, hit ok. |
|||
Extraia para um local acessivel no seu HD exemplo: C:\panda_sorce) |
|||
You will now have a command prompt open. |
|||
'''Passo 3: Abra o prompt de comando.''' |
|||
You will most likely be in the C:\Documents and Settings\<your user name> folder. |
|||
O modo mais fácil é: START->RUN digite cmd, e aperte ok. |
|||
⚫ | |||
Você agora terá um prompt de comando aberto. |
|||
This command cd "change directory" changes the directory to C:\panda_source |
|||
Ele provavelmente vai abrir na pasta C:\Documents and Settings\<seu nome de usuário> . |
|||
⚫ | |||
⚫ | |||
This brings up all the command options for makepanda.bat |
|||
Com esse comando cd "mudar diretório" você mudou o diretorio para C:\panda_source |
|||
⚫ | |||
Isso traz todas opções de comando para makepanda.bat |
|||
For more info on dos commands: http://www.google.com/search?q=dos+prompt+for+beginners |
For more info on dos commands: http://www.google.com/search?q=dos+prompt+for+beginners |
Revisão das 21h38min de 17 de novembro de 2009
Note: A informação abaixo se aplica ao Panda3D 1.6.0 e posterior. Versões anteriores que ainda usam Visual C++ 2005.
Compilando Panda3D no Windows Passo 1: Instalando os Requerimentos
Se você ainda não o tiver, baixe e instale Visual C++ de:
Se você possuir uma versão expressa e não usa a versão completa, você precisará baixar e instalar a Microsoft Plataform SDK. Essa versão é a única que encontrei que inclui ATL (que é requerido):
Em seguida baixe e instale o DirectX SDK de:
Se tudo der certo você está pronto para usar makepanda para compilar panda.
Passo 2: Baixe a fonte
Baixe a última versão da fonte Panda3D de:
Extraia para um local acessivel no seu HD exemplo: C:\panda_sorce)
Passo 3: Abra o prompt de comando.
O modo mais fácil é: START->RUN digite cmd, e aperte ok.
Você agora terá um prompt de comando aberto.
Ele provavelmente vai abrir na pasta C:\Documents and Settings\<seu nome de usuário> .
Digite: cd C:\panda_source
Com esse comando cd "mudar diretório" você mudou o diretorio para C:\panda_source Digite: makepanda\makepanda.bat
Isso traz todas opções de comando para makepanda.bat
For more info on dos commands: http://www.google.com/search?q=dos+prompt+for+beginners Step 4: "The simplest way to compile panda is to just type..."
As the help text says:
Type: makepanda\makepanda.bat --everything
This process will take an hour or so, so it is best to go do something else because your comp will be using most of its resources on compiling.
For more information on using the makepanda tool to compile, please read the INSTALL-MK document, which is also available within the doc directory of your source tree.
Alternative way: In the directory "makepanda", you will find a "makepanda.sln" file. If you open it, it should launch the Visual Studio environment, you can also compile Panda3D from within there. Internally, this just invokes the makepanda script. If you use this method instead, be sure to set the build configuration to "Release" (unless you want a debug build of course.) Step 5: Make an installer
Note: If you've used the .sln file to build Panda, and used "Release" mode, the installer .exe has already been created for you.
Type: makepanda\makepanda.bat --everything --installer
This should take much less time because if you notice there will be a "built" folder in your C:\panda_source, this was created in the previous step. If you've used different compile options than just --everything in the previous step, make sure those options are the same in this step. Conclusion
And that's it. Depending on your needs you can configure Panda3D any way you wish.