[GRASS-dev] winGRASS addons - consolidation/fix release needed!!

Martin Landa landa.martin at gmail.com
Fri Sep 6 14:31:53 PDT 2019


Hi,

pá 30. 8. 2019 v 17:35 odesílatel Helmut Kudrnovsky <hellik at web.de> napsal:
> Do you have a list of your issues facing while winGRASS compiling?

different ;-) I am closer to successful build. Now it fails compiling
ctypes/display.py:

"""
Status: Processing description list.
Traceback (most recent call last):
  File "./ctypesgen.py", line 165, in <module>
    ctypesgencore.processor.process(descriptions, options)
  File "C:\msys64\usr\src\grass79\lib\python\ctypes\ctypesgencore\processor\pipeline.py",
line 60, in process
    find_source_libraries(data, options)
  File "C:\msys64\usr\src\grass79\lib\python\ctypes\ctypesgencore\processor\operations.py",
line 206, in find_source_libraries
    library = ctypesgencore.libraryloader.load_library(library_name)
  File "C:\msys64\usr\src\grass79\lib\python\ctypes\ctypesgencore\libraryloader.py",
line 258, in load_library
    result = LibraryLoader.load_library(self, libname)
  File "C:\msys64\usr\src\grass79\lib\python\ctypes\ctypesgencore\libraryloader.py",
line 63, in load_library
    return self.load(path)
  File "C:\msys64\usr\src\grass79\lib\python\ctypes\ctypesgencore\libraryloader.py",
line 279, in load
    return _WindowsLibrary(path)
  File "C:\msys64\usr\src\grass79\lib\python\ctypes\ctypesgencore\libraryloader.py",
line 240, in __init__
    self.cdll = ctypes.cdll.LoadLibrary(path)
  File "C:\OSGeo4W64\apps\Python37\lib\ctypes\__init__.py", line 434,
in LoadLibrary
    return self._dlltype(name)
  File "C:\OSGeo4W64\apps\Python37\lib\ctypes\__init__.py", line 356,
in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 127] Uvedená procedura nebyla nalezena
make[6]: *** [Makefile:102: OBJ.x86_64-w64-mingw32/display.py] Error 1
"""

After debuging it turned out, that libgrass_display.7.9.dll cannot be
loaded. It's also reason why d.* modules fails with:

"""
make[4]: Leaving directory '/c/msys64/usr/src/grass79/display/d.barscale'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
warning: --export-dynamic is not supported for PE+ targets, did you
mean --export-all-symbols?

if [ "/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/bin/d.barscale.exe"
!= "" ] ; then GISRC=/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/demolocation/.grassrc79
GISBASE=C:/msys64/usr/src/grass79/dist.x86_64-w64-mingw32
PATH="/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/bin:/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/bin:/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/scripts:$PATH"
PYTHONPATH="C:/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/etc/python;C:/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/gui/wxpython;$PYTHONPATH"
PATH="/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/bin:/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/bin:/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/scripts:/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/lib:/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/lib:/c/OSGeo4W64/apps/Python37:/c/OSGeo4W64/bin:/c/msys64/usr/src/grass79/mswindows/osgeo4w/lib:/c/msys64/usr/src/grass79/mswindows/osgeo4w:/usr/bin:/mingw64/bin"
LC_ALL=C LANG=C LANGUAGE=C
/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/bin/d.barscale.exe
--html-description < /dev/null | grep -v '</body>\|</html>' >
d.barscale.tmp.html ; fi
make[3]: *** [../../include/Make/Html.make:14: d.barscale.tmp.html] Error 1
"""

Meanwhile I copied this broken build to OSGeo4W environment (on same
PC), all d.* were working, no problem with display dll. I have no
clue...

> So I could do some Tests here.....

Thanks! With 7.8.0 released and next QGIS release in few days, the
issue with wingrass builds is more than critical.

Ma

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa


More information about the grass-dev mailing list