You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "David Li (Jira)" <ji...@apache.org> on 2021/02/12 18:21:00 UTC

[jira] [Commented] (ARROW-11609) [C++][Docs] Trivial CMake dependency on Arrow fails at link stage

    [ https://issues.apache.org/jira/browse/ARROW-11609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17283901#comment-17283901 ] 

David Li commented on ARROW-11609:
----------------------------------

Ah, the actual issue here is needing rpath to contain the right directory. Including libutf8proc implicitly does that, but it seems ARROW-4065 intentionally removed the transitive dependencies from ArrowTargets.cmake. Instead downstream projects depending on Arrow can use {{target_link_directories(..., path/to/conda/env/lib)}} (it seems this is really only an issue when using Conda). Closing.

> [C++][Docs] Trivial CMake dependency on Arrow fails at link stage
> -----------------------------------------------------------------
>
>                 Key: ARROW-11609
>                 URL: https://issues.apache.org/jira/browse/ARROW-11609
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++, Documentation
>    Affects Versions: 3.0.0
>            Reporter: David Li
>            Priority: Major
>
> The example in the docs here isn't sufficient: [https://arrow.apache.org/docs/cpp/cmake.html] 
> It fails at link time because Arrow's transitive dependencies aren't included in the INTERFACE_LINK_LIBRARIES:
> {noformat}
> /usr/bin/ld: warning: libglog.so.0, needed by /home/lidavidm/Code/Ursa/install/lib/libarrow.so.400.0.0, not found (try using -rpath or -rpath-link)
> /usr/bin/ld: warning: libutf8proc.so.2, needed by /home/lidavidm/Code/Ursa/install/lib/libarrow.so.400.0.0, not found (try using -rpath or -rpath-link)
> /usr/bin/ld: warning: libaws-cpp-sdk-config.so, needed by /home/lidavidm/Code/Ursa/install/lib/libarrow.so.400.0.0, not found (try using -rpath or -rpath-link)
> # ...{noformat}



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