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

http://techbase.kde.org/Projects/KDE_on_Solaris