Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to make FLaME, errors occurred during linking #12

Open
yrq0208 opened this issue Oct 9, 2020 · 1 comment
Open

Unable to make FLaME, errors occurred during linking #12

yrq0208 opened this issue Oct 9, 2020 · 1 comment

Comments

@yrq0208
Copy link

yrq0208 commented Oct 9, 2020

Hi all,

I have encountered the following errors when trying to make FLaME,

[100%] Linking CXX executable ../bin/flame_test
CMakeFiles/flame_test.dir/stereo/epipolar_geometry_test.cc.o: In function __static_initialization_and_destruction_0(int, int) [clone .constprop.643]': epipolar_geometry_test.cc:(.text.startup+0x17d): undefined reference to testing::internal::MakeAndRegisterTestInfo(char const*, char const*, char const*, char const*, testing::internal::CodeLocation, void const*, void ()(), void ()(), testing::internal::TestFactoryBase*)'
epipolar_geometry_test.cc:(.text.startup+0x249): undefined reference to testing::internal::MakeAndRegisterTestInfo(char const*, char const*, char const*, char const*, testing::internal::CodeLocation, void const*, void (*)(), void (*)(), testing::internal::TestFactoryBase*)' epipolar_geometry_test.cc:(.text.startup+0x314): undefined reference to testing::internal::MakeAndRegisterTestInfo(char const*, char const*, char const*, char const*, testing::internal::CodeLocation, void const*, void ()(), void ()(), testing::internal::TestFactoryBase*)'
epipolar_geometry_test.cc:(.text.startup+0x3df): undefined reference to testing::internal::MakeAndRegisterTestInfo(char const*, char const*, char const*, char const*, testing::internal::CodeLocation, void const*, void (*)(), void (*)(), testing::internal::TestFactoryBase*)' epipolar_geometry_test.cc:(.text.startup+0x4aa): undefined reference to testing::internal::MakeAndRegisterTestInfo(char const*, char const*, char const*, char const*, testing::internal::CodeLocation, void const*, void ()(), void ()(), testing::internal::TestFactoryBase*)'
CMakeFiles/flame_test.dir/stereo/epipolar_geometry_test.cc.o:epipolar_geometry_test.cc:(.text.startup+0x575): more undefined references to `testing::internal::MakeAndRegisterTestInfo(char const*, char const*, char const*, char const*, testing::internal::CodeLocation, void const*, void ()(), void ()(), testing::internal::TestFactoryBase*)' follow
collect2: error: ld returned 1 exit status
test/CMakeFiles/flame_test.dir/build.make:260: recipe for target 'bin/flame_test' failed
make[2]: *** [bin/flame_test] Error 1
CMakeFiles/Makefile2:140: recipe for target 'test/CMakeFiles/flame_test.dir/all' failed
make[1]: *** [test/CMakeFiles/flame_test.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

I also found the script for cloning and building eigen might be outdated? When I run it it said "abort: HTTP Error 404: Not Found", so I am using my own eigen.

I wonder can anyone shed some lights on this? Thank you in advance.

@laxnpander
Copy link

@yrq0208: If you don't need the unit tests, just build with -DBUILD_TESTS=OFF. I think it is some gtest related problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants