For quite some time I have had trouble compiling kstars from latest git pull if I have tests enabled. Here's what I usually do:
cd <kstars git repo folder>
git pull
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
make
The build reaches 98% but then at the tests I start getting tons of errors similar to this one:
[98%] Building CXX object Tests/kstars_ui/CMakeFiles/test_ekos_meridianflip_specials.dir/qrc_kstars.cpp.o
In file included from /home/kbrown/Documents/dev/git_repos/kstars/Tests/kstars_ui/test_ekos_capture_helper.cpp:13:0:
/home/kbrown/Documents/dev/git_repos/kstars/Tests/kstars_ui/test_ekos_capture_helper.cpp: In member function ‘bool TestEkosCaptureHelper::startCapturing(bool)’:
/home/kbrown/Documents/dev/git_repos/kstars/Tests/kstars_ui/test_ekos_capture_helper.h:258:18: error: ‘qWaitFor’ is not a member of ‘QTest’
Everything goes through and appears to run fine if I turn off the tests like this: