Please read the documentation on our wiki:

https://community.kde.org/KDevelop/HowToCompile_v5
