facebook / mvfst

An implementation of the QUIC transport protocol.
MIT License
1.5k stars 242 forks source link

cmake ubuntu20.4 error #309

Closed xs-411 closed 1 year ago

xs-411 commented 1 year ago

I would like to ask why when I created a folder named ‘cmakeBuild’ and ran ‘cmake …’, an error occurred.

-- The CXX compiler identification is GNU 9.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.62") found components: iostreams system thread filesystem regex context date_time program_options 
CMake Error at CMakeLists.txt:42 (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 "/data/mvfst/cmakeBuild/CMakeFiles/CMakeOutput.log".
See also "/data/mvfst/cmakeBuild/CMakeFiles/CMakeError.log".
ahornby commented 1 year ago

you're missing the fmt library. if you do a getdeps.py build it will install it for you and add it to the CMAKE_PREFIX_PATH when it runs cmake