Have a look at the CMakeError.log. It will tell you exactly what the cause was. Usually a missing header file meaning that a -dev package is missing (despite the instructions on the KStars website).
Thanks.
the last bit rom that link:
'To update the KStars source code in the future, just go KStars source directory (~/Projects/kstars) and type <strong>git pull</strong>. After the code is updated, go to the build/kstars directory and run <strong>sudo make install</strong>.'
Don't we need to call 'make' sometime before make install?
Cheers