Install KDevelop on Gentoo
KDevelop is KDEβs integrated development environment and works well for C and C++ development on Gentoo. It pulls in Qt and KDE Framework dependencies, so the safest install path is to sync Portage, set the needed USE flags, then install the IDE and debugging/build tools.
For C++ work, KDevelop is a good fit with clang, gdb, and cmake. It also works fine for wxWidgets development as an editor, code browser, build runner, and debugger front end.
This page gives you a complete install flow plus fixes for the common Qt, Wayland, and OpenGL dependency issues.
Start with a clean sync and update so dependency resolution has the best chance to succeed.
If Portage reports config files in /etc/portage that need updating, merge them before installing KDevelop.
Create a package USE file for the KDevelop stack:
Add:
For Wayland systems:
That fixes the usual Qt requirement issue tied to wayland? ( opengl ).
Install KDevelop:
Add compiler, debugger, and CMake support:
Launch from terminal or your desktop menu:
Basic checks:
- Create or open a CMake project
- Confirm the compiler is detected
- Confirm GDB is available
- Build a sample project and verify output
More backtracking:
Update Portage config files:
Inspect dependency pulls:
Use all CPU cores for builds: