genome / joinx

a tool for processing .bed and .vcf files
21 stars 11 forks source link

Make errors on Ubuntu #21

Open ydy1127 opened 5 years ago

ydy1127 commented 5 years ago

Hi!I tried to make joinx on Ubuntu, but I ran into a few errors.Here's a few snippets: /home/hexiaoyu/biosoft/joinx/joinx-1.12.0/vendor/src/gtest160/include/gtest/internal/gtest-internal.h:1179:44: error: no matching function for call to ‘testing::AssertionResult::AssertionResult(std::basic_istream<char>&)’ ::testing::AssertionResult(expression)) \ ^ /home/hexiaoyu/biosoft/joinx/joinx-1.12.0/vendor/src/gtest160/include/gtest/gtest.h:1790:3: note: in expansion of macro ‘GTEST_TEST_BOOLEAN_’ GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \ ^ /home/hexiaoyu/biosoft/joinx/joinx-1.12.0/test/lib/fileformats/TestVcfEntry.cpp:417:5: note: in expansion of macro ‘ASSERT_TRUE’ ASSERT_TRUE(getline(vcfss, line)); ^ In file included from /home/hexiaoyu/biosoft/joinx/joinx-1.12.0/test/lib/fileformats/TestVcfEntry.cpp:13:0: /home/hexiaoyu/biosoft/joinx/joinx-1.12.0/vendor/src/gtest160/include/gtest/gtest.h:271:12: note: candidate: testing::AssertionResult::AssertionResult(bool) explicit AssertionResult(bool success) : success_(success) {} ^ /home/hexiaoyu/biosoft/joinx/joinx-1.12.0/vendor/src/gtest160/include/gtest/gtest.h:271:12: note: no known conversion for argument 1 from ‘std::basic_istream<char>’ to ‘bool’ /home/hexiaoyu/biosoft/joinx/joinx-1.12.0/vendor/src/gtest160/include/gtest/gtest.h:269:3: note: candidate: testing::AssertionResult::AssertionResult(const testing::AssertionResult&) AssertionResult(const AssertionResult& other); ^ /home/hexiaoyu/biosoft/joinx/joinx-1.12.0/vendor/src/gtest160/include/gtest/gtest.h:269:3: note: no known conversion for argument 1 from ‘std::basic_istream<char>’ to ‘const testing::AssertionResult&’ Looking forward to your response.

rajkump commented 5 years ago

Hi, I have a very similar error during make.

/Software/joinx/build/vendor/src/gtest160/include/gtest/gtest.h:269:3: note: no known conversion for argument 1 from ‘std::basic_istream’ to ‘const testing::AssertionResult&’ In file included from /Software/joinx/build/vendor/src/gtest160/include/gtest/gtest.h:57:0, from /Software/joinx/test/lib/fileformats/TestVcfEntry.cpp:13: /Software/joinx/test/lib/fileformats/TestVcfEntry.cpp: In member function ‘virtual void TestVcfEntry_multipleFiltersWhitelist_Test::TestBody()’: /Software/joinx/build/vendor/src/gtest160/include/gtest/internal/gtest-internal.h:1179:44:error: no matching function for call to ‘testing::AssertionResult::AssertionResult(std::basic_istream&)’ ::testing::AssertionResult(expression)) \ ^ /Software/joinx/build/vendor/src/gtest160/include/gtest/gtest.h:1790:3: note: in expansion of macro ‘GTEST_TESTBOOLEAN’ GTEST_TESTBOOLEAN(condition, #condition, false, true, \ ^ /Software/joinx/test/lib/fileformats/TestVcfEntry.cpp:427:5: note: in expansion of macro ‘ASSERT_TRUE’ ASSERTTRUE(getline(vcfss, line)); ^ In file included from /Software/joinx/test/lib/fileformats/TestVcfEntry.cpp:13:0: /Software/joinx/build/vendor/src/gtest160/include/gtest/gtest.h:271:12: note: candidate: testing::AssertionResult::AssertionResult(bool) explicit AssertionResult(bool success) : success(success) {} ^ /Software/joinx/build/vendor/src/gtest160/include/gtest/gtest.h:271:12: note: no known conversion for argument 1 from ‘std::basic_istream’ to ‘bool’ /Software/joinx/build/vendor/src/gtest160/include/gtest/gtest.h:269:3: note: candidate: testing::AssertionResult::AssertionResult(const testing::AssertionResult&) AssertionResult(const AssertionResult& other); ^ /Software/joinx/build/vendor/src/gtest160/include/gtest/gtest.h:269:3: note: no known conversion for argument 1 from ‘std::basic_istream’ to ‘const testing::AssertionResult&’ build/test/lib/fileformats/CMakeFiles/TestFileFormats.dir/build.make:326: recipe for target 'build/test/lib/fileformats/CMakeFiles/TestFileFormats.dir/TestVcfEntry.cpp.o' failed make[2]: [build/test/lib/fileformats/CMakeFiles/TestFileFormats.dir/TestVcfEntry.cpp.o] Error 1 CMakeFiles/Makefile2:237: recipe for target 'build/test/lib/fileformats/CMakeFiles/TestFileFormats.dir/all' failed make[1]: [build/test/lib/fileformats/CMakeFiles/TestFileFormats.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2