Example of using conan to use a customized version of libarrow in a C++ project.
This specific example builds libarrow with:
- Flight RPC
- Parquet
- A source checkout of the arrow repository
- A C++ compiler
- cmake
- conan
-
Build a Conan recipe for libarrow
-
Set the
ARROW_HOME
environment variableexport ARROW_HOME=$ARROW_SOURCE_DIR
-
Create the Conan recipe
cd $ARROW_HOME conan create ci/conan/all arrow/10.0.0@ \ -o arrow:with_flight_rpc=True \ -o arrow:parquet=True \ --build missing \ --require-override protobuf/3.21.4
-
-
Build the example project
From this directory, run:
mkdir build cd build conan install .. \ -o arrow:with_flight_rpc=True \ -o arrow:parquet=True \ --build missing cmake .. make
./bin/example
You should get the following output:
[
1,
2,
3,
4
]
Please feel free to open an issue or file a PR if the change is fairly straightforward.