Skip to content

Unable to make FLaME, errors occurred during linking #12

@yrq0208

Description

@yrq0208

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions