Problem reloading KStars.
Yuri Chornoivan
yurchor at ukr.net
Sun Mar 28 18:41:57 BST 2021
неділя, 28 березня 2021 р. 20:00:51 EEST Dan написано:
> I'm trying to clear a problem and not getting success. I have gone here
> and followed the directions: https://github.com/KDE/kstars
>
> Problems begin here:
>
> 96%] Building CXX object
> Tests/kstars_ui/CMakeFiles/test_ekos_mount.dir/test_ekos_mount.cpp.o
> In file included from
> /home/astrodan/kstars/Tests/kstars_ui/test_ekos_capture_helper.cpp:13:0:
> /home/astrodan/kstars/Tests/kstars_ui/test_ekos_capture_helper.cpp: In
> member function ‘bool TestEkosCaptureHelper::startCapturing(bool)’:
> /home/astrodan/kstars/Tests/kstars_ui/test_ekos_capture_helper.h:258:18:
> error: ‘qWaitFor’ is not a member of ‘QTest’
> if (! QTest::qWaitFor([&](){return queue.isEmpty();}, delay)) { \
> ^
> /home/astrodan/kstars/Tests/kstars_ui/test_ekos_capture_helper.h:258:18:
> note: in definition of macro ‘KVERIFY_EMPTY_QUEUE_WITH_TIMEOUT_SUB’
> if (! QTest::qWaitFor([&](){return queue.isEmpty();}, delay)) { \
> ^~~~~~~~
>
> The problem continues repeatedly, until finally:
>
> CMakeFiles/Makefile2:2517: recipe for target
> 'Tests/kstars_ui/CMakeFiles/test_ekos_meridianflip_specials.dir/all' failed
> make[1]: ***
> [Tests/kstars_ui/CMakeFiles/test_ekos_meridianflip_specials.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> [ 96%] Building CXX object
> Tests/kstars_ui/CMakeFiles/test_ekos_focus.dir/test_ekos_focus_autogen/mocs_
> compilation.cpp.o [ 96%] Building CXX object
> Tests/kstars_ui/CMakeFiles/test_ekos_capture.dir/test_ekos_wizard.cpp.o
> [ 96%] Building CXX object
> Tests/kstars_ui/CMakeFiles/test_ekos_capture.dir/test_ekos_capture.cpp.o
> [ 96%] Building CXX object
> Tests/kstars_ui/CMakeFiles/test_ekos_capture.dir/test_ekos_capture_autogen/m
> ocs_compilation.cpp.o
>
> Can someone please help me out, I am not a programmer.
>
> Best wishes,
>
> Dan
Hi,
The instructions are slightly outdated, you need Qt 5.10 (not 5.9) to compile.
https://doc.qt.io/qt-5/qtest.html#qWaitFor
Please try to use
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=false ../kstars
instead of
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo ../kstars
Best regards,
Yuri
More information about the Kstars-devel
mailing list