Florian Signoret replied to the topic 'Error build source' in the forum. 1 year ago

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


Read More...