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

Error compiling GMT #13

Closed
christinegz opened this issue Jan 23, 2018 · 5 comments
Closed

Error compiling GMT #13

christinegz opened this issue Jan 23, 2018 · 5 comments

Comments

@christinegz
Copy link

With julia v"0.6.0", GMT.jl v"0.3.0" and GMT 5.4.2 on Windows 8, I receive this error message when using a gmt command in julia.

error compiling gmt: could not load library "gmt_w64"

Do you have an idea how to fix this?

@joa-quim
Copy link
Member

joa-quim commented Jan 23, 2018 via email

@christinegz
Copy link
Author

I tried commands from examples, like:

gmt("pscoast -Rg -JA280/30/3.5i -Bg -Dc -A1000 -Gnavy -P > GMT_lambert_az_hemi.ps")
ERROR: error compiling gmt: could not load library "gmt_w64"

or

plot(collect(1:10),rand(10), lw=1, lc="blue", fmt="png", marker="square",
markeredgecolor=0, size=0.2, markerfacecolor="red", title="Hello World",
x_label="Spoons", y_label="Forks", show=true)
ERROR: error compiling #xy#84: error compiling monolitic: error compiling gmt: could not load library "gmt_w64"
The specified module could not be found

Where can I set the path of the gmt_w64.dll file?

@joa-quim
Copy link
Member

Is your GMT installation running fine (other from this Julia issue)? Because gmt_w64.dll is in the GMT's bin dir, which is supposed to be in system's path, and there is nothing you should do more.
If you want to set the path to gmt_w64.dll explicitly look at the first line of libgmt

@christinegz
Copy link
Author

The GMT installation runs fine otherwise. By setting the gmt-path explicitly in libgmt.jl it now works. Thanks for your help!

@joa-quim
Copy link
Member

I don't understand how it can be in the path and not being found, but if works for you, so be it.
Mind you when you update GMT.jl in future. You may need to do this again.

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