mirror of
https://github.com/apache/arrow.git
synced 2026-10-28 16:47:19 +08:00
Add Debian/Ubuntu instructions to build Flight with system libs
This commit is contained in:
1 parent
5756129aa8
commit
ef9100a622
3 files changed
+6
-9
No files matched your search
@@ -339,6 +339,10 @@ When building, set the environment variables `GRPC_HOME` and/or
|
||||
|
||||
On Ubuntu/Debian, you can install these dependencies with:
|
||||
|
||||
```shell
|
||||
sudo apt-get install libgrpc-dev libgrpc++-dev protobuf-compiler-grpc libc-ares-dev
|
||||
```
|
||||
|
||||
On macOS, you can use [Homebrew][1]:
|
||||
|
||||
```shell
|
||||
|
||||
@@ -47,8 +47,10 @@ else()
|
||||
NO_DEFAULT_PATH
|
||||
PATH_SUFFIXES ${lib_dirs})
|
||||
|
||||
# On Debian/Ubuntu, libaddress_sorting is statically linked.
|
||||
find_library (GRPC_ADDRESS_SORTING_STATIC_LIB
|
||||
NAMES "${CMAKE_STATIC_LIBRARY_PREFIX}address_sorting${CMAKE_STATIC_LIBRARY_SUFFIX}"
|
||||
"${CMAKE_STATIC_LIBRARY_PREFIX}grpc++${CMAKE_STATIC_LIBRARY_SUFFIX}"
|
||||
PATHS ${_grpc_path}
|
||||
NO_DEFAULT_PATH
|
||||
PATH_SUFFIXES ${lib_dirs})
|
||||
|
||||
@@ -1257,15 +1257,6 @@ if (ARROW_FLIGHT)
|
||||
# XXX(wesm): relying on vendored c-ares provided by gRPC for the time being
|
||||
set(CARES_STATIC_LIB "${GRPC_STATIC_LIBRARY_CARES}")
|
||||
set(GRPC_CPP_PLUGIN "${GRPC_BUILD_DIR}/${CMAKE_CFG_INTDIR}/grpc_cpp_plugin")
|
||||
# get_property(GPR_STATIC_LIB TARGET gRPC::gpr PROPERTY LOCATION)
|
||||
# get_property(GRPC_STATIC_LIB TARGET gRPC::grpc_unsecure PROPERTY LOCATION)
|
||||
# get_property(GRPCPP_STATIC_LIB TARGET gRPC::grpc++_unsecure PROPERTY LOCATION)
|
||||
# get_property(GRPC_ADDRESS_SORTING_STATIC_LIB
|
||||
# TARGET gRPC::address_sorting PROPERTY LOCATION)
|
||||
# # XXX(wesm): relying on vendored c-ares provided by gRPC for the time being
|
||||
# get_property(CARES_STATIC_LIB TARGET c-ares::cares_static PROPERTY LOCATION)
|
||||
# # Get location of grpc_cpp_plugin so we can pass it to protoc
|
||||
# get_property(GRPC_CPP_PLUGIN TARGET gRPC::grpc_cpp_plugin PROPERTY LOCATION)
|
||||
else()
|
||||
find_package(gRPC REQUIRED)
|
||||
set(GRPC_VENDORED 0)
|
||||
|
||||
Reference in new issue
Block a user