1. Installing GCC
sudo apt-get build-dep gccsudo apt-get Install build-essential
2. Installing KDevelop
sudo apt-get install Kdevelop
3. Installation of CMake, etc.
4. Configuration (refer to Ros-wiki) Http://wiki.ros.org/IDEs
CD ~/desktoptouch kdevelop.desktopchmod +x kdevelop.desktop
sudo gedit kdevelop.desktop
Add the following text:
[Desktop Entry] Type=applicationterminal=falseexec=bash-i-C "KDevelop" Name=kdevelopicon=kdevelop
Save exit, the desktop will appear the KDevelop icon
5. Create a Catkin Package
5.1 Importing Catkin top-level workspaces
First clear the Build folder under the Catkin_ws folder (it will reappear the next time you compile)
Open KDevelop and use the shell or desktop icon to
Click "Project", "open Project" to find the CMakelists.txt under CATKIN_WS/SRC, select, click "Next" and modify the project name to your own (SRC is the default)
Select "Build System" as "CMake Project Manager"
"Finish"
The Configure Build directory window appears
Change "Build directory" to /home/user/catkin_ws/build/ (the one that was originally deleted)
Select the appropriate build type "Debug/release"
Additional parameters
-dcatkin_devel_prefix=. /.. /devel-dcmake_install_prefix=. /.. /install
Note: for nested subdirectory structures, you must add the appropriate number of: /
6. Run and debug your own executable program
Click "Right down Arrow", "Debug Start F9" to "Start Configuration"
Click "Add New ..." Select the executable file to debug e.g. "~/catkin_ws/devel/lib/package/node_name"
"OK"
Click "Execute" or "Debug" to
7. Precautions
If there is a problem with the above procedure, you can delete the "*.kdve4" file under "catkin_ws/src./" and repeat the process.
The "Build Type" selected during project import (e.g. "Debug", "Release", "Relwithdebinfo") can be changed by Right-clicki Ng on the project, "Open Configuration ...". Select CMake in the left menu and change the CMake variable "cmake_build_type" appropriately.
Note , if a package inside the Catkin workspace specifies it own "Build Type", e.g. by Adding Set (cmake_build_type release) to the underlying package "CMakeLists.txt", it'll be used for that P Ackage instead of the global one defined in the top-level CMake project.
you may set up a project filter since KDevelop displays a lot of files and (ROS) binaries in the source Tree that is not really interesting for the developer and finding individual files could is really confusing. right click on the project and select "Open Configuration ...". choose "Project Filter" in the left menu. the cleanest solution is-first exclude all files and then include only desired file Types:
Click Add. Type in the pattern: ' * ' (just the star character) and select as "Target" only Files. Choose "Action" Exclude.
- Now, add all files to the want include into the project tree:
Click "Add" and type in your desired file pattern. Choose "Action" Include. Yaml "". Urdf "". SDF "". Xacro "
Don't want to translate ...
ubuntu14.04 installation of KDevelop for Ros development