Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conflict of netcdf.dll #41

Closed
JianghuiDu opened this issue Dec 2, 2019 · 3 comments
Closed

conflict of netcdf.dll #41

JianghuiDu opened this issue Dec 2, 2019 · 3 comments

Comments

@JianghuiDu
Copy link

When using MATLAB the netcdf library is pointed to netcdf.dll in the MATLAB installation folder and NCDatasets reports

error compiling nc_open: could not load library "C:\Users\Jianghui\.julia\conda\3\Library\bin\netcdf.DLL"
The specified module could not be found.

How could I redirect the library?

@Alexander-Barth
Copy link
Owner

You could try to hard-code the path in ~/.julia/dev/NCDatasets/deps/deps.jl (the location of this file will be different on windows). You can try the one provided by conda and the one by Matlab.

[...]
# Load dependencies
@checked_lib libnetcdf "/full/path/to/netcdf/library"

Maybe MATLAB.jl change some environment variables. I suggest you to ask also the julia form and MATLAB.jl . I do not use Windows and Matlab anymore.

@Alexander-Barth
Copy link
Owner

Did you see this issue [1] and the discussion thread [2]? I think it is not possible currently to load two different versions of netcdf library at the same time. Maybe the work-around of [2] can also be applied here.

[1] JuliaIO/ImageMagick.jl#142
[2] https://discourse.julialang.org/t/initerror-for-a-combination-of-imagemagick-and-matlab/16869?u=yakir12

@JianghuiDu
Copy link
Author

Thanks! I was thinking about a quick fix. It doesn't really worth the effort. Won't call Matlab in Julia anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants