winGRASS addons - consolidation/fix release needed!!

classic Classic list List threaded Threaded
32 messages Options
12
Reply | Threaded
Open this post in threaded view
|

winGRASS addons - consolidation/fix release needed!!

Helmut Kudrnovsky
hi,

actually, there are several complaints that downloading precompiled winGRASS
addons isn't working, see e.g.

https://trac.osgeo.org/grass/ticket/3455#comment:5
https://lists.osgeo.org/pipermail/grass-web/2019-July/004925.html
https://lists.osgeo.org/pipermail/grass-user/2019-July/080557.html
etc.

checked now the situation of download server URLs and related g.extension
code lines regarding several branches and master:

--------------

*grass72

https://wingrass.fsv.cvut.cz/grass72/x86/addons/

[DIR] grass-7.2.2/ 2019-07-07 09:10 -
[DIR] grass-7.2.3/ 2019-07-07 09:10 -
[DIR] latest/ 2019-07-07 09:10 -


https://wingrass.fsv.cvut.cz/grass72/x86_64/addons/

[DIR] grass-7.2.2/ 2019-07-07 09:10 -
[DIR] grass-7.2.3/ 2019-07-07 09:10 -
[DIR] latest/ 2019-07-07 09:10 -

--------------

*grass74

https://wingrass.fsv.cvut.cz/grass74/x86_64/addons/

[DIR] grass-7.4.svn/ 2019-07-25 09:06 -


https://github.com/OSGeo/grass/blob/releasebranch_7_4/scripts/g.extension/g.extension.py#L937

    base_url = "http://wingrass.fsv.cvut.cz/" \
               "grass%(major)s%(minor)s/%(platform)s/addons/" \
               "grass-%(major)s.%(minor)s.%(patch)s" % \
               {'platform': platform,
                'major': version[0], 'minor': version[1],
                'patch': version[2]}

--------------

*grass76

https://wingrass.fsv.cvut.cz/grass76/x86_64/addons/

[DIR] grass-7.6.svn/ 2019-07-25 09:06 -
[DIR] latest/ 2019-07-25 09:06 -

https://wingrass.fsv.cvut.cz/grass76/latest/addons/

[DIR] grass-7.6.svn/ 2019-07-25 09:06 -
[DIR] latest/ 2019-07-25 09:06 -


https://github.com/OSGeo/grass/blob/releasebranch_7_6/scripts/g.extension/g.extension.py#L937

    base_url = "http://wingrass.fsv.cvut.cz/" \
               "grass%(major)s%(minor)s/%(platform)s/addons/" \
               "grass-%(major)s.%(minor)s.%(patch)s" % \
               {'platform': platform,
                'major': version[0], 'minor': version[1],
                'patch': version[2]}

--------------

*grass77

https://wingrass.fsv.cvut.cz/grass77/x86_64/addons/

[DIR] grass-7.7.dev/ 2019-07-25 09:06 -

https://github.com/OSGeo/grass/blob/master/scripts/g.extension/g.extension.py#L1021

    base_url = "http://wingrass.fsv.cvut.cz/" \
               "grass%(major)s%(minor)s/%(platform)s/addons/" \
               "grass-%(major)s.%(minor)s.%(patch)s" % \
               {'platform': platform,
                'major': version[0], 'minor': version[1],
                'patch': version[2]}
                               
--------------

in the MLs there are some suggestions for workarounds, e.g.

in https://trac.osgeo.org/grass/ticket/3455#comment:6

following change is suggested:

base_url = "http://wingrass.fsv.cvut.cz/" \
               "grass%(major)s%(minor)s/%(platform)s/addons/" \
               "grass-%(major)s.%(minor)s.%(patch)s" % \
               {'platform': platform,
                'major': version[0], 'minor': version[1],
                #'patch': version[2]}
                'patch': 'svn'}
               
the same in
https://lists.osgeo.org/pipermail/grass-user/2019-July/080526.html

base_url = "http://wingrass.fsv.cvut.cz/" \
           "grass%(major)s%(minor)s/%(platform)s/addons/" \
           "grass-%(major)s.%(minor)s.%(patch)s" % \
           {'platform': platform,
            'major': version[0], 'minor': version[1],
            #'patch': version[2]} # comment this out
            'patch': 'svn'} # add this
                       
--------------

see e.g.

https://lists.osgeo.org/pipermail/grass-user/2019-July/080561.html

shows that, with the workaround, a GRASS GIS library mismatch issue may
occur.


* for the short term, we need a winGRASS addon consolidation and a fix
release; our winGRASS users seem to use the addons in a regular way

