Archive:Build your first KDE application on Kubuntu/pt-br: Difference between revisions

    From KDE UserBase Wiki
    (Created page with "==== Instruções ====")
    (Created page with "[File:Screenshot 20200616 162007.jpg|thumb|KDE C++ KDevelop Template]]")
    (11 intermediate revisions by the same user not shown)
    Line 16: Line 16:
    ==== Instruções ====
    ==== Instruções ====


    ===== 1. Install additional development packages from the Kubuntu repository =====
    ===== 1. Instale pacotes adicionais de desenvolvimento do repositório do Kubuntu =====


    Referring to the [https://techbase.kde.org/Development/Tutorials/Setting_Up Setting Up] guide under 'Easy as pie: Package manager', it is much quicker to install the KDE development packages provided from the Kubuntu repository than recompile everything from source.  
    Referring to the [https://techbase.kde.org/Development/Tutorials/Setting_Up Setting Up] guide under 'Easy as pie: Package manager', it is much quicker to install the KDE development packages provided from the Kubuntu repository than recompile everything from source.  


    Run the following command in 'Konsole' to install additional KDE framework library and development tools:
    Rode os seguintes comandos no 'Konsole' para instalar bibliotecas KDE framework e ferramentas de desenvolvimento adicionais:


    <syntaxhighlight lang="bash">
    <syntaxhighlight lang="bash">
    Line 26: Line 26:
    </syntaxhighlight>
    </syntaxhighlight>


    ===== 2. Install KDevelop=====
    ===== 2. Instale KDevelop=====


    <syntaxhighlight lang="bash">
    <syntaxhighlight lang="bash">
    Line 32: Line 32:
    </syntaxhighlight>
    </syntaxhighlight>


    =====3. Create a basic KDE Application using an existing template=====
    =====3. Crie uma aplicação KDE básica usando um template existente =====


    [[File:Screenshot 20200616 162007.jpg|thumb|KDE C++ KDevelop Template]]
    <div class="mw-translate-fuzzy">
    [File:Screenshot 20200616 162007.jpg|thumb|KDE C++ KDevelop Template]]
    </div>


    Now you should be in a position to be able to create a simple KDE application in KDevelop by performing the following in the menu: Project -> New From Template -> Qt -> Graphical -> C++ KDE Framework
    Now you should be in a position to be able to create a simple KDE application in KDevelop by performing the following in the menu: Project -> New From Template -> Qt -> Graphical -> C++ KDE Framework
    Line 42: Line 44:
    You are now up and running! It should also now be possible to use Qt Creator should this be a preferred option.
    You are now up and running! It should also now be possible to use Qt Creator should this be a preferred option.


    ==== Other Useful Guides and References ====
    ==== Outros Guias Úteis e Referências ====


    * [https://community.kde.org/Get_Involved/development/Developing_in_a_virtual_machine Developing in a virtual machine]
    * [https://community.kde.org/Get_Involved/development/Developing_in_a_virtual_machine Desenvolvento em uma máquina virtual]


    * [https://techbase.kde.org/Development/Tutorials/First_program Building your first program]
    * [https://techbase.kde.org/Development/Tutorials/First_program Criando seu primeiro programa]


    * [https://techbase.kde.org/KDE_Frameworks#Step_1:_Install_the_Framework_you_need An Overview of the KDE Frameworks]
    * [https://techbase.kde.org/KDE_Frameworks#Step_1:_Install_the_Framework_you_need Um resumo dos Frameworks KDE]


    * [https://community.kde.org/Get_Involved/development#One-time_setup:_your_development_environment Getting involved]
    * [https://community.kde.org/Get_Involved/development#One-time_setup:_your_development_environment Participe]

    Revision as of 17:59, 27 December 2020

    Other languages:

    Construindo sua primeira aplicação KDE usando Kubuntu Linux 20.04

    Resumo

    Esse documento busca oferecer um resumo dos pré-requisitos necessários para criar, compilar, e executar uma simple aplicação KDE (aplicação GUI) usando o Kubuntu 20.04.

    Como a maioria das distribuições Linux não vem com pacotes de desenvolvimento por padrão, etapas adicionais são necessários para estar pronto para criar uma aplicação KDE Qt rapidamente.

    Pré-requisitos

    É esperado que se tenha uma instalação 'Minimal' do Kubuntu. Refira a esse guia para configurar uma Máquina Virtual para desenvolvimento: https://community.kde.org/Get_Involved/development/Developing_in_a_virtual_machine

    Assim que a instalação do Kubuntu esteja pronta, siga as instruções abaixo.

    Instruções

    1. Instale pacotes adicionais de desenvolvimento do repositório do Kubuntu

    Referring to the Setting Up guide under 'Easy as pie: Package manager', it is much quicker to install the KDE development packages provided from the Kubuntu repository than recompile everything from source.

    Rode os seguintes comandos no 'Konsole' para instalar bibliotecas KDE framework e ferramentas de desenvolvimento adicionais:

    sudo apt install libkf5syntaxhighlighting-dev cmake clang-8 libkf5config-dev libkf5auth-dev libkf5package-dev libkf5declarative-dev libkf5coreaddons-dev libkf5dbusaddons-dev libkf5kcmutils-dev libkf5i18n-dev libqt5core5a libqt5widgets5 libqt5gui5 libqt5qml5 extra-cmake-modules qtbase5-dev kirigami2-dev libkf5kirigami2-5 libkf5notifications-dev qml-module-org-kde-kirigami2 qml-module-qtquick-dialogs qml-module-qtquick-controls2 cmake build-essential gettext libkf5crash-dev libkf5doctools-dev
    
    2. Instale KDevelop
    sudo apt install kdevelop
    
    3. Crie uma aplicação KDE básica usando um template existente

    [File:Screenshot 20200616 162007.jpg|thumb|KDE C++ KDevelop Template]]

    Now you should be in a position to be able to create a simple KDE application in KDevelop by performing the following in the menu: Project -> New From Template -> Qt -> Graphical -> C++ KDE Framework

    This example project should now compile and execute without KDevelop complaining.

    You are now up and running! It should also now be possible to use Qt Creator should this be a preferred option.

    Outros Guias Úteis e Referências