[GRASS-dev] GRASS 7.4.0 won't compile

Markus Neteler neteler at osgeo.org
Mon Jan 29 13:07:18 PST 2018


Michael,

I take liberty to cc the list:

On Mon, Jan 29, 2018 at 9:37 PM, Michael Barton <Michael.Barton at asu.edu> wrote:
> Hi Markus,
>
> I just tried compiling GRASS 7.4.0 and it failed with a bunch of errors.
> This is what I had before when I tried to compile the release branch. 7.4svn
> compiles but not the stable release.
>
> It is a gdal problem. But I DO have gdal 2.0.0 and liberal 2.0.0 installed
> in my build environment.

I think I have an idea:

> imac:test cmbarton$ cd
> /Users/cmbarton/grass_source/grass-7.4.0/display/d.erase
> imac:d.erase cmbarton$ make -j4
> if [
> "/Users/cmbarton/grass_source/grass-7.4.0/dist.x86_64-apple-darwin17.4.0/bin/d.erase"
> != "" ] ; then
> GISRC=/Users/cmbarton/grass_source/grass-7.4.0/dist.x86_64-apple-darwin17.4.0/demolocation/.grassrc74
> GISBASE=/Users/cmbarton/grass_source/grass-7.4.0/dist.x86_64-apple-darwin17.4.0
> PATH="/Users/cmbarton/grass_source/grass-7.4.0/dist.x86_64-apple-darwin17.4.0/bin:/Users/cmbarton/grass_source/grass-7.4.0/dist.x86_64-apple-darwin17.4.0/bin:/Users/cmbarton/grass_source/grass-7.4.0/dist.x86_64-apple-darwin17.4.0/scripts:$PATH"
> LD_RUN_PATH="/Users/cmbarton/grass_source/grass-7.4.0/dist.x86_64-apple-darwin17.4.0/bin:/Users/cmbarton/grass_source/grass-7.4.0/dist.x86_64-apple-darwin17.4.0/bin:/Users/cmbarton/grass_source/grass-7.4.0/dist.x86_64-apple-darwin17.4.0/scripts:/Users/cmbarton/grass_source/grass-7.4.0/dist.x86_64-apple-darwin17.4.0/lib:/Users/cmbarton/grass_source/grass-7.4.0/dist.x86_64-apple-darwin17.4.0/lib:/lib"
> PYTHONPATH="/Users/cmbarton/grass_source/grass-7.4.0/dist.x86_64-apple-darwin17.4.0/etc/python:/Users/cmbarton/grass_source/grass-7.4.0/dist.x86_64-apple-darwin17.4.0/gui/wxpython:$PYTHONPATH"
> LC_ALL=C LANG=C LANGUAGE=C
> /Users/cmbarton/grass_source/grass-7.4.0/dist.x86_64-apple-darwin17.4.0/bin/d.erase
> --html-description < /dev/null | grep -v '</body>\|</html>' >
> d.erase.tmp.html ; fi
> dyld: Library not loaded: libgdal.20.dylib

The libgdal name is referenced here:

grep libgdal lib/raster/*
lib/raster/gdal.c:    "libgdal.so.20",
lib/raster/gdal.c:    "libgdal.so.1",
lib/raster/gdal.c:    "libgdal.1.1.so",
lib/raster/gdal.c:    "libgdal.so",
lib/raster/gdal.c:    "libgdal1.6.0.so",
lib/raster/gdal.c:    "libgdal1.7.0.so",
lib/raster/gdal.c:    "libgdal-1.dll",

Probably also libgdal.20.dylib needs to go there?

>   Referenced from:
> /Users/cmbarton/grass_source/grass-7.4.0/dist.x86_64-apple-darwin17.4.0/lib/libgrass_gproj.7.4.0.dylib
>   Reason: image not found
> make: *** [d.erase.tmp.html] Error 1

Maybe you can try?

Markus


More information about the grass-dev mailing list