×

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

Bi-monthly release with minor bug fixes and improvements

Error build source

  • Posts: 150
  • Thank you received: 15

Replied by Picard on topic Error build source

oh, thank you. I didn't seen the subtility ;-)
3 years 11 months ago #52010

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

  • Posts: 220
  • Thank you received: 14

Replied by Teseo on topic Error build source

Hi all. Continue not build:
...
[ 99%] Building CXX object Tests/kstars_ui/CMakeFiles/kstars_ui_tests.dir/test_ekos_wizard.cpp.o
CMakeFiles/testfitsdata.dir/testfitsdata.cpp.o: in the function "TestFitsData::testLoadFits()":
/opt/Astronomia/indi_ekos_build/Projects/kstars/Tests/fitsviewer/testfitsdata.cpp:92: undefined reference a "bool QTest::qCompare<double, int>(double const&, int const&, char const*, char const*, char const*, int)"
/opt/Astronomia/indi_ekos_build/Projects/kstars/Tests/fitsviewer/testfitsdata.cpp:93: undefined reference a "bool QTest::qCompare<double, int>(double const&, int const&, char const*, char const*, char const*, int)"
/opt/Astronomia/indi_ekos_build/Projects/kstars/Tests/fitsviewer/testfitsdata.cpp:96: undefined reference a "bool QTest::qCompare<double, int>(double const&, int const&, char const*, char const*, char const*, int)"
collect2: error: ld returned 1 exit status
Tests/fitsviewer/CMakeFiles/testfitsdata.dir/build.make:133: recipe for target 'Tests/fitsviewer/testfitsdata' failed
make[2]: *** [Tests/fitsviewer/testfitsdata] Error 1
CMakeFiles/Makefile2:1795: recipe for target 'Tests/fitsviewer/CMakeFiles/testfitsdata.dir/all' failed
make[1]: *** [Tests/fitsviewer/CMakeFiles/testfitsdata.dir/all] Error 2
make[1]: *** Waiting for unfinished processes....
[ 99%] Building CXX object Tests/kstars_ui/CMakeFiles/kstars_ui_tests.dir/test_ekos.cpp.o
...
3 years 11 months ago #52119

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

  • Posts: 150
  • Thank you received: 15

Replied by Picard on topic Error build source

please, try that :

make kstars

input kstars at the end of line. With that, you build only kstars and not tests programs.
3 years 11 months ago #52127

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

  • Posts: 311
  • Thank you received: 42

Replied by wotalota on topic Error build source

Probably not related but the instructions I follow say not to reference cmake in the same directory. so I use cmake ../
mkdir build && cd build
cmake ../kstars -DCMAKE_INSTALL_PREFIX=/usr
make [-j4]
sudo make install
3 years 11 months ago #52130

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

  • Posts: 64
  • Thank you received: 2

Replied by Florian Signoret on topic Error build source

Hello,

Tried to build kstars for the first time, on Ubuntu 18.04.
Same error:
Scanning dependencies of target testfitsdata
[ 98%] Building CXX object Tests/fitsviewer/CMakeFiles/testfitsdata.dir/testfitsdata.cpp.o
[ 99%] Building CXX object Tests/fitsviewer/CMakeFiles/testfitsdata.dir/testfitsdata_autogen/mocs_compilation.cpp.o
[ 99%] Linking CXX executable testfitsdata
CMakeFiles/testfitsdata.dir/testfitsdata.cpp.o : Dans la fonction « TestFitsData::testLoadFits() » :
/home/florian/dev/kstars/Tests/fitsviewer/testfitsdata.cpp:92 : référence indéfinie vers « bool QTest::qCompare<double, int>(double const&, int const&, char const*, char const*, char const*, int) »
/home/florian/dev/kstars/Tests/fitsviewer/testfitsdata.cpp:93 : référence indéfinie vers « bool QTest::qCompare<double, int>(double const&, int const&, char const*, char const*, char const*, int) »
/home/florian/dev/kstars/Tests/fitsviewer/testfitsdata.cpp:96 : référence indéfinie vers « bool QTest::qCompare<double, int>(double const&, int const&, char const*, char const*, char const*, int) »
collect2: error: ld returned 1 exit status
Tests/fitsviewer/CMakeFiles/testfitsdata.dir/build.make:133: recipe for target 'Tests/fitsviewer/testfitsdata' failed
make[2]: *** [Tests/fitsviewer/testfitsdata] Error 1
CMakeFiles/Makefile2:1795: recipe for target 'Tests/fitsviewer/CMakeFiles/testfitsdata.dir/all' failed
make[1]: *** [Tests/fitsviewer/CMakeFiles/testfitsdata.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
3 years 11 months ago #52163

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

  • Posts: 969
  • Thank you received: 94

Replied by alacant on topic Error build source

Hi
The workaround (solution?) is to build without the tests.
HTH
3 years 11 months ago #52184

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

  • Posts: 220
  • Thank you received: 14

Replied by Teseo on topic Error build source

Ok, just add -DBUILD_TESTING=OFF in cmake script command and not build tests.
Thanks at all for info.

In this period I don't have much time to devote to astronomy, I am very busy with my job as an ambulance driver for the Italian Red Cross.
Unfortunately in Italy ( I'm From Pesaro-Urbino province ) we have many problems with the Coronavirus Covid-19.

Bye.
3 years 11 months ago #52258

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

Time to create page: 0.376 seconds