Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C++][Docs] Trivial CMake dependency on Arrow fails at link stage #27476

Closed
asfimport opened this issue Feb 12, 2021 · 1 comment
Closed

[C++][Docs] Trivial CMake dependency on Arrow fails at link stage #27476

asfimport opened this issue Feb 12, 2021 · 1 comment

Comments

@asfimport
Copy link

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:


/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)
# ...

Reporter: David Li / @lidavidm

Note: This issue was originally created as ARROW-11609. Please see the migration documentation for further details.

@asfimport
Copy link
Author

David Li / @lidavidm:
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant