kdevelop.rst 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. .. _doc_configuring_an_ide_kdevelop:
  2. KDevelop
  3. ========
  4. `KDevelop <https://www.kdevelop.org>`_ is a free, open source IDE for all desktop platforms.
  5. Importing the project
  6. ---------------------
  7. - From the KDevelop's main screen select **Open Project**.
  8. .. figure:: img/kdevelop_newproject.png
  9. :figclass: figure-w480
  10. :align: center
  11. KDevelop's main screen.
  12. - Navigate to the Godot root folder and select it.
  13. - On the next screen, choose **Custom Build System** for the **Project Manager**.
  14. .. figure:: img/kdevelop_custombuild.png
  15. :figclass: figure-w480
  16. :align: center
  17. - After the project has been imported, open the project configuration by right-clicking
  18. on it in the **Projects** panel and selecting **Open Configuration..** option.
  19. .. figure:: img/kdevelop_openconfig.png
  20. :figclass: figure-w480
  21. :align: center
  22. - Under **Language Support** open the **Includes/Imports** tab and add the following paths:
  23. .. code-block:: none
  24. . // A dot, to indicate the root of the Godot project
  25. core/
  26. core/os/
  27. core/math/
  28. drivers/
  29. platform/<your_platform>/ // Replace <your_platform> with a folder
  30. corresponding to your current platform
  31. .. figure:: img/kdevelop_addincludes.png
  32. :figclass: figure-w480
  33. :align: center
  34. - Apply the changes.
  35. - Under **Custom Build System** add a new build configuration with the following settings:
  36. +-----------------+------------------------------------------------------------------------------+
  37. | Build Directory | *blank* |
  38. +-----------------+------------------------------------------------------------------------------+
  39. | Enable | **True** |
  40. +-----------------+------------------------------------------------------------------------------+
  41. | Executable | **scons** |
  42. +-----------------+------------------------------------------------------------------------------+
  43. | Arguments | See :ref:`doc_introduction_to_the_buildsystem` for a full list of arguments. |
  44. +-----------------+------------------------------------------------------------------------------+
  45. .. figure:: img/kdevelop_buildconfig.png
  46. :figclass: figure-w480
  47. :align: center
  48. - Apply the changes and close the configuration window.
  49. Debugging the project
  50. ---------------------
  51. - Select **Run > Configure Launches...** from the top menu.
  52. .. figure:: img/kdevelop_configlaunches.png
  53. :figclass: figure-w480
  54. :align: center
  55. - Click **Add** to create a new launch configuration.
  56. - Select **Executable** option and specify the path to your executable located in
  57. the ``<Godot root directory>/bin`` folder. The name depends on your build configuration,
  58. e.g. ``godot.x11.tools.64`` for 64-bit X11 platform with ``tools`` enabled.
  59. .. figure:: img/kdevelop_configlaunches2.png
  60. :figclass: figure-w480
  61. :align: center
  62. If you run into any issues, ask for help in one of
  63. `Godot's community channels <https://godotengine.org/community>`__.