Hello,
I tried to compile Kstars 3.1.0 on raspbian stretch (for my raspberry pi 3b+) and I have at 94% of the command "make", the following error (there is no issue on the generation of cmake file except the optionnal library qt5datavisualization which are not present and I have install the corresponding INDI library for raspberry) :