Please read the documentation on our wiki: http://techbase.kde.org/Projects/KDevelop4/HowToCompile