1.源码编译
1.1 环境准备
安装cmake等工具
1sudo apt-get install \ 2 build-essential \ 3 cmake
1.2下载源码
git clone https://github.com/apache/arrow.git
切换release分支
1cd arrow 2git tag 3... 4 5git 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编译
1cd cpp 2mkdir release 3cd release 4cmake .. 5make
查看编译结果
1Scanning dependencies of target arrow_shared 2[100%] Linking CXX shared library ../../release/libarrow.so 3[100%] Linking CXX static library ../../release/libarrow.a 4[100%] Built target arrow_static 5[100%] Built target arrow_shared 6 7lynn@lynn-ubuntu:/codes/database/arrow/cpp/release$ ll release/ 8total 53022 9drwxrwxrwx 1 root root 4096 9月 18 14:20 ./ 10drwxrwxrwx 1 root root 4096 9月 18 14:20 ../ 11-rwxrwxrwx 1 root root 12468430 9月 18 14:20 libarrow.a* 12-rwxrwxrwx 1 root root 20997166 9月 18 14:08 libarrow_bundled_dependencies.a* 13lrwxrwxrwx 1 root root 15 9月 18 14:20 libarrow.so -> libarrow.so.100* 14lrwxrwxrwx 1 root root 19 9月 18 14:20 libarrow.so.100 -> libarrow.so.100.0.0* 15-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