[GRASS-user] Resolving a build issue

I just pulled current 7.9.dev code from the git repo, ran configure, and
tried to build it. Make failed here:
/home/rshepard/gis/grass/grass_dev/visualization/ximgview.

Changing to that directory and running make results in:

if [ "/home/rshepard/gis/grass/grass_dev/dist.x86_64-pc-linux-gnu/bin/ximgview" != "" ] ; then GISRC=/home/rshepard/gis/grass/grass_dev/dist.x86_64-pc-linux-gnu/demolocation/.grassrc79 GISBASE=/home/rshepard/gis/grass/grass_dev/dist.x86_64-pc-linux-gnu PATH="/home/rshepard/gis/grass/grass_dev/dist.x86_64-pc-linux-gnu/bin:/home/rshepard/gis/grass/grass_dev/dist.x86_64-pc-linux-gnu/bin:/home/rshepard/gis/grass/grass_dev/dist.x86_64-pc-linux-gnu/scripts:$PATH" PYTHONPATH="/home/rshepard/gis/grass/grass_dev/dist.x86_64-pc-linux-gnu/etc/python:/home/rshepard/gis/grass/grass_dev/dist.x86_64-pc-linux-gnu/gui/wxpython:$PYTHONPATH" LD_LIBRARY_PATH="/home/rshepard/gis/grass/grass_dev/dist.x86_64-pc-linux-gnu/bin:/home/rshepard/gis/grass/grass_dev/dist.x86_64-pc-linux-gnu/bin:/home/rshepard/gis/grass/grass_dev/dist.x86_64-pc-linux-gnu/scripts:/home/rshepard/gis/grass/grass_dev/dist.x86_64-pc-linux-gnu/lib:/home/rshepard/gis/grass/grass_dev/dist.x86_64-pc-linux-gnu/lib:/usr/lib/qt/lib:" LC_ALL=C
  LANG=C LANGUAGE=C /home/rshepard/gis/grass/grass_dev/dist.x86_64-pc-linux-gnu/bin/ximgview --html-description < /dev/null | grep -v '</body>\|</html>' > ximgview.tmp.html ; fi
ERROR: Module built against version @(#) 7.9.dev (2020) but trying to use
        version f062bffc8. You need to rebuild GRASS GIS or untangle
        multiple installations.
../../include/Make/Html.make:14: recipe for target 'ximgview.tmp.html' failed
make: *** [ximgview.tmp.html] Error 1
rm ximgview.tmp.html

I don't understand why this module is trying to use version f062bffc8 while
the rest of the code is using the downloaded 7.9.dev (2020). I don't know
what I need to do to build the newest souce tree.

TIA,

Rich

On Sun, 26 Apr 2020, Rich Shepard wrote:

I don't understand why this module is trying to use version f062bffc8
while the rest of the code is using the downloaded 7.9.dev (2020). I don't
know what I need to do to build the newest souce tree.

I apparently neglected to run 'make distclean' on the last build; running it
then re-processing the new code made it past this problem but exposed a
different one:

   File "/home/rshepard/gis/grass/grass_dev/dist.x86_64-pc-linux-gnu/etc/python/grass/__init__.py", line 4, in <module>
     import six
ModuleNotFoundError: No module named 'six'
../../../include/Make/GuiScript.make:40: recipe for target 'g.gui.image2target.tmp.html' failed
make[1]: *** [g.gui.image2target.tmp.html] Error 1
rm g.gui.image2target.tmp.html
make[1]: Leaving directory '/home/rshepard/gis/grass/grass_dev/gui/wxpython/image2target'
../../../include/Make/GuiScript.make:25: recipe for target 'guiscript' failed
make: *** [guiscript] Error 2

However, installed here are:
python3-six-1.13.0-x86_64-1_SBo
six-1.14.0-x86_64-1_SBo

I'll rebuild both and see if that fixes the problem.

Rich

On Sun, 26 Apr 2020, Rich Shepard wrote:

I'll rebuild both and see if that fixes the problem.

It was python3-six that needed to be rebuilt/re-installed.

Now there's a pdal issue with the libproj.so version. Here are installed
proj-7.0.0 and /usr/lib64/libproj.so.19. Grass is looking for libproj.so.15.

A month ago Markus N. said that proj-7.0.0 is not yet supported. Has anyone
an idea when it will be supported?

TIA,

Rich

On Sun, Apr 26, 2020 at 7:40 PM Rich Shepard <rshepard@appl-ecosys.com> wrote:

On Sun, 26 Apr 2020, Rich Shepard wrote:

> I'll rebuild both and see if that fixes the problem.

It was python3-six that needed to be rebuilt/re-installed.

Glad you solved that one.

Now there's a pdal issue with the libproj.so version. Here are installed
proj-7.0.0 and /usr/lib64/libproj.so.19. Grass is looking for libproj.so.15.

A month ago Markus N. said that proj-7.0.0 is not yet supported. Has anyone
an idea when it will be supported?

This is tracked in
https://github.com/OSGeo/grass/issues/395

I have asked in the issue to get clarification about the state of PROJ
7 support.

markusN

On Sun, 26 Apr 2020, Markus Neteler wrote:

It was python3-six that needed to be rebuilt/re-installed.

Glad you solved that one.

Markus,

I had no idea whether grass wanted the old six (which is supposed to support
both python2 and python3) or the explicit python3-six. Turned out to be the
latter.

This is tracked in
https://github.com/OSGeo/grass/issues/395

I have asked in the issue to get clarification about the state of PROJ
7 support.

Thanks for asking about the issue and responding to my post.

Best regards,

Rich