SGL-UT / GPSTk

ATTENTION: This repository has been moved and is for archival purposes only. GPSTk toolkit has been renamed to GNSSTK and has been split into two new separate repositories. GNSSTK now only contains libraries while the other repository GNSSTK-APPS contains only applications. The rename and split into libraries and applications started with version v12.0.0 on September 2021. GPSTk --> GNSSTK at https://gitlab.com/sgl-ut/gnsstk --> GNSSTK-APPS at https://gitlab.com/sgl-ut/gnsstk-apps
Other
339 stars 182 forks source link

Error running ./build.sh on Ubuntu 18.04 #45

Closed JJTriesHisBest closed 3 years ago

JJTriesHisBest commented 6 years ago

Command: ./build.sh -tue -j1

Transcript: https://gist.github.com/JJTriesHisBest/a4c5100d86017e126d2958140cd6edfa

It seems to be a type conversion error. Running with -j1 I see an interesting failure

GPSTk/core/tests/FileHandling/FFBinaryStream_T.cpp:270:4: error: no matching function for call to ‘gpstk::TestUtil::assert(FFBinaryStreamBE&, std::__cxx11::basic_string<char>, int)’
    testFramework.assert(testStrmIn, "Couldn't open " + outfn + " for input", __LINE__);
    ^~~~~~~~~~~~~
In file included from /home/jj/GPSTk/core/tests/FileHandling/FFBinaryStream_T.cpp:40:0:
/home/jj/GPSTk/core/lib/TestFramework/TestUtil.hpp:545:9: note: candidate: void gpstk::TestUtil::assert(bool, const string&, int)
    void TestUtil ::
         ^~~~~~~~
/home/jj/GPSTk/core/lib/TestFramework/TestUtil.hpp:545:9: note:   no known conversion for argument 1 from ‘FFBinaryStreamBE’ to ‘bool’
masamitsutech commented 5 years ago

@JJTriesHisBest I'm not able to replicate this issue anymore. Does it look to be resolved on your side?

libing64 commented 4 years ago

@JJTriesHisBest I also figure out this problem on Ubuntu18.04, and this issue could be skipped if the compiling of 'FFBinaryStream_T.cpp' is disabled. In /core/tests/FileHandling/CMakeLists.txt

-add_executable(FFBinaryStream_T FFBinaryStream_T.cpp)
-target_link_libraries(FFBinaryStream_T gpstk)
-add_test(FileHandling_FFBinaryStream FFBinaryStream_T)
+# add_executable(FFBinaryStream_T FFBinaryStream_T.cpp)
+# target_link_libraries(FFBinaryStream_T gpstk)
+# add_test(FileHandling_FFBinaryStream FFBinaryStream_T)
(END)