Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amoeba/arrow-cpp-conan-example
Example using conan to package and use libarrow
https://github.com/amoeba/arrow-cpp-conan-example
apache-arrow conan conan-io cpp
Last synced: 12 days ago
JSON representation
Example using conan to package and use libarrow
- Host: GitHub
- URL: https://github.com/amoeba/arrow-cpp-conan-example
- Owner: amoeba
- License: apache-2.0
- Created: 2022-09-28T19:52:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-17T19:46:18.000Z (14 days ago)
- Last Synced: 2024-12-18T01:59:03.588Z (14 days ago)
- Topics: apache-arrow, conan, conan-io, cpp
- Language: CMake
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# arrow-cpp-conan-example
Example of using [conan](http://conan.io) to use a customized version of libarrow in a C++ project.
This specific example builds libarrow with:
- Flight RPC
- Parquet## Pre-requisites
- A source checkout of the [arrow](https://github.com/apache/arrow) repository
- A C++ compiler
- cmake
- conan## Building
1. Build a Conan recipe for libarrow
- Set the `ARROW_HOME` environment variable
```sh
export ARROW_HOME=$ARROW_SOURCE_DIR
```
- Create the Conan recipe```sh
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
```
2. Build the example projectFrom this directory, run:
```sh
mkdir build
cd build
conan install .. \
-o arrow:with_flight_rpc=True \
-o arrow:parquet=True \
--build missing
cmake ..
make
```## Running
```sh
./bin/example
```You should get the following output:
```
[
1,
2,
3,
4
]
```## Contributing
Please feel free to open [an issue](https://github.com/amoeba/arrow-cpp-conan-example) or file a PR if the change is fairly straightforward.