After updating Ubuntu 22, spdlog and FMT report errors, mainly due to some unclear problems in the FMT library
Solution:
1. Copy the header file under include/FMT of FMT Library
to this directory
2. In spdlog/include/spdlog/fmt/bundled/core.h add a macro definition of FMT_NOEXCEPT near line 154, which is the following code
// Define FMT_USE_NOEXCEPT to make fmt use noexcept (C++11 feature).
#ifndef FMT_USE_NOEXCEPT
# define FMT_USE_NOEXCEPT 0
#endif
#if FMT_USE_NOEXCEPT || FMT_HAS_FEATURE(cxx_noexcept) || \
FMT_GCC_VERSION >= 408 || FMT_MSC_VER >= 1900
# define FMT_DETECTED_NOEXCEPT noexcept
# define FMT_HAS_CXX11_NOEXCEPT 1
#else
# define FMT_DETECTED_NOEXCEPT throw()
# define FMT_HAS_CXX11_NOEXCEPT 0
#endif
#ifndef FMT_NOEXCEPT
# if FMT_EXCEPTIONS || FMT_HAS_CXX11_NOEXCEPT
# define FMT_NOEXCEPT FMT_DETECTED_NOEXCEPT
# else
# define FMT_NOEXCEPT
# endif
#endif
3. Recompile and install spdlog Library
cmake -S spdlog -B /tmp/build/
cd /tmp/build && make
sudo make install
Read More:
- Fastplanner compilation error: Could not find a package configuration file provided by “cmake_modules”
- Ubuntu install and compile OpenCV3.4.0 fatal error: dynlink_nvcuvid.h: No such file or directory #include <dynlink_nv
- [Solved] Cmake: symbol lookup error: cmake: undefined symbol: archive_write_add_filter_zstd
- [Solved] catkin_make error: CMake Error at CMakeLists.txt:1:
- [Solved] websocket error in Linux service: / lib64 / libc. So. 6: version ` glibc_2.17‘ not found
- mysqlclient in Ubuntu: How to Solve mysqlclient Install Error
- MAC: Clion configure C compiler Error: The C compiler identification is unknown
- [Solved] Ubuntu 18.04 Install opencv3.2.0 and opencv_contrib Error
- NXP mx8 Platform tensorflow-lite build error [How to Solve]
- [Solved] ioctl_cfg80211.c:1130:4: error: too many arguments to function ‘cfg80211_roamed’
- [Solved] Fatal error: GLOG/logging. H: there is no such file or directory
- Linux Error: CMake Error in CMakeLists.txt: No CMAKE_CXX_COMPILER could be found.
- [Solved] error: ‘QStringLiteral’ was not declared in this scope
- [Solved] catkin_make Error: pkg_resources.DistributionNotFound: pyparsing
- [Solved] Error in installing backups.lzma for Python on Linux
- Git-2.16.1.2-64-bit Error: cannot spawn git: Function not implemented
- ERROR: configuration failed for package ‘openssl’ [How to Solve]
- Ubuntu20.04 install the ROS noetic version in catkin_Problems in make compilation
- error: ‘integer_sequence’ is not a member of ‘std’ [How to Solve]
- [Solved] pxp_lib.h:19:10: fatal error: linux/pxp_device.h: No such file or directory