kdevelop.rst 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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.linuxbsd.editor.dev.x86_64`` for 64-bit LinuxBSD platform with
  59. ``platform=editor`` and ``dev_build=yes``.
  60. .. figure:: img/kdevelop_configlaunches2.png
  61. :figclass: figure-w480
  62. :align: center
  63. If you run into any issues, ask for help in one of
  64. `Godot's community channels <https://godotengine.org/community>`__.