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:
cmakeis invoked directly from thecppdirectory. 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:
cmakeis invoked from another directory, creating an isolated build environment that does not interact with any other build environment. For example, you could createcpp/build-debugand invokecmake $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
makeorninjabuild utilitiesAt 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