User Tools

Site Tools


getting_started:kdevelop

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
getting_started:kdevelop [2021/04/01 08:25] – [No Existing Build Configuration] ursgrafgetting_started:kdevelop [2026/04/13 11:56] (current) ursgraf
Line 1: Line 1:
-====== Use KDevelop with Existing Build Configuration ======+====== Using an Integrated Development Environment ====== 
 +Using an integrated development environment for developing EEROS applications is highly recommended. You have all the features such as source code lookup, code completion or automatic compiling. We recommend to use an integrated development environment such as [[https://www.kdevelop.org/]] or [[https://code.visualstudio.com/]].
  
-Using an integrated development environment for developing EEROS applications is highly recommended. You have all the features such as source code lookup, code completion or automatic compiling. We recommend to use an integrated development environment such as [[https://www.kdevelop.org/]] or [[https://code.visualstudio.com/]]. Get the program with e.g. +IMPORTANT If you are using an SDK for a given target or ROS in your applications, make sure that you source the SDK and fullfill the necessary steps described in [[getting_started:ros#Preparations_and_Building|ROSPreparations and Building]] before starting the IDE.
-<code> +
-$ apt-get install kdevelop +
-</code>+
  
 +===== Use KDevelop with Existing Build Configuration =====
 +==== No Existing Build Configuration ====
 If you have previously built your application manually or with the aid of the [[https://github.com/eeros-project/eeros-build-scripts.git|EEROS scripts]], you can import the configuration into KDevelop as follows: If you have previously built your application manually or with the aid of the [[https://github.com/eeros-project/eeros-build-scripts.git|EEROS scripts]], you can import the configuration into KDevelop as follows:
   - Import the project by choosing the ''CMakeLists.txt'' of your project, eg. //workingDirectory/hello/CMakeLists.txt// or //workingDirectory/simple-motor-control/CMakeLists.txt//.   - Import the project by choosing the ''CMakeLists.txt'' of your project, eg. //workingDirectory/hello/CMakeLists.txt// or //workingDirectory/simple-motor-control/CMakeLists.txt//.
Line 14: Line 14:
   - Build   - Build
  
-===== No Existing Build Configuration =====+==== No Existing Build Configuration ====
 If there is no existing build configuration yet, do as follows If there is no existing build configuration yet, do as follows
   - Import the project by choosing the ''CMakeLists.txt'' of your project, eg. //workingDirectory/hello/CMakeLists.txt// or //workingDirectory/simple-motor-control/CMakeLists.txt//.   - Import the project by choosing the ''CMakeLists.txt'' of your project, eg. //workingDirectory/hello/CMakeLists.txt// or //workingDirectory/simple-motor-control/CMakeLists.txt//.
Line 24: Line 24:
   - Build   - Build
  
-IMPORTANT If you are using an SDK for a given target or ROS in your applicationsmake sure that you source the SDK and fullfill the necessary steps described in [[getting_started:ros#Preparations_and_Building|ROSPreparations and Building]] before starting the IDE.+===== Use VSCode ===== 
 +Use VSCode together with an existing build configuration or build it directly. Add the following //CMakePresets.json// to the root of your EEROS directoryto the directory of a hardware wrapper library or to the root directory of your EEROS application. 
 + 
 +<code json> 
 +
 +  "version": 6, 
 +  "configurePresets": [ 
 +    { 
 +      "name": "debug", 
 +      "displayName": "Debug", 
 +      "generator": "Unix Makefiles", 
 +      "binaryDir": "${sourceDir}/build-x86", 
 +      "cacheVariables":
 +        "CMAKE_BUILD_TYPE": "Debug", 
 +        "CMAKE_INSTALL_PREFIX": "${sourceDir}/../install-x86", 
 +        "CMAKE_EXPORT_COMPILE_COMMANDS": "ON", 
 +        "CMAKE_COLOR_DIAGNOSTICS": "OFF", 
 +        "LIB_ONLY_BUILD": "OFF", 
 +        "USE_TESTS": "ON", 
 +        "USE_ROS2": "ON" 
 +      } 
 +    } 
 +  ], 
 +  "buildPresets": [ 
 +    { "name""debug", "configurePreset""debug"
 +  ] 
 +
 +</code> 
 +Adjust the settings for the build directory and the install directory according to your needs.
getting_started/kdevelop.txt · Last modified: 2026/04/13 11:56 by ursgraf