Ubuntu build cpp project
This is a personal project, it may not be suitable for you.
Install denpendcies
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
apt update && apt upgrade apt install -y \ libunwind-dev \ libboost-all-dev \ libevent-dev \ libdouble-conversion-dev \ libgoogle-glog-dev \ libgflags-dev \ libiberty-dev \ liblz4-dev \ liblzma-dev \ libsnappy-dev \ make \ cmake \ zlib1g-dev \ binutils-dev \ libjemalloc-dev \ libssl-dev \ pkg-config \ clang \ g++ \ build-essential \ tar \ curl \ zip \ unzipBuild fmt
1 2 3 4 5 6
git clone https://github.com/fmtlib/fmt.git cd fmt/ mkdir _build && cd _build cmake .. make make install
Build folly
1 2 3 4 5 6
git clone https://github.com/facebook/folly.git cd folly mkdir _build && cd _build cmake .. make make install
Install vcpkg
1 2 3
git clone https://github.com/microsoft/vcpkg.git ./vcpkg/bootstrap-vcpkg.sh ./vcpkg/vcpkg install folly
This post is licensed under CC BY 4.0 by the author.