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

[Bug] Missing libraries on Windows install #2013

Closed
chaedri opened this issue Dec 10, 2021 · 20 comments
Closed

[Bug] Missing libraries on Windows install #2013

chaedri opened this issue Dec 10, 2021 · 20 comments
Labels
bug Something isn't working windows Microsoft Windows specific
Milestone

Comments

@chaedri
Copy link
Contributor

chaedri commented Dec 10, 2021

Describe the bug
Installing grass-dev through the Windows Standalone installer results in missing libraries: libgomp, libfortran, libquadmath, and proj

To Reproduce
Steps to reproduce the behavior:

  1. Install grass-dev through the Windows Standalone installer (https://grass.osgeo.org/download/windows/#standalone-installers)
  2. Open nc_spm_08_grass7 example location
  3. Run r.surf.random out="uniform" min=-2 max=2
  4. See error: missing libgomp and libfortran
  5. After finding and installing those libraries, run r.surf.random out="uniform" min=-2 max=2 again
  6. See error: missing libquadmath
  7. To see missing proj library, run m.proj -o coordinates=638300,220750

System description (please complete the following information):

  • Operating System: Windows 10 Home
  • GRASS GIS version: GRASS GIS 8.0.dev (7be7cf9)
@chaedri chaedri added the bug Something isn't working label Dec 10, 2021
@neteler neteler added the windows Microsoft Windows specific label Dec 10, 2021
@veroandreo veroandreo added this to the 8.0.0 milestone Dec 12, 2021
@neteler neteler modified the milestones: 8.0.0, 8.0.1 Jan 12, 2022
@chaedri
Copy link
Contributor Author

chaedri commented Jan 28, 2022

This issue is still occurring for me, even with the latest GRASS-dev install. Has anyone else been able to reproduce it? Or tested it and was unable to reproduce it? Perhaps it is just an issue on my end.

@veroandreo
Copy link
Contributor

Any windows guru that can assist here? @hellik @ninsbl @HuidaeCho @newcomb-d?

@hellik
Copy link
Member

hellik commented Jan 28, 2022

Are the MS runtimes, provided by the standalone installer, installed ?

@wenzeslaus
Copy link
Member

Are the MS runtimes, provided by the standalone installer, installed ?

Are you asking about checking that checkbox or about checking presence of some DLLs on the system? ...I just saw someone with the libgfortran=5.dll was not found error message dialog.

@hellik
Copy link
Member

hellik commented Jan 30, 2022

Are you asking about checking that checkbox

yes, checking the check box

@hellik
Copy link
Member

hellik commented Jan 30, 2022

Installing grass-dev through the Windows Standalone installer results in missing libraries: libgomp, libfortran, libquadmath,

these libraries are in MSYS2.

https://wingrass.fsv.cvut.cz/grass81/

these winGRASS8.1dev standalones works here for me.

now testing https://grass.osgeo.org/grass80/binary/mswindows/native/WinGRASS-8.0.0RC2-1-Setup.exe

@hellik
Copy link
Member

hellik commented Jan 30, 2022

System Info                                                                     
GRASS Version: 8.0.0RC2                                                         
Code revision: fe5d1c795                                                        
Build date: 2022-01-17                                                          
Build platform: x86_64-w64-mingw32                                              
GDAL: 3.4.1                                                                     
PROJ: 8.2.1                                                                     
GEOS: 3.10.0                                                                    
SQLite: 3.35.2                                                                  
Python: 3.9.5                                                                   
wxPython: 4.1.1                                                                 
Platform: Windows-10-10.0.19044-SP0   
r.surf.random out=uniform min=-2 max=2                                          
r.surf.random komplett. Rasterkarte <uniform> erzeugt.
m.proj -o coordinates=638300,220750                                             
ERROR: cs2cs program not found, install PROJ first: 

does PROJ: 8.2.1 still provide cs2cs?

@hellik
Copy link
Member

hellik commented Jan 30, 2022

does PROJ: 8.2.1 still provide cs2cs?

yes, it does. testing on the OSGeo4W v2 shell

C:\OSGeo4W>cs2cs
Rel. 8.2.1, January 1st, 2022
usage: cs2cs [-dDeEfIlrstvwW [args]]
              [[--area name_or_code] | [--bbox west_long,south_lat,east_long,north_lat]]
              [--authority {name}] [--accuracy {accuracy}] [--no-ballpark]
              [+opt[=arg] ...] [+to +opt[=arg] ...] [file ...]

so it's missing in the standalone . could you open a separate issue?

@hellik
Copy link
Member

hellik commented Jan 30, 2022

now testing with

System Info                                                                     
GRASS Version: 8.1.dev                                                          
Code revision: d21dd0a03                                                        
Build date: 2022-01-19                                                          
Build platform: x86_64-w64-mingw32                                              
GDAL: 3.4.1                                                                     
PROJ: 8.2.1                                                                     
GEOS: 3.10.2                                                                    
SQLite: 3.35.2                                                                  
Python: 3.9.5                                                                   
wxPython: 4.1.1                                                                 
Platform: Windows-10-10.0.19044-SP0 
r.surf.random out=uniform2 min=-2 max=2                                         
r.surf.random komplett. Rasterkarte <uniform2> erzeugt.
m.proj -o coordinates=638300,220750                                             
ERROR: cs2cs program not found, install PROJ first: 
C:\Users\xyz>cs2cs
Der Befehl "cs2cs" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

same here, it seems not all PROJ tools are correctly packaged in the standalone installer.

@landam: could you check your packaging environment?

@hellik
Copy link
Member

hellik commented Jan 30, 2022

Installing grass-dev through the Windows Standalone installer results in missing libraries: libgomp,

libgomp is the GNU implementation of OpenMP.

we're shipping libomp.dll provided by mingw-w64-openmp, it's the LLVM/OpenMP implementation.

not sure why libgomp is here.... maybe (sub)dependency issue ,,,,

@hellik
Copy link
Member

hellik commented Jan 30, 2022

m.proj -o coordinates=638300,220750
ERROR: cs2cs program not found, install PROJ first:

we're shipping only PROJ library in standalone, but not the PROJ tools e.g. proj, cs2cs, geod

@hellik
Copy link
Member

hellik commented Jan 30, 2022

m.proj -o coordinates=638300,220750
ERROR: cs2cs program not found, install PROJ first:

we're shipping only PROJ library in standalone, but not the PROJ tools e.g. proj, cs2cs, geod

an issue or PR would be good.

@chaedri
Copy link
Contributor Author

chaedri commented Jan 31, 2022

Are the MS runtimes, provided by the standalone installer, installed ?

This was partly my issue - I installed with the link to 8.1dev above, ensured the Runtime option was checked and r.surf.random worked. Thank you!

@tmszi
Copy link
Member

tmszi commented Feb 4, 2022

I tested WinGRASS-8.0.0-1-Setup.exe and bug still persist. When I want launch v.surf.rst module from CMD I get error message libgomp-1.dll, libgfortran-5.dll was not found.

However r.surf.random module r.surf.random out="uniform" min=-2 max=2 works as expected.

@hellik
Copy link
Member

hellik commented Feb 4, 2022

Have you checked to install the MS runtimes libraries during installation?

@tmszi
Copy link
Member

tmszi commented Feb 4, 2022

Have you checked to install the MS runtimes libraries during installation?

Yes I did.

@hellik
Copy link
Member

hellik commented Feb 6, 2022

Have you checked to install the MS runtimes libraries during installation?

Yes I did.

any chance to test winGRASS 8 in OSGeo4W (https://trac.osgeo.org/osgeo4w/)?

@hellik
Copy link
Member

hellik commented Feb 6, 2022

I tested WinGRASS-8.0.0-1-Setup.exe and bug still persist. When I want launch v.surf.rst module from CMD I get error message libgomp-1.dll, libgfortran-5.dll was not found.

confirmed in standalone and OSGeo4W:

v.surf.rst procudes these errors.

@hellik
Copy link
Member

hellik commented Feb 6, 2022

@landam any idea?

@hellik
Copy link
Member

hellik commented Feb 20, 2022

Missing libraries fixed by #2204

Closing issue for now. A separate issue will be opened regarding missing PROJ tools.

@hellik hellik closed this as completed Feb 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows Microsoft Windows specific
Projects
None yet
Development

No branches or pull requests

6 participants