Jump to content

Calligra/Building/2/Developing With KDevelop: Difference between revisions

From KDE Community Wiki
Cyrille (talk | contribs)
Created page with '== Import KOffice in KDevelop == * Project > Open Project * Select KOffice source directory * Select CMake project as a Be patient, opening KOffice can take a long time, KDevel...'
 
Jstaniek (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Import KOffice in KDevelop ==
{{Note|'''These instructions are for the Qt4-based Calligra 2.x on Unix and similar operating systems.''' These instruction won't be extended much as development of the Qt4-based Calligra ends with the 2.9 series.}}
 
== Import Calligra in KDevelop ==
* Project > Open Project
* Project > Open Project
* Select KOffice source directory
* Select Calligra source directory
* Select CMake project as a  
* Select CMake project as a  


Be patient, opening KOffice can take a long time, KDevelop don't show any progress information, only indication that something is happening is an overlay telling you the project is being loaded, and the "projects" docker has appeared
Be patient, opening Calligra can take a long time, KDevelop don't show any progress information, only indication that something is happening is an overlay telling you the project is being loaded, and the "projects" docker has appeared


== Build ==
== Build ==
=== Configuration ===
=== Configuration ===
* In the "project" docker, right click on "koffice", select "Open Configuration"
* In the "project" docker, right click on "calligra", select "Open Configuration"
* In the "CMake" tab, click on the "plus" icon
* In the "CMake" tab, click on the "plus" icon
* Choose the "Build directory" (you can use an existing build directory)
* Choose the "Build directory" (you can use an existing build directory)
Line 17: Line 19:
== Run application ==
== Run application ==


* In "project" docker, right click on "koffice", select "Open Configuration"
* In "project" docker, right click on "calligra", select "Open Configuration"
* In "Run Settings", add a "run targets"
* In "Run Settings", add a "run targets"
* Select "executable", then enter the full path to the application
* Select "executable", then enter the full path to the application

Latest revision as of 17:13, 9 May 2015

Note

These instructions are for the Qt4-based Calligra 2.x on Unix and similar operating systems. These instruction won't be extended much as development of the Qt4-based Calligra ends with the 2.9 series.


Import Calligra in KDevelop

  • Project > Open Project
  • Select Calligra source directory
  • Select CMake project as a

Be patient, opening Calligra can take a long time, KDevelop don't show any progress information, only indication that something is happening is an overlay telling you the project is being loaded, and the "projects" docker has appeared

Build

Configuration

  • In the "project" docker, right click on "calligra", select "Open Configuration"
  • In the "CMake" tab, click on the "plus" icon
  • Choose the "Build directory" (you can use an existing build directory)

Build a target

In the "project" docker, browse to the target you want to build, right click on it, and select "build" or "install". You can add a target to the buildset, all target in the buildset will be build when pressing F8, or any of the other options of the "Build" menu.

Run application

  • In "project" docker, right click on "calligra", select "Open Configuration"
  • In "Run Settings", add a "run targets"
  • Select "executable", then enter the full path to the application
  • Add targets that you want to be run before the execution is started

Run target are easily change through "Run > Current Run Target"

Debug an application

  • Run > Start or F9