Skip to content

filepaths for Window #216

Description

@jacob-roth

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions