Translations:Development/Tutorials/Using KXmlGuiWindow/24/pt-br: Difference between revisions

From KDE TechBase
No edit summary
No edit summary
 
Line 1: Line 1:
=== Compilar e executar ===
=== Compilar e executar ===
A melhor maneira de compilar, linkar e executar é [[Getting_Started/Build|configurar um ambiente de compilação correto]]. Mas, para um tutorial simples como este, basta criar um diretório de compilação e compilar a partir daí. Este comando pega tudo isso em uma linha:
A melhor maneira de compilar, linkar e executar é [[Getting_Started/Build|configurar um ambiente de compilação correto]]. Mas, para um tutorial simples como este, basta criar um diretório de compilação e compilar a partir daí. Este comando faz tudo isso em uma linha:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
mkdir build && cd build && cmake .. && make && ./tutorial2
mkdir build && cd build && cmake .. && make && ./tutorial2
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 19:13, 21 October 2019

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Development/Tutorials/Using KXmlGuiWindow)
=== Compile and run ===
The best way to compile, link and run it is to [[Getting_Started/Build|set up a correct build environment]]. But for a simple tutorial like this, it's enough to just create a build directory and build from there. This command takes care of all of that in one line:
<syntaxhighlight lang="bash">
mkdir build && cd build && cmake .. && make && ./tutorial2
</syntaxhighlight>

Compilar e executar

A melhor maneira de compilar, linkar e executar é configurar um ambiente de compilação correto. Mas, para um tutorial simples como este, basta criar um diretório de compilação e compilar a partir daí. Este comando faz tudo isso em uma linha:

mkdir build && cd build && cmake .. && make && ./tutorial2