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:
- Ubuntu: rabbitmq reports an error; Solution error: unable to connect to node rabbit@localhost : nodedown
- Ubuntu found an error during apt operation [How to Solve]
- Mac opens Terminal and reports an error -bash:: command not found
- Running shell script reports an error: “syntax error near unexpected token solution ‘”
- Ubuntu sub process/usr/bin/dpkg returned an error code (1) solution
- [Solved] Any Softwares Install Error in Ubuntu: /usr/bin/dpkg returned an error code
- The upgrade of Ubuntu results in an error in the compilation of Android Jack [Two Method to Solve]
- [Solved] Ubuntu conda ProxyError: Conda cannot proceed due to an error in your proxy configuration
- Ubuntu install and compile OpenCV3.4.0 fatal error: dynlink_nvcuvid.h: No such file or directory #include <dynlink_nv
- Ubuntu18.04 Compile A40i SDK Error: misc/create_inode.c:395:18: error: conflicting types for ‘copy_file_range‘
- How to Solve labelme Install Error in Ubuntu
- mysqlclient in Ubuntu: How to Solve mysqlclient Install Error
- NVIDIA SMI error after Ubuntu 20.04 restart [How to Solve]
- Ubuntu 20.04 Desktop Install sublime-text Error: “Certificate verification failed”
- [Solved] Ubuntu 18.04 Install opencv3.2.0 and opencv_contrib Error
- Ubuntu18.04 Compile Error: android 7 FAILED [How to Solve]
- Errors encountered when configuring static ip on Ubuntu 18.04
- EasyConnect linux (ubuntu 20.04) Run Error [How to Solve]
- [Solved] Ubuntu Compile Rust Program Error: failed to run custom build command for openssl-sys v0.9.39
- Ubuntu Server: How to Install Chrome