Continuing the discussion from Embedding Julia in Matlab:
I’m trying to use Matlab’s foreign function interface (see the MATLAB loadlibrary function) to call Julia code from MATLAB. Has anyone been successful in doing this? All of the projects I have found (mexjulia being the most successful) have been abandoned.
To test the FFI, I copied all of the files from
/usr/include/julia to my home directory, as well as
/usr/lib64/libjulia.so. The loadlibrary function had trouble with some header files in the
uv directory within
~/julia not being found, so I copied them all up into
~/julia and modified the header files accordingly to refer to
foo.h instead of
Trying to run
loadlibrary again resulted in an extensive failure: https://pastebin.com/w9azvDKb
It looks like there are either more header files that need to be included, or this is just beyond loadlibrary’s capabilities. Does anyone have a working solution for 1.0.1?