1.源码编译
1.1 环境准备
安装cmake等工具
sudo apt-get install \
build-essential \
cmake
1.2下载源码
git clone https://github.com/apache/arrow.git
切换release分支
cd arrow
git tag
...
git checkout -b 1.0.0 apache-arrow-1.0.0
或直接下载
wget https://github.com/apache/arrow/archive/apache-arrow-1.0.1.tar.gz
1.3编译
cd cpp
mkdir release
cd release
cmake ..
make
查看编译结果
Scanning dependencies of target arrow_shared
[100%] Linking CXX shared library ../../release/libarrow.so
[100%] Linking CXX static library ../../release/libarrow.a
[100%] Built target arrow_static
[100%] Built target arrow_shared
lynn@lynn-ubuntu:/codes/database/arrow/cpp/release$ ll release/
total 53022
drwxrwxrwx 1 root root 4096 9月 18 14:20 ./
drwxrwxrwx 1 root root 4096 9月 18 14:20 ../
-rwxrwxrwx 1 root root 12468430 9月 18 14:20 libarrow.a*
-rwxrwxrwx 1 root root 20997166 9月 18 14:08 libarrow_bundled_dependencies.a*
lrwxrwxrwx 1 root root 15 9月 18 14:20 libarrow.so -> libarrow.so.100*
lrwxrwxrwx 1 root root 19 9月 18 14:20 libarrow.so.100 -> libarrow.so.100.0.0*
-rwxrwxrwx 1 root root 10259368 9月 18 14:20 libarrow.so.100.0.0*
可以看到libarrow.so.100动态链接库和 libarrow.a_&libarrow_bundled_dependencies.a_静态链接库。
参考资料
http://arrow.apache.org/docs/developers/cpp/building.html#building-arrow-cpp