Jeroen created ARROW-5090:
-----------------------------

             Summary: Linking failure on MacOS due to @rpath in dylib
                 Key: ARROW-5090
                 URL: https://issues.apache.org/jira/browse/ARROW-5090
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++
            Reporter: Jeroen


Linking an application or bindings against the arrow shared lib (from homebrew) 
fails with:

{code}
  dlopen(/Users/travis/build/r-lib/arrow/arrow.Rcheck/arrow/libs/arrow.so, 6): 
Library not loaded: @rpath/libarrow.13.dylib
  Referenced from: /usr/local/opt/apache-arrow/lib/libparquet.13.dylib
  Reason: image not found
{code}

I don't think an installed lib should contain @rpath. The workaround is to set 
the rpath when linking. The R package [apparently 
hardcodes](https://github.com/apache/arrow/blob/master/r/src/Makevars.in#L21) 
this to be /usr/local/lib which is appropriate.

I think the proper solution is to build with: CMAKE_BUILD_WITH_INSTALL_RPATH=ON




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to