You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(base) eric@eric-System-Product-Name:~/facebook/folly$ sudo ./build/fbcode_builder/getdeps.py install-system-deps --recursive
---
+ sudo \
+ apt \
+ install \
+ -y \
+ autoconf \
+ automake \
+ binutils-dev \
+ cmake \
+ libboost-all-dev \
+ libdouble-conversion-dev \
+ libdwarf-dev \
+ libevent-dev \
+ libgflags-dev \
+ libgmock-dev \
+ libgoogle-glog-dev \
+ libgtest-dev \
+ liblz4-dev \
+ liblzma-dev \
+ libsnappy-dev \
+ libsodium-dev \
+ libtool \
+ libunwind-dev \
+ libzstd-dev \
+ ninja-build \
+ zlib1g-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
autoconf is already the newest version (2.71-3).
automake is already the newest version (1:1.16.5-1.3ubuntu1).
binutils-dev is already the newest version (2.42-4ubuntu2).
cmake is already the newest version (3.28.3-1build7).
libboost-all-dev is already the newest version (1.83.0.1ubuntu2).
libdouble-conversion-dev is already the newest version (3.3.0-1build1).
libdwarf-dev is already the newest version (20210528-1build2).
libevent-dev is already the newest version (2.1.12-stable-9ubuntu2).
libgflags-dev is already the newest version (2.2.2-2build1).
libgmock-dev is already the newest version (1.14.0-1).
libgoogle-glog-dev is already the newest version (0.6.0-2.1build1).
libgtest-dev is already the newest version (1.14.0-1).
liblz4-dev is already the newest version (1.9.4-1build1).
liblzma-dev is already the newest version (5.6.1+really5.4.5-1).
libsnappy-dev is already the newest version (1.1.10-1build1).
libsodium-dev is already the newest version (1.0.18-1build3).
libtool is already the newest version (2.4.7-7build1).
libunwind-dev is already the newest version (1.6.2-3build1).
libzstd-dev is already the newest version (1.5.5+dfsg2-2build1).
ninja-build is already the newest version (1.11.1-2).
zlib1g-dev is already the newest version (1:1.3.dfsg-3.1ubuntu2).
The following packages were automatically installed and are no longer required:
libluajit-5.1-2 libluajit-5.1-common libmsgpackc2 libtermkey1 libtree-sitter0 libunibilium4 libvterm0 lua-luv neovim-runtime python3-greenlet python3-msgpack python3-pynvim xclip
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 73 not upgraded
BTW during the dependency and build process, I notice not all dependencies are listed, so I have installed some additional dependencies, for example:
getdeps.py actually may not install all essentials, you may still need to install some extras
it takes me quite a while to figure out that this python (getdeps.py) script may not work
instead, It's easier to import the project directly through CMakeLists.txt.
Here's my step for Clion in case you would like to follow as well.
open Clion and open project, find top-level CMakeLists.txt
click Open as Project
click Trust Project
It will pop up Project Wizard
Name: Debug or Release
Build type: you can choose one based on your need (Debug if you would like to develop)
ToolChain: Default
Generator: change it to Let CMakeDecide
-DCMAKE_BUILD_TYPE=DEBUG -DBUILD_TESTS=ON you can remove -DBUILD_TESTS=ON if you don't wish to test
click on yes
It shall work after this step, Clion may index files for a while.
build failure and there is a failure on "TraitsTest.cpp" 's 761 lines
TEST(Traits, value_list) {
EXPECT_EQ(3, (folly::value_list_size_v<vtag_t<7u, 8, '9'>>));
EXPECT_EQ(3, (folly::value_list_size_t<vtag_t<7u, 8, '9'>>::value));
EXPECT_TRUE(( //
std::is_same_v<
int,
folly::value_list_element_type_t<1, vtag_t<7u, 8, '9'>>>));
// EXPECT_EQ(8, (folly::value_list_element_v<1, vtag_t<7u, 8, '9'>>)); // <- this needs to be comment out
}
after commenting this line out, everything is good, although it still fails with one test 😅.
run system-deps
BTW during the dependency and build process, I notice not all dependencies are listed, so I have installed some additional dependencies, for example:
then run build
any insights? Do I miss something which I shall install first?
Thank you
The text was updated successfully, but these errors were encountered: