2023-01-12 20:49:14 +01:00
|
|
|
|
2022-03-18 17:46:08 +01:00
|
|
|
|
|
|
|
KDevelop
|
|
|
|
========
|
|
|
|
|
2023-01-12 20:57:31 +01:00
|
|
|
`KDevelop ( https://www.kdevelop.org )` is a free, open source IDE for all desktop platforms.
|
2022-03-18 17:46:08 +01:00
|
|
|
|
|
|
|
Importing the project
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
- From the KDevelop's main screen select **Open Project**.
|
|
|
|
|
2023-01-12 20:16:00 +01:00
|
|
|
.. figure:: img/kdevelop_newproject.png)
|
2022-03-18 17:46:08 +01:00
|
|
|
:figclass: figure-w480
|
|
|
|
:align: center
|
|
|
|
|
|
|
|
KDevelop's main screen.
|
|
|
|
|
|
|
|
- Navigate to the Godot root folder and select it.
|
|
|
|
- On the next screen, choose **Custom Build System** for the **Project Manager**.
|
|
|
|
|
2023-01-12 20:16:00 +01:00
|
|
|
.. figure:: img/kdevelop_custombuild.png)
|
2022-03-18 17:46:08 +01:00
|
|
|
:figclass: figure-w480
|
|
|
|
:align: center
|
|
|
|
|
|
|
|
- After the project has been imported, open the project configuration by right-clicking
|
|
|
|
on it in the **Projects** panel and selecting **Open Configuration..** option.
|
|
|
|
|
2023-01-12 20:16:00 +01:00
|
|
|
.. figure:: img/kdevelop_openconfig.png)
|
2022-03-18 17:46:08 +01:00
|
|
|
:figclass: figure-w480
|
|
|
|
:align: center
|
|
|
|
|
|
|
|
- Under **Language Support** open the **Includes/Imports** tab and add the following paths:
|
|
|
|
|
2023-01-12 22:00:14 +01:00
|
|
|
```
|
2022-03-18 17:46:08 +01:00
|
|
|
. // A dot, to indicate the root of the Godot project
|
|
|
|
core/
|
|
|
|
core/os/
|
|
|
|
core/math/
|
|
|
|
drivers/
|
|
|
|
platform/<your_platform>/ // Replace <your_platform> with a folder
|
|
|
|
corresponding to your current platform
|
2023-01-12 22:00:14 +01:00
|
|
|
```
|
2022-03-18 17:46:08 +01:00
|
|
|
|
2023-01-12 20:16:00 +01:00
|
|
|
.. figure:: img/kdevelop_addincludes.png)
|
2022-03-18 17:46:08 +01:00
|
|
|
:figclass: figure-w480
|
|
|
|
:align: center
|
|
|
|
|
|
|
|
- Apply the changes.
|
|
|
|
- Under **Custom Build System** add a new build configuration with the following settings:
|
|
|
|
|
|
|
|
+-----------------+------------------------------------------------------------------------------+
|
|
|
|
| Build Directory | *blank* |
|
|
|
|
+-----------------+------------------------------------------------------------------------------+
|
|
|
|
| Enable | **True** |
|
|
|
|
+-----------------+------------------------------------------------------------------------------+
|
|
|
|
| Executable | **scons** |
|
|
|
|
+-----------------+------------------------------------------------------------------------------+
|
2023-01-12 19:29:11 +01:00
|
|
|
| Arguments | See `doc_introduction_to_the_buildsystem` for a full list of arguments. |
|
2022-03-18 17:46:08 +01:00
|
|
|
+-----------------+------------------------------------------------------------------------------+
|
|
|
|
|
2023-01-12 20:16:00 +01:00
|
|
|
.. figure:: img/kdevelop_buildconfig.png)
|
2022-03-18 17:46:08 +01:00
|
|
|
:figclass: figure-w480
|
|
|
|
:align: center
|
|
|
|
|
|
|
|
- Apply the changes and close the configuration window.
|
|
|
|
|
|
|
|
Debugging the project
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
- Select **Run > Configure Launches...** from the top menu.
|
|
|
|
|
2023-01-12 20:16:00 +01:00
|
|
|
.. figure:: img/kdevelop_configlaunches.png)
|
2022-03-18 17:46:08 +01:00
|
|
|
:figclass: figure-w480
|
|
|
|
:align: center
|
|
|
|
|
|
|
|
- Click **Add** to create a new launch configuration.
|
|
|
|
- Select **Executable** option and specify the path to your executable located in
|
2023-01-12 19:43:03 +01:00
|
|
|
the `<Godot root directory>/bin` folder. The name depends on your build configuration,
|
|
|
|
e.g. `godot.x11.tools.64` for 64-bit X11 platform with `tools` enabled.
|
2022-03-18 17:46:08 +01:00
|
|
|
|
2023-01-12 20:16:00 +01:00
|
|
|
.. figure:: img/kdevelop_configlaunches2.png)
|
2022-03-18 17:46:08 +01:00
|
|
|
:figclass: figure-w480
|
|
|
|
:align: center
|
|
|
|
|
|
|
|
If you run into any issues, ask for help in one of
|
2023-01-12 20:39:50 +01:00
|
|
|
`Godot's community channels ( https://godotengine.org/community )`.
|