facebook / proxygen

A collection of C++ HTTP libraries including an easy to use HTTP server.
Other
8.16k stars 1.5k forks source link

CMake error of folly #528

Closed NeilLHY closed 3 weeks ago

NeilLHY commented 3 weeks ago

Hello! When I run build.sh and install folly but get an error:

-- 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.51.0") found components: context filesystem program_options regex system thread 
-- Found DoubleConversion: /usr/lib/x86_64-linux-gnu/libdouble-conversion.so  
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find FastFloat (missing: FASTFLOAT_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  CMake/FindFastFloat.cmake:25 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMake/folly-deps.cmake:55 (find_package)
  CMakeLists.txt:135 (include)

But I cannot install libfast_float_dev,did you encounter such a problem?My environment is ubuntu 20.04

n8o commented 3 weeks ago

I had the same issue today. But on OSX. Installing the dependency fixed it for me. brew install fast_float

NeilLHY commented 3 weeks ago

I fixed the error when I found the open source code of 'fast_float' and installed it. And folly depends on GNUC > 10.