MIT-SPARK / TEASER-plusplus

A fast and robust point cloud registration library
MIT License
1.76k stars 340 forks source link

undefined reference to `teaser::SolutionEvaluator::SolutionEvaluator(Eigen::Matrix<double, 3, -1, 0, 3, -1> const&, Eigen::Matrix<double, 3, -1, 0, 3, -1> const&, double)' #174

Open junxiaofanchen opened 10 months ago

junxiaofanchen commented 10 months ago

/usr/bin/ld: CMakeFiles/all_tests.dir/evaluation-test.cc.o: in function EvaluationTest_Simple_Test::TestBody()': evaluation-test.cc:(.text+0x2d0): undefined reference toteaser::SolutionEvaluator::SolutionEvaluator(Eigen::Matrix<double, 3, -1, 0, 3, -1> const&, Eigen::Matrix<double, 3, -1, 0, 3, -1> const&, double)' /usr/bin/ld: evaluation-test.cc:(.text+0x371): undefined reference to `teaser::SolutionEvaluator::computeErrorMetric(Eigen::Matrix<double, 3, 3, 0, 3, 3> const&, Eigen::Matrix<double, 3, 1, 0, 3, 1> const&)' collect2: error: ld returned 1 exit status make[2]: [test/teaser/CMakeFiles/all_tests.dir/build.make:297: test/teaser/all_tests] Error 1 make[1]: [CMakeFiles/Makefile2:582: test/teaser/CMakeFiles/all_tests.dir/all] Error 2 make: *** [Makefile:146: all] Error 2

I get this error when i use make -j16, do anyone know how to fix it?

isqjsnao commented 6 months ago

/usr/bin/ld: CMakeFiles/all_tests.dir/evaluation-test.cc.o: in function EvaluationTest_Simple_Test::TestBody()': evaluation-test.cc:(.text+0x2d0): undefined reference toteaser::SolutionEvaluator::SolutionEvaluator(Eigen::Matrix<double, 3, -1, 0, 3, -1> const&, Eigen::Matrix<double, 3, -1, 0, 3, -1> const&, double)' /usr/bin/ld: evaluation-test.cc:(.text+0x371): undefined reference to `teaser::SolutionEvaluator::computeErrorMetric(Eigen::Matrix<double, 3, 3, 0, 3, 3> const&, Eigen::Matrix<double, 3, 1, 0, 3, 1> const&)' collect2: error: ld returned 1 exit status make[2]: [test/teaser/CMakeFiles/all_tests.dir/build.make:297: test/teaser/all_tests] Error 1 make[1]: [CMakeFiles/Makefile2:582: test/teaser/CMakeFiles/all_tests.dir/all] Error 2 make: *** [Makefile:146: all] Error 2

I get this error when i use make -j16, do anyone know how to fix it?

请问您如何解决的 我也是这个问题

LimHyungTae commented 5 months ago

If there are no further questions, we will close the issue. Thx!

hr2894235132 commented 2 months ago

/usr/bin/ld: CMakeFiles/all_tests.dir/evaluation-test.cc.o: in function EvaluationTest_Simple_Test::TestBody()': evaluation-test.cc:(.text+0x2d0): undefined reference toteaser::SolutionEvaluator::SolutionEvaluator(Eigen::Matrix<double, 3, -1, 0, 3, -1> const&, Eigen::Matrix<double, 3, -1, 0, 3, -1> const&, double)' /usr/bin/ld: evaluation-test.cc:(.text+0x371): undefined reference to `teaser::SolutionEvaluator::computeErrorMetric(Eigen::Matrix<double, 3, 3, 0, 3, 3> const&, Eigen::Matrix<double, 3, 1, 0, 3, 1> const&)' collect2: error: ld returned 1 exit status make[2]: [test/teaser/CMakeFiles/all_tests.dir/build.make:297: test/teaser/all_tests] Error 1 make[1]: [CMakeFiles/Makefile2:582: test/teaser/CMakeFiles/all_tests.dir/all] Error 2 make: *** [Makefile:146: all] Error 2

I get this error when i use make -j16, do anyone know how to fix it?

Have you solved it? I have the same problem:undefined reference to `testing::internal::PrintBytesInObjectTo(unsigned char const, unsigned long, std::ostream)'

LimHyungTae commented 2 months ago

Could you elaborate on your problem more? I haven't experienced that kind of problem. How can we reproduce?