folly编译
【命令】
1)下载依赖./build/fbcode_builder/getdeps.py install-system-deps --recursive
2)编译python3 ./build/fbcode_builder/getdeps.py --allow-system-packages build
3)跑测试
python3 ./build/fbcode_builder/getdeps.py --allow-system-packages test
【遇到的问题】
1)问题一
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
解决:apt-get install libssl-dev
2)问题二
gtest版本低
ExceptionWrapperTest.cpp:83:7: error: ‘ThrowsMessage’ was not declared in this scope
Which version of gtest are you using? It looks like ThrowsMessage was introduced in 1.11.0
https://github.com/facebook/folly/issues/1828
mkdir debug
cmake ..
make
make install
【结果图】