* for the long term, buidling winGRASS addon via appveyor (compare e.g.
https://pdal.io/development/compilation/windows.html) may be another way to
deliver them.

in another thread a discussion started how GRASS GIS should handle addons
after the GIT switch: central repo vs. distributed addon repos.

short and long term ideas/solutions for winGRASS addons mentioned above are
related to the question central repo vs. distributed addon repos.

ideas? suggestions? PRs?








-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html
_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
best regards
Helmut
Reply | Threaded
Open this post in threaded view
|

Re: winGRASS addons - consolidation/fix release needed!!

Anna Petrášová


On Sat, Jul 27, 2019 at 4:59 PM Helmut Kudrnovsky <[hidden email]> wrote:
hi,

actually, there are several complaints that downloading precompiled winGRASS
addons isn't working, see e.g.

https://trac.osgeo.org/grass/ticket/3455#comment:5
https://lists.osgeo.org/pipermail/grass-web/2019-July/004925.html
https://lists.osgeo.org/pipermail/grass-user/2019-July/080557.html
etc.

checked now the situation of download server URLs and related g.extension
code lines regarding several branches and master:

--------------

*grass72

https://wingrass.fsv.cvut.cz/grass72/x86/addons/

[DIR]   grass-7.2.2/    2019-07-07 09:10        -       
[DIR]   grass-7.2.3/    2019-07-07 09:10        -       
[DIR]   latest/ 2019-07-07 09:10        -       


https://wingrass.fsv.cvut.cz/grass72/x86_64/addons/

[DIR]   grass-7.2.2/    2019-07-07 09:10        -       
[DIR]   grass-7.2.3/    2019-07-07 09:10        -       
[DIR]   latest/ 2019-07-07 09:10        -       

--------------

*grass74

https://wingrass.fsv.cvut.cz/grass74/x86_64/addons/

[DIR]   grass-7.4.svn/  2019-07-25 09:06        -       


https://github.com/OSGeo/grass/blob/releasebranch_7_4/scripts/g.extension/g.extension.py#L937

    base_url = "http://wingrass.fsv.cvut.cz/" \
               "grass%(major)s%(minor)s/%(platform)s/addons/" \
               "grass-%(major)s.%(minor)s.%(patch)s" % \
               {'platform': platform,
                'major': version[0], 'minor': version[1],
                'patch': version[2]}

--------------

*grass76

https://wingrass.fsv.cvut.cz/grass76/x86_64/addons/

[DIR]   grass-7.6.svn/  2019-07-25 09:06        -       
[DIR]   latest/ 2019-07-25 09:06        -       

https://wingrass.fsv.cvut.cz/grass76/latest/addons/

[DIR]   grass-7.6.svn/  2019-07-25 09:06        -       
[DIR]   latest/ 2019-07-25 09:06        -       


https://github.com/OSGeo/grass/blob/releasebranch_7_6/scripts/g.extension/g.extension.py#L937

    base_url = "http://wingrass.fsv.cvut.cz/" \
               "grass%(major)s%(minor)s/%(platform)s/addons/" \
               "grass-%(major)s.%(minor)s.%(patch)s" % \
               {'platform': platform,
                'major': version[0], 'minor': version[1],
                'patch': version[2]}

--------------

*grass77

https://wingrass.fsv.cvut.cz/grass77/x86_64/addons/

[DIR]   grass-7.7.dev/  2019-07-25 09:06        -       

https://github.com/OSGeo/grass/blob/master/scripts/g.extension/g.extension.py#L1021

    base_url = "http://wingrass.fsv.cvut.cz/" \
               "grass%(major)s%(minor)s/%(platform)s/addons/" \
               "grass-%(major)s.%(minor)s.%(patch)s" % \
               {'platform': platform,
                'major': version[0], 'minor': version[1],
                'patch': version[2]}

--------------                         

in the MLs there are some suggestions for workarounds, e.g.

in https://trac.osgeo.org/grass/ticket/3455#comment:6

following change is suggested:

base_url = "http://wingrass.fsv.cvut.cz/" \
               "grass%(major)s%(minor)s/%(platform)s/addons/" \
               "grass-%(major)s.%(minor)s.%(patch)s" % \
               {'platform': platform,
                'major': version[0], 'minor': version[1],
                #'patch': version[2]}
                'patch': 'svn'}

the same in
https://lists.osgeo.org/pipermail/grass-user/2019-July/080526.html

base_url = "http://wingrass.fsv.cvut.cz/" \
           "grass%(major)s%(minor)s/%(platform)s/addons/" \
           "grass-%(major)s.%(minor)s.%(patch)s" % \
           {'platform': platform,
            'major': version[0], 'minor': version[1],
            #'patch': version[2]} # comment this out
            'patch': 'svn'} # add this

-------------- 

see e.g.

https://lists.osgeo.org/pipermail/grass-user/2019-July/080561.html

shows that, with the workaround, a GRASS GIS library mismatch issue may
occur.


* for the short term, we need a winGRASS addon consolidation and a fix
release; our winGRASS users seem to use the addons in a regular way

* for the long term, buidling winGRASS addon via appveyor (compare e.g.
https://pdal.io/development/compilation/windows.html) may be another way to
deliver them.

in another thread a discussion started how GRASS GIS should handle addons
after the GIT switch: central repo vs. distributed addon repos.

short and long term ideas/solutions for winGRASS addons mentioned above are
related to the question central repo vs. distributed addon repos.

ideas? suggestions? PRs?



So far I have been telling people to use 7.2.3, the only version which seems to work with addons. Martin, any reason why the folder structure changed on the server, even for the stable 7.6 version?

Anna
 






-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html
_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev

_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: winGRASS addons - consolidation/fix release needed!!

Martin Landa
In reply to this post by Helmut Kudrnovsky
Hi,

so 27. 7. 2019 v 23:59 odesílatel Helmut Kudrnovsky <[hidden email]> napsal:
> actually, there are several complaints that downloading precompiled winGRASS
> addons isn't working, see e.g.
>
> https://trac.osgeo.org/grass/ticket/3455#comment:5
> https://lists.osgeo.org/pipermail/grass-web/2019-July/004925.html
> https://lists.osgeo.org/pipermail/grass-user/2019-July/080557.html
> etc.

would be very surprised when there will be no complaints at all ;-)
That's very unfortunate situation.

> checked now the situation of download server URLs and related g.extension
> code lines regarding several branches and master:

[...]

WinGRASS builds are broken since May because several reasons:

1) git migration
2) attempt to update building environment (gcc 4.x to newer version)
3) various strange problems with new build environment
4) lack of time to fix all the issues during summer

