From 83dd2424706ccf19e0da6640fc0aa8b82d2da296 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Wed, 29 Jan 2020 14:35:07 +0100 Subject: [PATCH] correct build prerequisites on linux and mac --- BUILDING.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/BUILDING.md b/BUILDING.md index f458faf196b..1ed79bbcaca 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -12,10 +12,17 @@ Other should follow the user instructions. See the [How to use](https://github.c $ [sudo] apt-get install build-essential autoconf libtool pkg-config ``` -If you plan to build from source and run tests, install the following as well: +If you plan to build using CMake ```sh - $ [sudo] apt-get install libgflags-dev libgtest-dev - $ [sudo] apt-get install clang-5.0 libc++-dev cmake + $ [sudo] apt-get install cmake +``` + +If you are a contributor and plan to build and run tests, install the following as well: +```sh + $ # libgflags-dev is only required if building with make (deprecated) + $ [sudo] apt-get install libgflags-dev + $ # clang and LLVM C++ lib is only required for sanitizer builds + $ [sudo] apt-get install clang-5.0 libc++-dev ``` ## MacOS @@ -36,8 +43,11 @@ packages from [Homebrew](https://brew.sh): $ brew install autoconf automake libtool shtool ``` -If you plan to build from source and run tests, install the following as well: +If you plan to build using CMake, follow the instructions from https://cmake.org/download/ + +If you are a contributor and plan to build and run tests, install the following as well: ```sh + $ # gflags is only required if building with make (deprecated) $ brew install gflags ```