I’ve been following the installation instruction given in this link: - [gmt/BUILDING.md at master · GenericMappingTools/gmt · GitHub] using minGW linux emulator in windows, except for the ‘vcpkg part’ i have followed everything and ive installed vcpkg package directly through pacman command in minGW.
but execution of command " cmake --build . --config Release " is faliing with error i have attached in picture.
can someone help me with this error, i am trying to build GMT for almost a month.
Hey, I am trying to install GMT on the company’s laptop and they don’t allow me to directly install software WSL is not in their software centers, conda is there but the conda-forge command is not working in it, also pygmt installation has issue with the DLL files, so only way was to build it and this way also i am facing this issue.
I am not talking about C files in the GMT src directory. fseeko etc are basic standard Posix library function that your minGW libraries should provide. Since Cmake did not find what is needed then we are stuck. This is not a problem on Line, Windows, or MacOS, only on odd-ball systems like MinGW or Cygwin, perhaps. Not much we can do since I dont operative on those systems so cannot try things out. We would need your help to figure it out on your system and if that is something we can add to our checks for installation then we can do that. Suggest you look at those errors again and do some googling like ftello not found on MinGW etc and see what you get.
Hmm, I must have changed something in settings as I’m not receiving e-mail warnings of forum posts.
First thing. Please do not post screen-captures with microscopic characters. I won’t even try to read them. Just text, no SCs with text.
Regarding the problem itself I don’t know. It works for me and also in the recipe for building the GMT artifact for Julia that uses MinGW for the Windows build
(and WSL is no true alternative to pure Windows versions. File permissions just screw too much)
Hey, I have tried to look into it, and it build up to some extent, and now only one thing is failiing which is.
“Linking C shared library src\gmt.dll
FAILED: src/gmt.dll src/gmt.dll.a”
and at the end it says
“ninja: build stopped: subcommand failed.”
i have looked in the src directory and only gmt.dll.a file is there not simple gmt.dll file
And I’ve tried installing pygmt as well in python, but I am facing same DLL issue here as well. installation of pygmt is complete but when i import pygmt in python it gives an error as follows:
"
GMTCLibNotFoundError: Error loading GMT shared library at ‘gmt.dll’.
Could not find module ‘gmt.dll’ (or one of its dependencies). Try using the full path with constructor syntax.
Error loading GMT shared library at ‘gmt_w64.dll’.
Could not find module ‘gmt_w64.dll’ (or one of its dependencies). Try using the full path with constructor syntax.
Error loading GMT shared library at ‘gmt_w32.dll’.
Could not find module ‘gmt_w32.dll’ (or one of its dependencies). Try using the full path with constructor syntax.
"
I don’t know. It works fine for me. I always found the MinGW an horrible mess with multiple distributions and a total confusion between MinGW and MSYS. My guess is that it’s a faulty installation. I think I installed this one https://www.msys2.org/
Hi Joaquim, i tried using this software as well, starting from uninstalling mingw and again installing this software, some progress is there in building GMT but still it is giving only one error now and that is of gmt.dll file only.
“FAILED: src/gmt.dll src/gmt.dll.a”
which is not there in src folder, if you have this DLL file maybe you can share this so i can see whether its working or not
because i guess now its not issue with minGW, its issue with the DLL file only
Hi @Joaquim and @pwessel, i have switched from MinGW to Cygwin and it is installed in Cygwin, looks like there is problem in MinGW gcc compiler only,
But when i am running simple gmt shell file in terminal its now saving ps file properly.
like i have taken this code from tutorial only
Well, GMT has nothing to do with that. It is you who are creating files with redirection to the output file. GMT is not even aware that there is a file - it writes to stdout.