I am planning to invest some time during FOSS4G 2019 code sprint on
Saturday and most importantly the next week with hope to fix crucial
problems in order to offer builds again. But it's painful experience.

Martin

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: winGRASS addons - consolidation/fix release needed!!

Helmut Kudrnovsky
>2) attempt to update building environment (gcc 4.x to newer version)

compiling with the newest msys2 gcc seems to work here.

>3) various strange problems with new build environment

I have this one here

https://lists.osgeo.org/pipermail/grass-dev/2019-August/093063.html

>4) lack of time to fix all the issues during summer

Do you have a list of your issues facing while winGRASS compiling?

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





-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html
_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
best regards
Helmut
Reply | Threaded
Open this post in threaded view
|

Re: winGRASS addons - consolidation/fix release needed!!

Martin Landa
Hi,

pá 30. 8. 2019 v 17:35 odesílatel Helmut Kudrnovsky <[hidden email]> 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
_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: winGRASS addons - consolidation/fix release needed!!

Helmut Kudrnovsky
>pá 30. 8. 2019 v 17:35 odesílatel Helmut Kudrnovsky <[hidden email]> napsal:
>> Do you have a list of your issues facing while winGRASS compiling?
>
>different ;-) I am closer to successful build. Now it fails compiling

completly fresh git checkout here, still the already earlier mentioned issue
in

GRASS GIS 7.9.dev a9d2c0bd6 compilation log
--------------------------------------------------
Started compilation: Sat Sep  7 11:16:10 CEST 2019
--
Errors in:
/usr/src/grass_trunk_git/grass/lib/pngdriver
/usr/src/grass_trunk_git/grass/lib/psdriver
[...]

caused by

if [ "" != "" ] ; then
GISRC=/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/demolocation/.grassrc79
GISBASE=C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32
PATH="/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/scripts:$PATH"
PYTHONPATH="C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python;C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/gui/wxpython;$PYTHONPATH"
PATH="/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/scripts:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/lib:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/lib:/c/OSGeo4W64/apps/Python37:/usr/bin:/mingw64/bin/:/c/OSGeo4W64/bin:/usr/src/grass_trunk_git/grass/mswindows/osgeo4w/lib:/usr/src/grass_trunk_git/grass/mswindows/osgeo4w"
LC_ALL=C LANG=C LANGUAGE=C  --html-description < /dev/null | grep -v
'</body>\|</html>' > pngdriver.tmp.html ; fi
VERSION_NUMBER=7.9.dev VERSION_DATE=2019 MODULE_TOPDIR=../.. \
        python3
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/tools/mkhtml.py
pngdriver >
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/docs/html/pngdriver.html
Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'

did a pacman -Syu in msys2 for an uptodate python

pacman -Ql mingw-w64-x86_64-python3 > pac.log shows:

