asyncio icon indicating copy to clipboard operation
asyncio copied to clipboard

cmake error: Could not find a package configuration file provided by "fmt"

Open Fjallraven-hc opened this issue 2 years ago • 9 comments

Below is the error msg:

-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Module support is disabled.
-- Version: 8.0.1
-- Build type: 
-- CXX_STANDARD: 20
-- Performing Test has_std_20_flag
-- Performing Test has_std_20_flag - Success
-- Performing Test has_std_2a_flag
-- Performing Test has_std_2a_flag - Success
-- Performing Test SUPPORTS_USER_DEFINED_LITERALS
-- Performing Test SUPPORTS_USER_DEFINED_LITERALS - Success
-- Performing Test FMT_HAS_VARIANT
-- Performing Test FMT_HAS_VARIANT - Success
-- Required features: cxx_variadic_templates
-- Looking for strtod_l
-- Looking for strtod_l - found
CMake Error at CMakeLists.txt:59 (find_package):
  By not providing "Findfmt.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "fmt", but
  CMake did not find one.

  Could not find a package configuration file provided by "fmt" with any of
  the following names:

    fmtConfig.cmake
    fmt-config.cmake

  Add the installation prefix of "fmt" to CMAKE_PREFIX_PATH or set "fmt_DIR"
  to a directory containing one of the above files.  If "fmt" provides a
  separate development package or SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!
See also "/home/yhc/asyncio/build/CMakeFiles/CMakeOutput.log".```

Fjallraven-hc avatar Jan 31 '24 02:01 Fjallraven-hc

seems need to build and install fmt in third_party dir manually first.

ayamir avatar Jan 31 '24 05:01 ayamir

seems need to build and install fmt in third_party dir manually first.

sure it is, so maybe the origin CMakeLists.txt file need to be modified for automating this process

Fjallraven-hc avatar Jan 31 '24 07:01 Fjallraven-hc

do you clone recursive submodules?

$ git clone --recursive https://github.com/netcan/asyncio.git
$ cd asyncio
$ mkdir build
$ cd build
$ cmake ..
$ make -j

netcan avatar Feb 03 '24 14:02 netcan

yes

ayamir avatar Feb 03 '24 16:02 ayamir

do you clone recursive submodules?

$ git clone --recursive https://github.com/netcan/asyncio.git
$ cd asyncio
$ mkdir build
$ cd build
$ cmake ..
$ make -j

yes, git clone with --recursive

Fjallraven-hc avatar Feb 04 '24 15:02 Fjallraven-hc

Seems like #18 makes it

kardusenor avatar Mar 24 '24 07:03 kardusenor