MATLAB.jl
MATLAB.jl copied to clipboard
filepaths for Window
Based on my comment here, I would like to point out that the filepath conventions as used by MATLAB.jl don't really seem to work with Windows. I had to manually hardcode a few places:
build.jl
:
libmx_size = filesize(Libdl.dlpath(joinpath(matlab_libpath, "libmx")))
function check_deps()
if libmx_size != filesize(Libdl.dlpath("C:\\\\Program Files\\\\MATLAB\\\\R2020b\\\\bin\\\\win64\\\\libmx.dll")) #! JR
error("MATLAB library has changed, re-run Pkg.build(\\\"MATLAB\\\")")
end
end
MATLAB.jl
libmx_loc = "C:\\Program Files\\MATLAB\\R2020b\\bin\\win64\\libmx.dll"
libmat_loc = "C:\\Program Files\\MATLAB\\R2020b\\bin\\win64\\libmat.dll"
libeng_loc = "C:\\Program Files\\MATLAB\\R2020b\\bin\\win64\\libeng.dll"
I just needed a quick fix, and this seemed to work for me.