mingw-w64-x86_64-python3 /mingw64/lib/python3.7/encodings/
mingw-w64-x86_64-python3 /mingw64/lib/python3.7/encodings/__init__.py
mingw-w64-x86_64-python3 /mingw64/lib/python3.7/encodings/__pycache__/
mingw-w64-x86_64-python3
/mingw64/lib/python3.7/encodings/__pycache__/__init__.cpython-37.opt-1.pyc
[...]

package encodings should be there.

maybe an intereference between msys/python3 and osgeo4w/python3

will investigate ...






-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html
_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
best regards
Helmut
Reply | Threaded
Open this post in threaded view
|

Re: winGRASS addons - consolidation/fix release needed!!

Martin Landa
Hi,

so 7. 9. 2019 v 11:39 odesílatel Helmut Kudrnovsky <[hidden email]> napsal:
> /usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/docs/html/pngdriver.html
> Fatal Python error: initfsencoding: unable to load the file system codec
> ModuleNotFoundError: No module named 'encodings'

this part I already solved locally. Will create WIP PR. I have
different problem with display dll.

I tried to run manually in msys2 bash:

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

I got no output, no error.

When I switched to r.info.exe, it works.

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/r.info.exe
--html-description

Ma

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: winGRASS addons - consolidation/fix release needed!!

Martin Landa
so 7. 9. 2019 v 12:01 odesílatel Martin Landa <[hidden email]> napsal:
> > /usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/docs/html/pngdriver.html
> > Fatal Python error: initfsencoding: unable to load the file system codec
> > ModuleNotFoundError: No module named 'encodings'
>
> this part I already solved locally. Will create WIP PR. I have
> different problem with display dll.

https://github.com/OSGeo/grass/pull/126

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: winGRASS addons - consolidation/fix release needed!!

Helmut Kudrnovsky
In reply to this post by Helmut Kudrnovsky
Helmut Kudrnovsky wrote
>>pá 30. 8. 2019 v 17:35 odesílatel Helmut Kudrnovsky <[hidden email]>
napsal:

>>> Do you have a list of your issues facing while winGRASS compiling?
>>
>>different ;-) I am closer to successful build. Now it fails compiling
>
> completly fresh git checkout here, still the already earlier mentioned
> issue
> in
>
> GRASS GIS 7.9.dev a9d2c0bd6 compilation log
> --------------------------------------------------
> Started compilation: Sat Sep  7 11:16:10 CEST 2019
> --
> Errors in:
> /usr/src/grass_trunk_git/grass/lib/pngdriver
> /usr/src/grass_trunk_git/grass/lib/psdriver
> [...]
>
> caused by
>
> if [ "" != "" ] ; then
> GISRC=/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/demolocation/.grassrc79
> GISBASE=C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32
> PATH="/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/scripts:$PATH"
> PYTHONPATH="C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python;C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/gui/wxpython;$PYTHONPATH"
> PATH="/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/scripts:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/lib:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/lib:/c/OSGeo4W64/apps/Python37:/usr/bin:/mingw64/bin/:/c/OSGeo4W64/bin:/usr/src/grass_trunk_git/grass/mswindows/osgeo4w/lib:/usr/src/grass_trunk_git/grass/mswindows/osgeo4w"
> LC_ALL=C LANG=C LANGUAGE=C  --html-description < /dev/null | grep -v
> '
> </body>
> \|
> </html>
> ' > pngdriver.tmp.html ; fi
> VERSION_NUMBER=7.9.dev VERSION_DATE=2019 MODULE_TOPDIR=../.. \
>         python3
> /usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/tools/mkhtml.py
> pngdriver >
> /usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/docs/html/pngdriver.html
> Fatal Python error: initfsencoding: unable to load the file system codec
> ModuleNotFoundError: No module named 'encodings'
>
> did a pacman -Syu in msys2 for an uptodate python
>
> pacman -Ql mingw-w64-x86_64-python3 > pac.log shows:
>
> mingw-w64-x86_64-python3 /mingw64/lib/python3.7/encodings/
> mingw-w64-x86_64-python3 /mingw64/lib/python3.7/encodings/__init__.py
> mingw-w64-x86_64-python3 /mingw64/lib/python3.7/encodings/__pycache__/
> mingw-w64-x86_64-python3
> /mingw64/lib/python3.7/encodings/__pycache__/__init__.cpython-37.opt-1.pyc
> [...]
>
> package encodings should be there.
>
> maybe an intereference between msys/python3 and osgeo4w/python3
>
> will investigate ...

msys2:

myuser@DESKTOP-VADT8Q4 MINGW64 /usr/src/grass_trunk_git/grass
$ python --version
Python 3.7.4


myuser@DESKTOP-VADT8Q4 MINGW64 /usr/src/grass_trunk_git/grass
$ python3 -c "import encodings; print(encodings.__file__)"
C:/msys64/mingw64/lib/python3.7/encodings/__init__.py

