You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Kouhei Sutou (Jira)" <ji...@apache.org> on 2020/11/12 19:35:00 UTC

[jira] [Updated] (ARROW-10563) [Packaging][C++] CMake find_package(Arrow 2.0 CONFIG REQUIRED) broken

     [ https://issues.apache.org/jira/browse/ARROW-10563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kouhei Sutou updated ARROW-10563:
---------------------------------
    Summary: [Packaging][C++] CMake find_package(Arrow 2.0 CONFIG REQUIRED) broken  (was: [C++] CMake find_package(Arrow 2.0 CONFIG REQUIRED) broken)

> [Packaging][C++] CMake find_package(Arrow 2.0 CONFIG REQUIRED) broken
> ---------------------------------------------------------------------
>
>                 Key: ARROW-10563
>                 URL: https://issues.apache.org/jira/browse/ARROW-10563
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, Packaging
>    Affects Versions: 2.0.0
>            Reporter: Matthijs Brobbel
>            Assignee: Kouhei Sutou
>            Priority: Major
>
> Adding Arrow targets to a CMake project using the installed config files no longer works with version 2.0.0.
>  
> {code:java}
> find_package(Arrow 2.0 CONFIG REQUIRED)
> {code}
> I get the following error:
>  
> {code:java}
> CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
>   Could NOT find Snappy (missing: Snappy_LIB Snappy_INCLUDE_DIR)
> Call Stack (most recent call first):
>   /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
>   /usr/lib/x86_64-linux-gnu/cmake/arrow/FindSnappy.cmake:50 (find_package_handle_standard_args)
>   /usr/share/cmake-3.16/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
>   /usr/lib/x86_64-linux-gnu/cmake/arrow/ArrowConfig.cmake:95 (find_dependency)
>   CMakeLists.txt:5 (find_package)
> {code}
> The snappy lib is installed:
> {code:java}
> find /usr -name "libsnappy*"
> /usr/share/doc/libsnappy1v5
> /usr/lib/x86_64-linux-gnu/libsnappy.so.1.1.8
> /usr/lib/x86_64-linux-gnu/libsnappy.so.1
> {code}
> It's possible to reproduce the error using [https://github.com/mbrobbel/arrow-cmake]. Build the image to get the error.
> {code:java}
> git clone https://github.com/mbrobbel/arrow-cmake
> cd arrow-cmake
> docker build -t arrow-cmake .
> {code}
> This used to work with 1.x.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)