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
【结果图】
posted @ 2023-01-02 21:57  stupidstan2019  阅读(191)  评论(1编辑  收藏  举报