This will be one of those blog entries that I write primarily to document for myself some stuff I found out after some effort, but that might also be useful for others.
When developing applications, I primarily use Java, mostly because it will do everything I want and it’s the language I’m most familiar with. My IDE of choice is Netbeans.
However, my desktop environment of choice is KDE, and recently I thought of developing a plasmoid, so I decided to check out KDevelop 4, the IDE that seems most suited for KDE development. I got as far as a hello world in C++. Here are my first steps.
First I installed KDevelop and cmake. In Arch Linux (my primary OS for some time now), I did that thusly:
# sudo pacman -Sy kdevelop cmake
Then I ran KDevelop and started a new project:
- Click Project -> New From Template…
- Select C++ -> No GUI (CMake) -> Simple CMake-base C++ application
- Enter
hellokdeat Application Name - Select None at Version Control System, then click Finish.
- Enter the path to your project directory at Installation prefix, then click OK.
Build the project:
- Right click on hellokde and select build.
- Wait until the build window says *** Finished ***.
Start the application:
- Click Run -> Configure Launches…
- Select hellokde and click + at Launch Configurations (at the top)
- Select Executable -> Executable and click the ellipsis (Open File Dialog).
- Navigate to the executable: projects/hellokde/build/hellokde and click OK twice.
- Click Run -> Execute Launch.
Hello KDE! And now for my first plasmoid…


One Comment
Thanks from Spain. 5 minuts investigating how to activate the “Run” buton, and in the end I googled “kdevelop 4 first steps” and your mini-howto appeared.
Post a Comment