Building Arrow C++#

System setup#

Arrow uses CMake as a build configuration system. We recommend building out-of-source. If you are not familiar with this terminology:

  • In-source build: cmake is invoked directly from the cpp directory. This can be inflexible when you wish to maintain multiple build environments (e.g. one for debug builds and another for release builds)

  • Out-of-source build: cmake is invoked from another directory, creating an isolated build environment that does not interact with any other build environment. For example, you could create cpp/build-debug and invoke cmake $CMAKE_ARGS .. from this directory

Building requires:

  • A C++20-enabled compiler. On Linux, gcc 12 and higher should be sufficient.

  • CMake 3.25 or higher

  • On Linux and macOS, either make or ninja build utilities

  • At least 1GB of RAM for a minimal build, 4GB for a minimal debug build with tests and 8GB for a full build using docker.

On Ubuntu/Debian you can install the requirements with:

sudo apt-get install \
     build-essential \
     ninja-build \
     cmake

On Alpine Linux:

apk add autoconf \
        bash \
        cmake \
        g++ \
        gcc \
        ninja \
        make

On Fedora Linux:

sudo dnf install \
     cmake \
     gcc \
     gcc-c++ \
     ninja-build