minisam icon indicating copy to clipboard operation
minisam copied to clipboard

fatal error: fmt/core.h: No such file or directory

Open hahakid opened this issue 2 years ago • 1 comments

I followed the install instruction, and can compiler Sophus, but face the following error: XXXXX/Sophus/sophus/common.hpp:42:10: fatal error: fmt/core.h: No such file or directory #include <fmt/core.h> ^~~~~~~~~~~~

I checked the CMakelist of Sophus, and found the following settings: if(USE_BASIC_LOGGING) set (CMAKE_DISABLE_FIND_PACKAGE_fmt ON) endif()

Should I set OFF and re-make the Sophus?

I modified the Sophus cmake file, and installed sucessfully, but facing make error in minisam, and occured many times during compile the examples (optimize_custom_type, robust_curve_fitting, pose_graph_example, etc.): ../../minisam/libminisam.so: undefined reference to fmt::v8::vprint(fmt::v8::basic_string_view<char>, fmt::v8::basic_format_args<fmt::v8::basic_format_context<fmt::v8::appender, char> >)' ../../minisam/libminisam.so: undefined reference to fmt::v8::detail::throw_format_error(char const*)' ../../minisam/libminisam.so: undefined reference to `std::locale fmt::v8::detail::locale_ref::getstd::locale() const' collect2: error: ld returned 1 exit status examples/cpp/CMakeFiles/optimize_custom_type.dir/build.make:111: recipe for target 'examples/cpp/optimize_custom_type' failed make[2]: *** [examples/cpp/optimize_custom_type] Error 1 CMakeFiles/Makefile2:1171: recipe for target 'examples/cpp/CMakeFiles/optimize_custom_type.dir/all' failed make[1]: *** [examples/cpp/CMakeFiles/optimize_custom_type.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs....

hahakid avatar Jan 04 '22 06:01 hahakid

I guess one needs to install fmt as well, have you found the solution?

tricostume avatar May 12 '22 20:05 tricostume