You can change the lookup path using `install_name_tool`. See e.g. [1] and
check other answers on StackOverflow.

[1]
http://thecourtsofchaos.com/2013/09/16/how-to-copy-and-relink-binaries-on-osx/

On Sun, Dec 6, 2015 at 9:05 AM, Ales Tsurko <[email protected]> wrote:

> Hello there! I'm trying to embed Julia in Xcode project. And what I don't
> understand is how to link Julia without installing Julia.
> Currently I've done this steps:
>
> 1. Copied /include/ and /lib/ directories from Julia.app to my Xcode's
> project directory. Also I've changed directory structure from /lib/julia/
> and /include/julia/ to just /lib/ and /include/, so in my project's
> directory it's in /julia/lib and /julia/include/ ;
> 2. Linked libjulia.dylib;
> 3. In the Build Settings added $(PROJECT_DIR)/julia/lib to Runpath Search
> Path;
> 4. Added copy files phase with julia.h to Build Phases.
>
> And I get this error:
>
> *ERROR: system image file
>> "/Users/alestsurko/Library/Developer/Xcode/DerivedData/AUJulia-cudsforcspcktlaicnqzwclmzbye/Build/Products/Debug/AUJulia.app/Contents/MacOS/../lib/julia/sys.dylib"
>> not found*
>
>
> It looks like something search library as if it was in the Julia.app
> directory structure. But I don't know how to change it. Is it possible at
> all or installing Julia is the required step?
>

Reply via email to