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

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

Open
hahakid opened this issue Jan 4, 2022 · 1 comment
Open

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

hahakid opened this issue Jan 4, 2022 · 1 comment

Comments

@hahakid
Copy link

hahakid commented Jan 4, 2022

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....

@tricostume
Copy link

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

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