On Mac OS X (10.11.2) I could sucessfully compile jlcall but not run it due to the following error:
Invalid MEX-file '/.../jlcall/m/jlcall.mexmaci64':
dlopen(/.../jlcall/m/jlcall.mexmaci64, 1): Library not loaded: @rpath/libjulia.dylib
Referenced from: /.../jlcall/m/jlcall.mexmaci64
Reason: image not found
Error in Jl/get_mex_handle (line 58)
jlcall('', Jl.julia_home, Jl.julia_image);
The solution of compiling with -rpath in #7 doesn't work under OS X and even setting the environment variables DYLD_LIBRARY_PATH and/or LD_RUN_PATH also doesn't appear to work. The solution I have provided is what is used by homebrew-julia so it should work on other OS X versions.
On Mac OS X (10.11.2) I could sucessfully compile
jlcall
but not run it due to the following error:The solution of compiling with
-rpath
in #7 doesn't work under OS X and even setting the environment variables DYLD_LIBRARY_PATH and/or LD_RUN_PATH also doesn't appear to work. The solution I have provided is what is used by homebrew-julia so it should work on other OS X versions.