Read how to compile KDE4 for yourself on the KDE Teckbase Wiki:

https://techbase.kde.org/Projects/KDE_on_Solaris
development