myuser@DESKTOP-VADT8Q4 MINGW64 /usr/src/grass_trunk_git/grass
$ python
Python 3.7.4 (default, Aug 15 2019, 18:17:27)  [GCC 9.2.0 64 bit (AMD64)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import encodings


osgeo4w:

C:\>python --version
Python 3.7.0

C:\>python3 -c "import encodings; print(encodings.__file__)"
C:\OSGEO4~1\apps\Python37\lib\encodings\__init__.py

C:\>python
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import encodings
>>>

in package.sh

[...]
# Force Python3
# alias python=python3
export PYTHONPATH=
export PYTHONHOME=$OSGEO4W_ROOT_MSYS/apps/Python37
export PATH=$OSGEO4W_ROOT_MSYS/apps/Python37:$PATH
[...]

do we use msys2/py3 or osgeo4w/py3 for compilation?



-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html
_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
best regards
Helmut
Reply | Threaded
Open this post in threaded view
|

Re: winGRASS addons - consolidation/fix release needed!!

Martin Landa
Hi,

so 7. 9. 2019 v 12:07 odesílatel Helmut Kudrnovsky <[hidden email]> napsal:
> msys2:
>
> myuser@DESKTOP-VADT8Q4 MINGW64 /usr/src/grass_trunk_git/grass
> $ python --version
> Python 3.7.4
> osgeo4w:
>
> C:\>python --version
> Python 3.7.0

it's not good idea to mix different version of Python. By [1] is
forced osgeo4w Python version. In [2] he should remove all python
packages.They are not needed.

Ma

[1] https://github.com/OSGeo/grass/pull/126
[2] https://trac.osgeo.org/grass/wiki/CompileOnWindows#InstalltheMSYS2directorystructure

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: winGRASS addons - consolidation/fix release needed!!

Helmut Kudrnovsky
>it's not good idea to mix different version of Python.

it's not easy to keep msys2 and osgeo4w python in sync

>By [1] is
>forced osgeo4w Python version. In [2] he should remove all python
>packages.They are not needed.

does it mean that in msys2 there is no python3 needed at all?

----
pacman -S [...] mingw-w64-x86_64-python3-numpy mingw-w64-x86_64-python3-six
----

should this be removed von the how-to-compile wiki?

if I remember I added them when we started to compile with python3 back them
because compilation failed ....






-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html
_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
best regards
Helmut
Reply | Threaded
Open this post in threaded view
|

Re: winGRASS addons - consolidation/fix release needed!!

Martin Landa
Hi,

so 7. 9. 2019 v 12:20 odesílatel Helmut Kudrnovsky <[hidden email]> napsal:
> it's not easy to keep msys2 and osgeo4w python in sync

the goal is to use Python version from osgeo4w environment, see
https://github.com/OSGeo/grass/pull/126

> >By [1] is
> >forced osgeo4w Python version. In [2] he should remove all python
> >packages.They are not needed.
>
> does it mean that in msys2 there is no python3 needed at all?
>
> ----
> pacman -S [...] mingw-w64-x86_64-python3-numpy mingw-w64-x86_64-python3-six
> ----
>
> should this be removed von the how-to-compile wiki?

I think so. Ma

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: winGRASS addons - consolidation/fix release needed!!

Helmut Kudrnovsky
In reply to this post by Martin Landa
Martin Landa wrote
> Hi,
>
> pá 30. 8. 2019 v 17:35 odesílatel Helmut Kudrnovsky &lt;

> hellik@

> &gt; 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
> """

I get a longer log with errors when I'm do make in the ctypes subfolder:

-----------
$ make
make
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib
make[1]: Entering directory
'/usr/src/grass_trunk_git/grass/lib/python/ctypes'
make[1]:
'/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib'
is up to date.
make[1]: Leaving directory
'/usr/src/grass_trunk_git/grass/lib/python/ctypes'
make OBJ.x86_64-w64-mingw32/date.py OBJ.x86_64-w64-mingw32/gis.py
OBJ.x86_64-w64-mingw32/raster.py OBJ.x86_64-w64-mingw32/gmath.py
OBJ.x86_64-w64-mingw32/proj.py OBJ.x86_64-w64-mingw32/imagery.py
OBJ.x86_64-w64-mingw32/vector.py OBJ.x86_64-w64-mingw32/rtree.py
OBJ.x86_64-w64-mingw32/display.py OBJ.x86_64-w64-mingw32/stats.py
OBJ.x86_64-w64-mingw32/dbmi.py OBJ.x86_64-w64-mingw32/raster3d.py
OBJ.x86_64-w64-mingw32/arraystats.py OBJ.x86_64-w64-mingw32/cluster.py
OBJ.x86_64-w64-mingw32/vedit.py OBJ.x86_64-w64-mingw32/segment.py
OBJ.x86_64-w64-mingw32/rowio.py OBJ.x86_64-w64-mingw32/temporal.py
OBJ.x86_64-w64-mingw32/ogsf.py OBJ.x86_64-w64-mingw32/nviz.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/date.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/gis.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/raster.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/gmath.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/proj.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/imagery.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/vector.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/rtree.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/display.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/stats.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/dbmi.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/raster3d.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/arraystats.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/cluster.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/vedit.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/segment.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/rowio.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/temporal.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/ogsf.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/nviz.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/__init__.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/ctypes_preamble.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/ctypes_loader.py
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/date.pyc
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/gis.pyc
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/raster.pyc
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/gmath.pyc
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/proj.pyc
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/imagery.pyc
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/vector.pyc
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/rtree.pyc
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/display.pyc
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/stats.pyc
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/dbmi.pyc
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/raster3d.pyc
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/arraystats.pyc
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/cluster.pyc
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/vedit.pyc
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/segment.pyc
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/rowio.pyc
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/temporal.pyc
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/ogsf.pyc
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/nviz.pyc
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/__init__.pyc
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/ctypes_preamble.pyc
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python/grass/lib/ctypes_loader.pyc
make[1]: Entering directory
'/usr/src/grass_trunk_git/grass/lib/python/ctypes'
make[1]: 'OBJ.x86_64-w64-mingw32/date.py' is up to date.
make[1]: 'OBJ.x86_64-w64-mingw32/gis.py' is up to date.
make[1]: 'OBJ.x86_64-w64-mingw32/raster.py' is up to date.
make[1]: 'OBJ.x86_64-w64-mingw32/gmath.py' is up to date.
make[1]: 'OBJ.x86_64-w64-mingw32/proj.py' is up to date.
make[1]: 'OBJ.x86_64-w64-mingw32/imagery.py' is up to date.
make[1]: 'OBJ.x86_64-w64-mingw32/vector.py' is up to date.
make[1]: 'OBJ.x86_64-w64-mingw32/rtree.py' is up to date.
GISRC=/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/demolocation/.grassrc79
GISBASE=C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32
PATH="/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/scripts:$PATH"
PYTHONPATH="C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python;C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/gui/wxpython;$PYTHONPATH"
PATH="/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/scripts:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/lib:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/lib:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl"
LC_ALL=C LANG=C LANGUAGE=C ./ctypesgen.py --cpp "gcc -E
-I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG" -lgrass_display.7.9  
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include/grass/display.h
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include/grass/defs/display.h
-o OBJ.x86_64-w64-mingw32/display.py
Status: Preprocessing C:/Users/hkmyr/AppData/Local/Temp/tmpr1ty7l93.h
Status: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG -U __GNUC__ -dD "-Dinline=" "-D__inline__="
"-D__extension__=" "-D_Bool=uint8_t" "-D__const=const" "-D__asm__(x)="
"-D__asm(x)=" "-DCTYPESGEN=1"
"C:/Users/hkmyr/AppData/Local/Temp/tmpr1ty7l93.h"
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG: In file included from
C:/msys64/mingw64/x86_64-w64-mingw32/include/_mingw.h:284,
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:                  from
C:/msys64/mingw64/x86_64-w64-mingw32/include/corecrt.h:10,
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:                  from
C:/msys64/mingw64/x86_64-w64-mingw32/include/crtdefs.h:10,
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:                  from
C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:9,
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:                  from
C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include/grass/gis.h:24,
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:                  from
C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include/grass/display.h:4,
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:                  from
C:/Users/hkmyr/AppData/Local/Temp/tmpr1ty7l93.h:1:
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:
C:/msys64/mingw64/x86_64-w64-mingw32/include/vadefs.h:35:2: error: #error
VARARGS not implemented for this compiler
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:    35 | #error VARARGS not implemented for this
compiler
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:       |  ^~~~~
Status: Parsing C:/Users/hkmyr/AppData/Local/Temp/tmpr1ty7l93.h
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/corecrt.h:80: Syntax
error at 'uintptr_t'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:165: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:171: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:177: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:182: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:191: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:197: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:203: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:209: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:512: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:514: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:516: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:535: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:537: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:539: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:732: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:765: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:770: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:772: Syntax
error at ';'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:806: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:818: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:822: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:826: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:833: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:835: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:839: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:843: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:1060: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:1061: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:1062: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:1088: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:1089: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:1183: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:1185: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:1186: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:1196: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:1201: Syntax
error at 'argp'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:1208: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:1210: Syntax
error at ';'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:1218: Syntax
error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:475:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:484:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:485:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:487:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:489:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:491:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:500:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:501:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:502:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:504:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:507:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:508:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:511:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:512:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:515:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:516:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:519:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:520:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:522:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:524:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:526:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:528:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:531:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:532:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:739:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:740:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:742:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:746:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:752:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:754:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:756:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:758:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:781:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:782:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:784:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:786:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:789:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:790:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:793:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:794:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:797:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:798:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:801:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:803:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:805:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:806:
Syntax error at 'va_list'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/string_s.h:40:
Syntax error at ';'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/string_s.h:71:
Syntax error at ';'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/string_s.h:73:
Syntax error at ';'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/string_s.h:78:
Syntax error at '{'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/string_s.h:79:
Syntax error at ':'
Error:
C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include/grass/defs/gis.h:157:
Syntax error at 'va_list'
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\grass_trunk_git\grass\lib\python\ctypes\ctypesgencore\processor\pipeline.py",
line 60, in process
    find_source_libraries(data, options)
  File
"C:\msys64\usr\src\grass_trunk_git\grass\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\grass_trunk_git\grass\lib\python\ctypes\ctypesgencore\libraryloader.py",
line 258, in load_library
    result = LibraryLoader.load_library(self, libname)
  File
"C:\msys64\usr\src\grass_trunk_git\grass\lib\python\ctypes\ctypesgencore\libraryloader.py",
line 63, in load_library
    return self.load(path)
  File
"C:\msys64\usr\src\grass_trunk_git\grass\lib\python\ctypes\ctypesgencore\libraryloader.py",
line 279, in load
    return _WindowsLibrary(path)
  File
"C:\msys64\usr\src\grass_trunk_git\grass\lib\python\ctypes\ctypesgencore\libraryloader.py",
line 240, in __init__
    self.cdll = ctypes.cdll.LoadLibrary(path)
  File "C:/msys64/mingw64/lib/python3.7\ctypes\__init__.py", line 442, in
LoadLibrary
    return self._dlltype(name)
  File "C:/msys64/mingw64/lib/python3.7\ctypes\__init__.py", line 364, in
__init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] Das angegebene Modul wurde nicht gefunden
make[1]: *** [Makefile:102: OBJ.x86_64-w64-mingw32/display.py] Error 1
make[1]: Leaving directory
'/usr/src/grass_trunk_git/grass/lib/python/ctypes'
make: *** [Makefile:81: default] Error 2
----------




-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html
_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
best regards
Helmut
Reply | Threaded
Open this post in threaded view
|

Re: winGRASS addons - consolidation/fix release needed!!

Helmut Kudrnovsky
Helmut Kudrnovsky wrote
> I get a longer log with errors when I'm do make in the ctypes subfolder:

Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:
C:/msys64/mingw64/x86_64-w64-mingw32/include/vadefs.h:35:2: error: #error
VARARGS not implemented for this compiler
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:    35 | #error VARARGS not implemented for this
compiler
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:       |  ^~~~~


$ gcc --version
gcc.exe (Rev2, Built by MSYS2 project) 9.2.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.







-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html
_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
best regards
Helmut
Reply | Threaded
Open this post in threaded view
|

Re: winGRASS addons - consolidation/fix release needed!!

Helmut Kudrnovsky
Helmut Kudrnovsky wrote

> Helmut Kudrnovsky wrote
>> I get a longer log with errors when I'm do make in the ctypes subfolder:
>
> Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
> -I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
> -I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
> -D__GLIBC_HAVE_LONG_LONG:
> C:/msys64/mingw64/x86_64-w64-mingw32/include/vadefs.h:35:2: error: #error
> VARARGS not implemented for this compiler
> Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
> -I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
> -I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
> -D__GLIBC_HAVE_LONG_LONG:    35 | #error VARARGS not implemented for this
> compiler
> Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
> -I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
> -I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
> -D__GLIBC_HAVE_LONG_LONG:       |  ^~~~~
>
>
> $ gcc --version
> gcc.exe (Rev2, Built by MSYS2 project) 9.2.0
> Copyright (C) 2019 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.

regarding

Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/corecrt.h:80: Syntax
error at 'uintptr_t'
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:165: Syntax
error at 'va_list'

and ctypes issue see also:

https://trac.osgeo.org/grass/ticket/3368




-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html
_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
best regards
Helmut
Reply | Threaded
Open this post in threaded view
|

Re: winGRASS addons - consolidation/fix release needed!!

Helmut Kudrnovsky
Helmut Kudrnovsky wrote

> regarding
>
> Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/corecrt.h:80: Syntax
> error at 'uintptr_t'
> Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:165: Syntax
> error at 'va_list'
>
> and ctypes issue see also:
>
> https://trac.osgeo.org/grass/ticket/3368

https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/va-arg-va-copy-va-end-va-start?view=vs-2019




-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html
_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
best regards
Helmut
Reply | Threaded
Open this post in threaded view
|

Re: winGRASS addons - consolidation/fix release needed!!

Martin Landa
In reply to this post by Helmut Kudrnovsky
Hi,

so 7. 9. 2019 v 13:06 odesílatel Helmut Kudrnovsky <[hidden email]> napsal:

[...]

> 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\grass_trunk_git\grass\lib\python\ctypes\ctypesgencore\processor\pipeline.py",
> line 60, in process
>     find_source_libraries(data, options)
>   File
> "C:\msys64\usr\src\grass_trunk_git\grass\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\grass_trunk_git\grass\lib\python\ctypes\ctypesgencore\libraryloader.py",
> line 258, in load_library
>     result = LibraryLoader.load_library(self, libname)
>   File
> "C:\msys64\usr\src\grass_trunk_git\grass\lib\python\ctypes\ctypesgencore\libraryloader.py",
> line 63, in load_library
>     return self.load(path)
>   File
> "C:\msys64\usr\src\grass_trunk_git\grass\lib\python\ctypes\ctypesgencore\libraryloader.py",
> line 279, in load
>     return _WindowsLibrary(path)
>   File
> "C:\msys64\usr\src\grass_trunk_git\grass\lib\python\ctypes\ctypesgencore\libraryloader.py",
> line 240, in __init__
>     self.cdll = ctypes.cdll.LoadLibrary(path)
>   File "C:/msys64/mingw64/lib/python3.7\ctypes\__init__.py", line 442, in
> LoadLibrary
>     return self._dlltype(name)
>   File "C:/msys64/mingw64/lib/python3.7\ctypes\__init__.py", line 364, in
> __init__
>     self._handle = _dlopen(self._name, mode)
> OSError: [WinError 126] Das angegebene Modul wurde nicht gefunden
> make[1]: *** [Makefile:102: OBJ.x86_64-w64-mingw32/display.py] Error 1

so apparently you have the same problem as me. It fails to load
libgrass_display.7.9.dll for unknown reason. It also causes that all
display modules fails to be compiled (or at least manual pages are not
generated).

Ma
_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: winGRASS addons - consolidation/fix release needed!!

Martin Landa
In reply to this post by Helmut Kudrnovsky
Hi,

so 7. 9. 2019 v 13:28 odesílatel Helmut Kudrnovsky <[hidden email]> napsal:

> > Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/corecrt.h:80: Syntax
> > error at 'uintptr_t'
> > Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:165: Syntax
> > error at 'va_list'
> >
> > and ctypes issue see also:
> >
> > https://trac.osgeo.org/grass/ticket/3368
>
> https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/va-arg-va-copy-va-end-va-start?view=vs-2019

it would be nice of course to solve these error. In any case these
errors do not cause compilation failure.

Ma

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: winGRASS addons - consolidation/fix release needed!!

Helmut Kudrnovsky
Martin Landa wrote
> Hi,
>
> so 7. 9. 2019 v 13:28 odesílatel Helmut Kudrnovsky &lt;

> hellik@

> &gt; napsal:
>> > Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/corecrt.h:80:
>> Syntax
>> > error at 'uintptr_t'
>> > Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:165: Syntax
>> > error at 'va_list'
>> >
>> > and ctypes issue see also:
>> >
>> > https://trac.osgeo.org/grass/ticket/3368
>>
>> https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/va-arg-va-copy-va-end-va-start?view=vs-2019
>
> it would be nice of course to solve these error. In any case these
> errors do not cause compilation failure.
>
> Ma
>
> --
> Martin Landa
> http://geo.fsv.cvut.cz/gwiki/Landa
> http://gismentors.cz/mentors/landa
> _______________________________________________
> grass-dev mailing list

> grass-dev@.osgeo

> https://lists.osgeo.org/mailman/listinfo/grass-dev


What about this one in display:

C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include/grass/gis.h:24,
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:                  from
C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include/grass/display.h:4,
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:                  from



-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html
_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
best regards
Helmut
Reply | Threaded
Open this post in threaded view
|

Re: winGRASS addons - consolidation/fix release needed!!

Martin Landa
In reply to this post by Martin Landa
Hi Helmut,

so 7. 9. 2019 v 20:31 odesílatel Martin Landa <[hidden email]> napsal:
> so apparently you have the same problem as me. It fails to load
> libgrass_display.7.9.dll for unknown reason. It also causes that all
> display modules fails to be compiled (or at least manual pages are not
> generated).

try to run from msys terminal (or something similar depending on your paths):

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

You will probably do not get any output or even error (which is problem).

But when you run the same command for r.info.exe, it works.

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/r.info.exe
--html-description

Ma

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
12