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

Support for Windows #46

Closed
ganesheshwar opened this issue Sep 1, 2017 · 4 comments · Fixed by #434
Closed

Support for Windows #46

ganesheshwar opened this issue Sep 1, 2017 · 4 comments · Fixed by #434
Labels
feature request New feature wanted
Milestone

Comments

@ganesheshwar
Copy link

You have mentioned that this has been tested in Unix and OSX. I tried intalling in Windows through cloning the repo. However when I import gmt in Jupyter, it gave me the following error.

GMTOSError: Unknown operating system: win32

Any solution for a Windows support?

@leouieda
Copy link
Member

leouieda commented Sep 2, 2017

Hi @ganesheshwar, the main thing holding us back from Windows is getting a GMT conda package for Windows working (see conda-forge/gmt-feedstock#15 for some work that @ocefpaf is doing).

But if you can get the current development version of GMT (trunk) built on your machine, you might be able to get this working. I'll have to include a flag for finding the Windows dll. But I haven't tested this under Windows yet and things might break mysteriously.

If you're willing to give it a shot, I'd really appreciate it.

Another option is to use the Windows Subsystem for Linux that came out for Windows 10. Then everything should work as a normal Linux terminal for you. This might be the most painless option.

@ganesheshwar
Copy link
Author

HI @leouieda , I will try to build it from the repo and try out. Once @ocefpaf is up with the working version in Windows, it should be really helpful.

Thanks for the reply. I will stay in loop to track the progress.

@sgcrews
Copy link

sgcrews commented Dec 4, 2017

Really interested in this project, @leouieda. I'm a geologist and long-time Matlab user, just joining the Python world. I do a lot with topography/bathymetry and maps in general--I loved the slide in your SciPy talk where you showed a map of the Moho in South America!
I'm using Windows and iOS so I eagerly await your conda package...
--steve

@leouieda
Copy link
Member

leouieda commented Dec 5, 2017

Hi Steve, thanks for writing in!

I was hoping to get the conda package soon but I think it's going to take a while. I have no experience with Windows and it's hard to debug the problems with the build. But it will move forward and get done before we make an official release.

For now, if you have Windows 10 you can access the bash shell from Ubuntu directly. That would allow you to use the Linux packages from inside your Windows machine (see link in my previous post). I'd be interested to know if that works.

PS: The figures in that paper took a lot of code to make. I can't wait to be able to use GMT6 for this.

@leouieda leouieda added feature request New feature wanted and removed feature labels Sep 17, 2018
leouieda pushed a commit that referenced this issue Jan 26, 2019
The name of the shared library is `gmt_w64.dll` for 64-bit Windows, and `gmt_w32.dll` for 32-bit 
Windows, and the library is located in `C:\programs\gmt6\bin` by default. 
Change `get_clib_path` so that it can return the correct library name for Windows.
Working towards #46
@weiji14 weiji14 added this to the 0.1.0 milestone Oct 4, 2019
@weiji14 weiji14 modified the milestones: 0.1.0, 0.2.0 Apr 16, 2020
@seisman seisman modified the milestones: 0.2.x, 0.1.x May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature wanted
Projects
None yet
5 participants