luceneplusplus / LucenePlusPlus

Lucene++ is an up to date C++ port of the popular Java Lucene library, a high-performance, full-featured text search engine.
luceneplusplus@googlegroups.com
Other
736 stars 232 forks source link

build test error on UBUNTU22.04,version3.0.9 #204

Open codeeeeeeeeeeeee opened 2 months ago

codeeeeeeeeeeeee commented 2 months ago

[ 69%] Building CXX object src/test/CMakeFiles/lucene++-tester.dir/analysis/KeywordAnalyzerTest.cpp.o [ 69%] Building CXX object src/test/CMakeFiles/lucene++-tester.dir/analysis/LengthFilterTest.cpp.o cc1plus: warning: /home/LucenePlusPlus/build/src/test/cotire/lucene++-tester_CXX_prefix.hxx.gch: created and used with different settings of %<-fpie%> [-Winvalid-pch] cc1plus: warning: /home/LucenePlusPlus/build/src/test/cotire/lucene++-tester_CXX_prefix.hxx.gch: created and used with different settings of %<-fpie%> [-Winvalid-pch] cc1plus: warning: /home/LucenePlusPlus/build/src/test/cotire/lucene++-tester_CXX_prefix.hxx.gch: created and used with different settings of %<-fpie%> [-Winvalid-pch] cc1plus: warning: /home/LucenePlusPlus/build/src/test/cotire/lucene++-tester_CXX_prefix.hxx.gch: created and used with different settings of %<-fpie%> [-Winvalid-pch] cc1plus: warning: /home/LucenePlusPlus/build/src/test/cotire/lucene++-tester_CXX_prefix.hxx.gch: created and used with different settings of %<-fpie%> [-Winvalid-pch] cc1plus: warning: /home/LucenePlusPlus/build/src/test/cotire/lucene++-tester_CXX_prefix.hxx.gch: created and used with different settings of %<-fpie%> [-Winvalid-pch] In file included from /home/LucenePlusPlus/src/test/gtest/googletest/include/gtest/gtest_pred_impl.h:39, from /usr/include/gtest/gtest.h:387, from /home/LucenePlusPlus/build/src/test/cotire/lucene++-tester_CXX_prefix.cxx:21, from /home/LucenePlusPlus/build/src/test/cotire/lucene++-tester_CXX_prefix.hxx:4, from : /home/LucenePlusPlus/src/test/gtest/googletest/include/gtest/gtest.h:160:11: error: redefinition of ‘const int testing::kMaxStackTraceDepth’ 160 | const int kMaxStackTraceDepth = 100; | ^~~~~~~ In file included from /home/LucenePlusPlus/build/src/test/cotire/lucene++-tester_CXX_prefix.cxx:21, from /home/LucenePlusPlus/build/src/test/cotire/lucene++-tester_CXX_prefix.hxx:4, from :

codeeeeeeeeeeeee commented 2 months ago

happened in make time,i dont understand why,could someone tell me how to slove this problem,thx!

codeeeeeeeeeeeee commented 2 months ago

i think i find the reason,uninstall the libgtest-dev can solve this problem....