imay commented on a change in pull request #1144: Add build script for arrow
URL: https://github.com/apache/incubator-doris/pull/1144#discussion_r283169898
##########
File path: thirdparty/build-thirdparty.sh
##########
@@ -511,12 +516,41 @@ build_librdkafka() {
cd $TP_SOURCE_DIR/$LIBRDKAFKA_SOURCE
CPPFLAGS="-I${TP_INCLUDE_DIR}" \
- LDFLAGS="-L${TP_LIB_DIR}"
+ LDFLAGS="-L${TP_LIB_DIR}" \
CFLAGS="-fPIC" \
./configure --prefix=$TP_INSTALL_DIR --enable-static --disable-ssl
--disable-sasl
make -j$PARALLEL && make install
}
+build_arrow() {
+ check_if_source_exist $ARROW_SOURCE
+ cd $TP_SOURCE_DIR/$ARROW_SOURCE/cpp && mkdir -p release && cd release
+ export ARROW_BROTLI_URL=${TP_SOURCE_DIR}/${BROTLI_NAME}
+ export
ARROW_DOUBLE_CONVERSION_URL=${TP_SOURCE_DIR}/${DOUBLE_CONVERSION_NAME}
+ export ARROW_GLOG_URL=${TP_SOURCE_DIR}/${GLOG_NAME}
+ export ARROW_LZ4_URL=${TP_SOURCE_DIR}/${LZ4_NAME}
+ export ARROW_URIPARSER_URL=${TP_SOURCE_DIR}/${URIPARSER_NAME}
+ export ARROW_ZSTD_URL=${TP_SOURCE_DIR}/${ZSTD_NAME}
+
+ cmake -DARROW_PARQUET=ON -DARROW_IPC=OFF -DARROW_BUILD_SHARED=OFF \
+ -DCMAKE_INSTALL_PREFIX=$TP_INSTALL_DIR \
+ -DARROW_BOOST_USE_SHARED=OFF -DBoost_NO_BOOST_CMAKE=ON
-DBOOST_ROOT=$TP_INSTALL_DIR \
+ -Dgflags_ROOT=$TP_INSTALL_DIR/ \
+ -DSnappy_ROOT=$TP_INSTALL_DIR/ \
+ -DGLOG_ROOT=$TP_INSTALL_DIR/ \
+ -DLZ4_ROOT=$TP_INSTALL_DIR/ \
+ -DThrift_ROOT=$TP_INSTALL_DIR/ ..
+
+ make -j$PARALLEL && make install
+ #copy dep libs
+ cp -rf ./jemalloc_ep-prefix/src/jemalloc_ep/dist/lib/libjemalloc_pic.a
$TP_INSTALL_DIR/lib64/libjemalloc.a
+ cp -rf ./brotli_ep/src/brotli_ep-install/lib/libbrotlienc.a
$TP_INSTALL_DIR/lib64/libbrotlienc.a
+ cp -rf ./brotli_ep/src/brotli_ep-install/lib/libbrotlidec.a
$TP_INSTALL_DIR/lib64/libbrotlidec.a
+ cp -rf ./brotli_ep/src/brotli_ep-install/lib/libbrotlicommon.a
$TP_INSTALL_DIR/lib64/libbrotlicommon.a
+ cp -rf ./zstd_ep-install/lib64/libzstd.a $TP_INSTALL_DIR/lib64/libzstd.a
+ cp -rf
./double-conversion_ep/src/double-conversion_ep/lib/libdouble-conversion.a
$TP_INSTALL_DIR/lib64/libdouble-conversion.a
Review comment:
uriparser lib isn't copied
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]