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

Installing GMT.jl in Windows 10 #328

Closed
dervisgursoy opened this issue Jan 4, 2020 · 14 comments
Closed

Installing GMT.jl in Windows 10 #328

dervisgursoy opened this issue Jan 4, 2020 · 14 comments

Comments

@dervisgursoy
Copy link

Dear all,

I am trying to use GMT to plot my GPS points (and make lines between them, etc). I downloaded and installed GMT version 6.0.0_win64. I am using julia 1.3.0 via jupyter notebook.

I am trying to run the following code on Jupyter notebook:
image

However, getting this error:

error compiling common_plot_xyz: error compiling gmt: could not load library “gmt_w64”
The specified module could not be found.

Any help appreciated.
Thank you

@joa-quim
Copy link
Member

joa-quim commented Jan 4, 2020

Ah, from jupyter. For a long time I don't test it (will do).

What happens if you run the same command from REPL?

@dervisgursoy
Copy link
Author

It gives me this error in julia REPL:
image

@joa-quim
Copy link
Member

joa-quim commented Jan 4, 2020

OK, so it's working. The message says that you had one GMT5 installed before and now you are running GMT6. Please do as the warning message says otherwise it will still think you are using GMT5, which has a much more restrictive use.

Regarding the error. It's lc=:blue or lc="blue"`. Not lc=bluebecauseblue`` is an unknown variable.

@joa-quim
Copy link
Member

joa-quim commented Jan 5, 2020

And the gmt_w64 error you are getting it because you didn't do what the warning message told you to do.

@dervisgursoy
Copy link
Author

@joa-quim thank you very much for your help.

Do you know what error message exactly saying? Since I didnt have "deps" folder under "src" folder that error messages wants me to do, I create a folder called "deps" in the following directory:
"C:---.julia\packages\GMT\nfsRH\src\deps"
After that, I placed GMT.jl file into "deps" folder. However, right now, I am getting this error at jupyter notebook:
image

Any idea?

@joa-quim
Copy link
Member

joa-quim commented Jan 5, 2020

Ah, ghrrr, my fault. It shouldn't have any deps and absolutely do not move the GMT.jl file. Just edit the src\GMT.jl (adding a space somewhere, save the file, remove the space and save again should do it). Sorry for this clumsy solution but don't know how to force recompile otherwise.

@dervisgursoy
Copy link
Author

No worries.
I copy and paste GMT.jl file to another folder, put the space and delete it again. I restart the jupyuter notebook but I am having still the following error:

image

Thank you

@joa-quim
Copy link
Member

joa-quim commented Jan 5, 2020

I copy and paste GMT.jl file to another folder

I hope that means you put it back to original location. Put a space and remove it is not enough. You must save the file in between that operation. The idea is to make julia think that the GMT.jl was changed and hence force recompile. An alternative is to delete the contents of ....\.julia\compiled\v1.3\GMT

@dervisgursoy
Copy link
Author

@joa-quim Thank you that solved the problem, GMT.jl is now working.

I am also interested in finding driving distance (not the euclidean distance) between two GPS points. Is that possible in GMT.jl? If so, is there any solid example showing this?
Thank you

@joa-quim
Copy link
Member

joa-quim commented Jan 5, 2020

Good.
If you mean finding the distance along a line, yes. But you need to know that line (that can have many vertices). The program that you'll use is mapproject. See its docs in GMT (not GMT.jl, which does not have yet more than the on-line help)

We can continue this tomorrow, now is very late in here and I go to bed.

@joa-quim
Copy link
Member

joa-quim commented Jan 5, 2020

Ah, and adding a line in Discourse post saying that the problem is solved and was caused by a GMT versions issue, would be nice.

@dervisgursoy
Copy link
Author

Dear all,

I would like to plot the GPS points (latitude and longitude) on satellite map similar to this:

image

It is best if I use GMT.jl, or any Julia packages to do that because I am using Julia for whole of my other analyses.
Any help would be appreciated.

@joa-quim
Copy link
Member

joa-quim commented Jan 6, 2020

Could you please post this in the GMT forum instead? Other than not being related to this issue, there are more people that can help there. I'm the only Julia user here but as long as GMT can do it, GMT.jl has to be able to do it too. Otherwise there is a bug.

@joa-quim
Copy link
Member

joa-quim commented Jan 7, 2020

Closing this issue as solved

@joa-quim joa-quim closed this as completed Jan 7, 2020
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