×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

[SOLVED] Error compiling

  • Posts: 220
  • Thank you received: 14
For several days kstars has not been compiled,
fails with this error:

<code>
[ 99%] Built target kstars
CMakeFiles/kstars_ui_tests.dir/test_ekos.cpp.o: in the function "KStarsUiTests::manipulateEkosProfiles()::{lambda()#3}::operator()() const":
/opt/Astronomia/indi_ekos_build/Projects/kstars/Tests/kstars_ui/test_ekos.cpp:198: undefined reference a "bool QTest::qCompare<QString, char [20]>(QString const&, char const (&) [20], char const*, char const*, char const*, int)"
/opt/Astronomia/indi_ekos_build/Projects/kstars/Tests/kstars_ui/test_ekos.cpp:202: undefined reference a "bool QTest::qCompare<QString, char [14]>(QString const&, char const (&) [14], char const*, char const*, char const*, int)"
collect2: error: ld returned 1 exit status
Tests/kstars_ui/CMakeFiles/kstars_ui_tests.dir/build.make:258: recipe for target 'Tests/kstars_ui/kstars_ui_tests' failed
make[2]: *** [Tests/kstars_ui/kstars_ui_tests] Error 1
CMakeFiles/Makefile2:1407: recipe for target 'Tests/kstars_ui/CMakeFiles/kstars_ui_tests.dir/all' failed
make[1]: *** [Tests/kstars_ui/CMakeFiles/kstars_ui_tests.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
[pcxz@kstars]$
</code>
Last edit: 4 years 1 month ago by Teseo.
4 years 1 month ago #49839

Please Log in or Create an account to join the conversation.

Replied by Jasem Mutlaq on topic Error compiling

Most likely related to some Qt version issue.. I asked Eric to look into it.
4 years 1 month ago #49864

Please Log in or Create an account to join the conversation.

  • Posts: 1029
  • Thank you received: 301

Replied by Eric on topic Error compiling

Sorry for not spotting the issue at first push. Code was indeed qCompare'ing a QString with a const char pointer. Depending on the Qt version, it's possible an implicit cast was possible. Pushed tentative fix as D27524.
The following user(s) said Thank You: Teseo
4 years 1 month ago #49875

Please Log in or Create an account to join the conversation.

  • Posts: 17
  • Thank you received: 0

Replied by Marco Mastria on topic Error compiling

I believe the same kind of error is occurring again, now with kstars/Tests/fitsviewer/testfitsdata.cpp on line 62 (maybe on other lines too).
3 years 11 months ago #51801

Please Log in or Create an account to join the conversation.

Time to create page: 0.414 seconds