-
Notifications
You must be signed in to change notification settings - Fork 9
Description
I have installed the fmt both from source and using apt.
And I have modified the CMakeList with:
include_directories(${FMT_INCLUDE_DIRS})
find_package(FMT REQUIRED)
target_link_libraries(${PROGRAM_NAME} fmt::fmt)
Error log:
/usr/bin/ld: ../lib/libNR-SLAM_d.so: undefined reference to fmt::v11::report_error(char const*)' /usr/bin/ld: ../lib/libNR-SLAM_d.so: undefined reference to fmt::v11::detail::is_printable(unsigned int)'
/usr/bin/ld: ../lib/libNR-SLAM_d.so: undefined reference to fmt::v11::detail::assert_fail(char const*, int, char const*)' /usr/bin/ld: ../lib/libNR-SLAM_d.so: undefined reference to fmt::v11::vprint(fmt::v11::basic_string_view, fmt::v11::basic_format_argsfmt::v11::context)'
collect2: error: ld returned 1 exit status
make[2]: *** [apps/CMakeFiles/simulation.dir/build.make:283: bin/simulation] Error 1
make[2]: Leaving directory '/home/lastbasket/code/slam/NR-SLAM/build'
make[1]: *** [CMakeFiles/Makefile2:6084: apps/CMakeFiles/simulation.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: ../lib/libNR-SLAM_d.so: undefined reference to fmt::v11::report_error(char const*)' /usr/bin/ld: ../lib/libNR-SLAM_d.so: undefined reference to fmt::v11::detail::is_printable(unsigned int)'
/usr/bin/ld: ../lib/libNR-SLAM_d.so: undefined reference to fmt::v11::detail::assert_fail(char const*, int, char const*)' /usr/bin/ld: ../lib/libNR-SLAM_d.so: undefined reference to fmt::v11::vprint(fmt::v11::basic_string_view, fmt::v11::basic_format_argsfmt::v11::context)'
collect2: error: ld returned 1 exit status
make[2]: *** [apps/CMakeFiles/endomapper.dir/build.make:283: bin/endomapper] Error 1
make[2]: Leaving directory '/home/lastbasket/code/slam/NR-SLAM/build'
make[1]: *** [CMakeFiles/Makefile2:5998: apps/CMakeFiles/endomapper.dir/all] Error 2
/usr/bin/ld: ../lib/libNR-SLAM_d.so: undefined reference to fmt::v11::report_error(char const*)' /usr/bin/ld: ../lib/libNR-SLAM_d.so: undefined reference to fmt::v11::detail::is_printable(unsigned int)'
/usr/bin/ld: ../lib/libNR-SLAM_d.so: undefined reference to fmt::v11::detail::assert_fail(char const*, int, char const*)' /usr/bin/ld: ../lib/libNR-SLAM_d.so: undefined reference to fmt::v11::vprint(fmt::v11::basic_string_view, fmt::v11::basic_format_argsfmt::v11::context)'
collect2: error: ld returned 1 exit status
make[2]: *** [apps/CMakeFiles/hamlyn.dir/build.make:283: bin/hamlyn] Error 1
make[2]: Leaving directory '/home/lastbasket/code/slam/NR-SLAM/build'
make[1]: *** [CMakeFiles/Makefile2:5912: apps/CMakeFiles/hamlyn.dir/all] Error 2
make[1]: Leaving directory '/home/lastbasket/code/slam/NR-SLAM/build'
make: *** [Makefile:159: all] Error 2