Translations:Development/Tutorials/Using KXmlGuiWindow/24/en: Difference between revisions
(Importing a new version from external source) |
(Importing a new version from external source) |
||
Line 1: | Line 1: | ||
=== Compile and run === | === 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 | 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"> | <syntaxhighlight lang="bash"> | ||
mkdir build && cd build && cmake .. && make && ./tutorial2 | mkdir build && cd build && cmake .. && make && ./tutorial2 | ||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 16:43, 24 August 2020
Compile and run
The best way to compile, link and run it is to 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:
mkdir build && cd build && cmake .. && make && ./tutorial2