File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
python/graphscope/gsctl/scripts Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ option(BUILD_DOC "Whether to build doc" OFF)
1515option (BUILD_ODPS_FRAGMENT_LOADER "Whether to build odps fragment loader" OFF )
1616option (USE_PTHASH "Whether to use pthash" OFF )
1717option (OPTIMIZE_FOR_HOST "Whether to optimize on host" ON ) # Whether to build optimized code on host
18- option (USE_STATIC_ARROW "Whether to use static arrow" ON ) # Whether to link arrow statically, default is ON
18+ option (USE_STATIC_ARROW "Whether to use static arrow" OFF ) # Whether to link arrow statically, default is OFF
1919option (BUILD_WITH_OTEL "Whether to build with opentelemetry-cpp" OFF ) # Whether to build with opentelemetry-cpp, default is OFF
2020
2121#print options
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ target_include_directories(flex_utils PUBLIC
7070 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} >
7171 $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR} >)
7272# Link the static library of arrow, to save the trouble of linking the shared library of arrow
73- target_link_libraries (flex_utils ${ARROW_LIB} ${YAML_CPP_LIBRARIES} ${Boost_LIBRARIES} ${GLOG_LIBRARIES} )
73+ target_link_libraries (flex_utils ${Protobuf_LIBRARIES} ${ ARROW_LIB} ${YAML_CPP_LIBRARIES} ${Boost_LIBRARIES} ${GLOG_LIBRARIES} )
7474install_flex_target(flex_utils)
7575
7676install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
Original file line number Diff line number Diff line change @@ -888,7 +888,15 @@ install_interactive_dependencies() {
888888 fi
889889 # opentelemetry
890890 if [[ " ${OS_PLATFORM} " != * " Darwin" * ]]; then
891- install_opentelemetry
891+ # opentelemetry expect libprotoc >= 3.13.0, see https://github.com/open-telemetry/opentelemetry-cpp/discussions/2223
892+ proto_version=$( protoc --version | awk ' {print $2}' )
893+ major_version=$( echo ${proto_version} | cut -d' .' -f1)
894+ minor_version=$( echo ${proto_version} | cut -d' .' -f2)
895+ if [[ ${major_version} -lt 3 ]] || [[ ${major_version} -eq 3 && ${minor_version} -lt 13 ]]; then
896+ warning " OpenTelemetry requires protoc >= 3.13, current version is ${proto_version} , please upgrade it."
897+ else
898+ install_opentelemetry
899+ fi
892900 fi
893901}
894902
You can’t perform that action at this time.
0 commit comments