Make you life easier with Kdevelop

Kdevelop is a nice IDE that supports cmake natively. To install it, just type sudo apt install kdevelop, then in a terminal, type kdevelop.

Tip

To enable sourcing the bashrc from the Ubuntu toolbar, sudo nano /usr/share/applications/kde4/kdevelop.desktop and replace Exec=kdevelop %u by Exec=bash -i -c kdevelop %u.

Import a catkin/CMake project

Click on Project --> Open/Import Project...

../_images/kdev-import.png

Select the CMakeLists.txt inside your project.

../_images/kdev-import-cmake.png

Select you project as the root directory.

../_images/kdev-import-root.png

Correct the Build Directory if necessary, and if you’ve already built with catkin build, you should see Using an already created build directory.

../_images/kdev-import-end.png

Warning

Make sure the Build Directory is set to /path/to/catkin_ws/build/my_project.

Click on finish and you’re done import your project.

../_images/kdev-import-finish.png

Build your project

On the vertical left panel, click on Projects and you’ll see the list of your currently opened projects. Yours should appear here afer a few seconds.

../_images/kdev-editor.png

You can check also in the Build Sequence that your project appears. To build, click on build :)

../_images/kdev-build.png

Note

Cliking on build is equivalent to calling :

cd /path/to/catkin_ws
catkin build my_super_project